Received: by 10.223.185.116 with SMTP id b49csp6931552wrg; Wed, 28 Feb 2018 19:10:02 -0800 (PST) X-Google-Smtp-Source: AG47ELtBzrVzF+k29H2MRCVBQ6ycMucT/1FTxWg94GYvqqkfLolCjcUqmZXG93SodWbGWdYbeS03 X-Received: by 10.99.160.17 with SMTP id r17mr307401pge.127.1519873802414; Wed, 28 Feb 2018 19:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519873802; cv=none; d=google.com; s=arc-20160816; b=Gtm2sm+SgklmUnSvGxlmv+d+Mpxy9+j6InzBOZy2cvqxM60ZsxRC1BZX4RDHTuolsX 5ovAuLNhiTqIGnUcZk2OeN9yy8hFVEU/8RATXphHa8ypp6cNxP4zGdzf0VkQfecfx1EL XatBYLzGI86QWS9WnLh1w3wMfbjTnTbw7SGtu8xk0AmHkIZLno3i82CxqNzEHTrsl8bj vJUWW2oGi6IpRgA4AxYdjTKqX0AbHwaAht3PUE0/4ap3NDUW/iTRxq6gJYwdfXtLYsvW W3z+Luu1c3fpJI3Fz9DWK++JwgltwNE6mpsptZU8LhhrP2ZE+i41f+k75Z/VfooFGcbL 6e9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=r19HvO9wyTCDrg+lpfjVKKIvRPcrH763ItzS0TF8JzQ=; b=l/80wfuU+fDtFMo7k9XuqC/BlML1UfFu3HVuHI0r1TAo8pNwkGhqAO5T2/OPbNuk/j 6yAftCC6UrEsgFgDAx2zU/UO2OBBiiMzEdbE6w6vI5VhQtOlyAFn+VozDuAM0CiL6Ju+ niHiISSTnpswks9AT2Vu3IxIfoQpINHfJyr/rEYxJeTCfmui3ygBt3WKVxXeHfGFm83K 068/E/HUE+dNMIZuNVitPx3Np0jd2hWy23PaD9sJWaBfAEYyfOcyJ1zv7xzAnn3sLZcZ rRSk4xL9xpNrrz0L+zgONCF/fBLWDH57QCAx1vJFrBLUaap6aXvM3msuw1sRXQvp0O4z gJpw== 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 n16si1850197pgf.397.2018.02.28.19.09.47; Wed, 28 Feb 2018 19:10: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 S965638AbeCADJF (ORCPT + 99 others); Wed, 28 Feb 2018 22:09:05 -0500 Received: from mga03.intel.com ([134.134.136.65]:4096 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965563AbeCADJE (ORCPT ); Wed, 28 Feb 2018 22:09:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2018 19:09:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,407,1515484800"; d="scan'208";a="178946879" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.133]) by orsmga004.jf.intel.com with ESMTP; 28 Feb 2018 19:09:04 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 221C33018BC; Wed, 28 Feb 2018 19:08:49 -0800 (PST) From: Andi Kleen To: richard@nod.at Cc: linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, Andi Kleen Subject: [PATCH] uml: Fix build with recent glibc Date: Wed, 28 Feb 2018 19:08:44 -0800 Message-Id: <20180301030844.23448-1-andi@firstfloor.org> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen Newer glibc did some include namespace "cleanups" and removed struct ucontext and friends. This already broke a lot of software, and UML seems to be the latest victim. Use the typedefs which are still available. They also work on older glibcs. Signed-off-by: Andi Kleen --- 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