From patchwork Fri Jun 7 13:25:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 1111828 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.47; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="bJLVZZVv"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45L3Fq0MQnz9s00 for ; Fri, 7 Jun 2019 23:26:21 +1000 (AEST) Received: from localhost ([::1]:51112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZEsr-000517-Q4 for incoming@patchwork.ozlabs.org; Fri, 07 Jun 2019 09:26:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36533) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZEs6-00050x-Pr for qemu-devel@nongnu.org; Fri, 07 Jun 2019 09:25:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZEs3-00016i-3P for qemu-devel@nongnu.org; Fri, 07 Jun 2019 09:25:30 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:34396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZEs2-00010N-Pp for qemu-devel@nongnu.org; Fri, 07 Jun 2019 09:25:27 -0400 Received: by mail-wr1-x444.google.com with SMTP id e16so2198019wrn.1 for ; Fri, 07 Jun 2019 06:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b53jbJsnq7vGq2viFuNl1rJj7DUNUyXcQI95wx3KSG8=; b=bJLVZZVve9x7KsGINygsnLYl5+ga2Mq9tuFY75bDFVSB9rBym94fFOI2fq7+RiLPYu Fwzjet+l0MUKzjX0FK45b6gXwIkVMmunKCDjqJu6jlsCyWo5DJlX284fGtbDcNp6BGYg lgIVpnfwyHGriow+g9pwWTnEaE0XxoabpcWER6GYgbhbMLX1Fdrk6+MNxOrrB7IRunB+ F4vCgMnx3umcwgaC09fyBZtZSbMB04p9AscBZGDBLYU2T93wo+HoxkL5ilvFGyswp2Kh P6mnsPwUgaI+LEsrewwE4ZSM0p8FUsTVfLwQRg1KBlA/wjUVg2MIdtauaZe1+gBtSaka Hz5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=b53jbJsnq7vGq2viFuNl1rJj7DUNUyXcQI95wx3KSG8=; b=i5B2Hi9GYzvDxpOL0I2/PL+8zBNT7bByO/9tFQgqpmZKj+gS5jp6rF7XpJ2dEpnocT WkLSVwqbRWlejK4/Of6aPpQwHVDvy2HrCMn6LZnYPBHkbwWJ6YJPs+qXQWdGSbhXQ1pr hM9mDTLH1wYMA6G4/FYJXExwiE9USqFyZPFm0AcL0fFbGAXNMq1NlYNJ76PYoLnsuzV4 NH/FZ4iVBE90/eHU3gtt/9uPY9ccbdw8mq/G6PnlWBvrgxeHDbPxWTW1SwqvlQPsW3JC vYqtoIainvOOGr1IfqGvHzRW9f5a10LZoYR7aJvABiD7Lm+E91yLULSOmLFvslJmJ/9S iKOA== X-Gm-Message-State: APjAAAWOE/zCL1cSv1/keFlMKjt/+6X+DLUxQNZqIdiZB6qf5RYTYxAz e2osF+D9NX8UTCIAc8g/ON6HFcmm83reYA== X-Google-Smtp-Source: APXvYqxiQE8muxicDDs5CQB4pmyw6HkPheIJIHnXHvUbqqiZm0hf8ATEbWLXWlnxt5JGHacVaqPHeg== X-Received: by 2002:adf:c614:: with SMTP id n20mr21042373wrg.17.1559913923884; Fri, 07 Jun 2019 06:25:23 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id z6sm1978765wrw.2.2019.06.07.06.25.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jun 2019 06:25:23 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 7 Jun 2019 14:25:21 +0100 Message-Id: <20190607132521.9637-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [RISU PATCH] risu: Include on ppc64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sandipan Das , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" To build the C parts of risu for ppc64le with recent glibc/kernel headers, we need to include sys/user.h to avoid a compile error, because sys/ucontext.h defines a struct which includes a pointer to 'struct pt_regs' but does not provide a definition of that struct. Signed-off-by: Peter Maydell Reviewed-by: Alex Bennée Reviewed-by: Sandipan Das --- I need this to be able to do the ppc64le cross-build on my Ubuntu Bionic x86-64 system. risu_ppc64.c | 2 ++ risu_reginfo_ppc64.c | 1 + 2 files changed, 3 insertions(+) diff --git a/risu_ppc64.c b/risu_ppc64.c index 83f8d1f..a3028f7 100644 --- a/risu_ppc64.c +++ b/risu_ppc64.c @@ -11,6 +11,8 @@ * based on Peter Maydell's risu_arm.c *****************************************************************************/ +#include + #include "risu.h" void advance_pc(void *vuc) diff --git a/risu_reginfo_ppc64.c b/risu_reginfo_ppc64.c index f9d2f0d..071c951 100644 --- a/risu_reginfo_ppc64.c +++ b/risu_reginfo_ppc64.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "risu.h" #include "risu_reginfo_ppc64.h"