Received: by 10.223.176.46 with SMTP id f43csp2552632wra; Thu, 25 Jan 2018 11:38:02 -0800 (PST) X-Google-Smtp-Source: AH8x227Lq0lK26pZAisUTzDGTGOpV2fpQIn2n9pPKbw6x0ADQ3Cn0PqhLKzZZzXYxoqdzRye6fSw X-Received: by 10.101.101.144 with SMTP id u16mr13635404pgv.73.1516909082520; Thu, 25 Jan 2018 11:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516909082; cv=none; d=google.com; s=arc-20160816; b=xzzFIbO1INMm1JV/ndtMuzv+qf+UfR9R99p3jljCRpRHG5eYbiYSg3p5WuLBx1ESdJ 7x6qWb+G91+hSIUcp59pugjDq7+5CJwHZcDiIY3NDkek7OeEqmbrvdcb80R7DcgXEL6u pRhNVLjXUyjE+QlTivDMsKMZ8IHuHD3fpNmrtkqcXRzn54XqO5HqU6rb9Sy5I9tTXhAc xhcX7B3tTMTnx+5aJp9c39IuOT9HigiPW9MO6UYWVbs91wzNusDnqZWfW9OBYDB+o9bO e/D3+Qg0uYngpyjPlXlU/2tPTK9HQhIc4Re5kqrrW1sozUumTZwCNpiqGcGPB6MAqxj1 WUQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=lNv3QMBqcE4gmksiji5C7qR6sBjpP1CDVDlC7aLQ0aU=; b=W4maeiWTUwh6i3x3h1v0GcO4GJLChdaCV7jc8tbnknLs973A3MtszNfOqMGAwba3K2 hVDb5sQNEjCJgZ+2BJpwNoZGAIBfeAqQV2pC4gMxnwyXi2ajFjaLzZ0Ci5dmAQlp7qKY LtpqLY/gtSm1AzuxR7qtwUaISobRePZQl+ziMxhh9EpSt+S4zkALL2Usepddol3P6rCb UNaCgc6jIK533jsmo9F0Musj5z4vhYqdpc/ToDqkn3gzo1tXPFw3FAkXMIedGyxRWGBc gtZzNjupk+SwV01vy2PGIR0cYkiXWvFUb4EwfnXczOyAmyRI0vmt9aw8Y6NmTFVnjUFn MLJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13si1877680pgp.740.2018.01.25.11.37.47; Thu, 25 Jan 2018 11:38:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbeAYTge (ORCPT + 99 others); Thu, 25 Jan 2018 14:36:34 -0500 Received: from mga05.intel.com ([192.55.52.43]:20509 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbeAYTgc (ORCPT ); Thu, 25 Jan 2018 14:36:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 11:36:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,413,1511856000"; d="scan'208";a="13075027" Received: from jfsjbrandeb002.jf.intel.com ([10.166.241.28]) by orsmga008.jf.intel.com with ESMTP; 25 Jan 2018 11:36:32 -0800 From: Jesse Brandeburg To: linux-kernel@vger.kernel.org Cc: Jeff Dike , Richard Weinberger , user-mode-linux-devel@lists.sourceforge.net Subject: [PATCH] um: fix user mode linux build Date: Thu, 25 Jan 2018 11:36:31 -0800 Message-Id: <20180125193631.58835-1-jesse.brandeburg@intel.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not sure when it got broken, but without this patch the command make ARCH=um defconfig make ARCH=um fails due to struct ucontext being undefined. arch/um/os-Linux/signal.c: In function ‘hard_handler’: arch/um/os-Linux/signal.c:163:22: error: dereferencing pointer to incomplete type ‘struct ucontext’ mcontext_t *mc = &uc->uc_mcontext; The fix seems fairly simple, that the code just needs to use ucontext_t define instead. I didn't verify that user-mode-linux is working after this change, just that it builds successfully. Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-devel@lists.sourceforge.net Signed-off-by: Jesse Brandeburg --- arch/um/os-Linux/signal.c | 2 +- arch/x86/um/stub_segv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c index a86d7cc2c2d8..a5c0c909c48b 100644 --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c @@ -159,7 +159,7 @@ static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = { static void hard_handler(int sig, siginfo_t *si, void *p) { - struct ucontext *uc = p; + ucontext_t *uc = p; mcontext_t *mc = &uc->uc_mcontext; unsigned long pending = 1UL << sig; diff --git a/arch/x86/um/stub_segv.c b/arch/x86/um/stub_segv.c index 1518d2805ae8..fd6825537b97 100644 --- a/arch/x86/um/stub_segv.c +++ b/arch/x86/um/stub_segv.c @@ -10,7 +10,7 @@ void __attribute__ ((__section__ (".__syscall_stub"))) stub_segv_handler(int sig, siginfo_t *info, void *p) { - struct ucontext *uc = p; + ucontext_t *uc = p; GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA), &uc->uc_mcontext); -- 2.14.3