From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753604AbdCBA1p convert rfc822-to-8bit (ORCPT ); Wed, 1 Mar 2017 19:27:45 -0500 Received: from terminus.zytor.com ([65.50.211.136]:33142 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753490AbdCBA1n (ORCPT ); Wed, 1 Mar 2017 19:27:43 -0500 Date: Wed, 01 Mar 2017 16:26:29 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <20170302001853.GA27097@altlinux.org> References: <20170226010156.GA28831@altlinux.org> <20170302001853.GA27097@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error To: "Dmitry V. Levin" , Arnd Bergmann , Thomas Gleixner , Ingo Molnar , x86@kernel.org CC: Linux Kernel Mailing List From: hpa@zytor.com Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 1, 2017 4:18:54 PM PST, "Dmitry V. Levin" wrote: >Replace size_t to fix the following asm/signal.h userspace compilation >error: > >/usr/include/asm/signal.h:126:2: error: unknown type name 'size_t' > size_t ss_size; > >size_t is replaced with __kernel_size_t in all cases except x32 where >unsigned int has to be used instead. > >Signed-off-by: Dmitry V. Levin >--- >v2: create a separate patch for x86, > replace size_t instead of including . > > arch/x86/include/uapi/asm/signal.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/arch/x86/include/uapi/asm/signal.h >b/arch/x86/include/uapi/asm/signal.h >index 8264f47..f80473f 100644 >--- a/arch/x86/include/uapi/asm/signal.h >+++ b/arch/x86/include/uapi/asm/signal.h >@@ -127,7 +127,11 @@ struct sigaction { > typedef struct sigaltstack { > void __user *ss_sp; > int ss_flags; >- size_t ss_size; >+#if defined(__x86_64__) && defined(__ILP32__) >+ unsigned int ss_size; >+#else >+ __kernel_size_t ss_size; >+#endif > } stack_t; > > #endif /* __ASSEMBLY__ */ Sounds like we still ought to make this a type by itself. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.