Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752212AbdHGOat (ORCPT ); Mon, 7 Aug 2017 10:30:49 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35780 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193AbdHGOap (ORCPT ); Mon, 7 Aug 2017 10:30:45 -0400 MIME-Version: 1.0 In-Reply-To: <20170806164428.2273-13-mikko.rapeli@iki.fi> References: <20170806164428.2273-1-mikko.rapeli@iki.fi> <20170806164428.2273-13-mikko.rapeli@iki.fi> From: Arnd Bergmann Date: Mon, 7 Aug 2017 16:30:43 +0200 X-Google-Sender-Auth: tjHnK5r07ceNl08IBHBCBOSJ388 Message-ID: Subject: Re: [PATCH v06 12/36] x86 uapi asm/signal.h: use __kernel_size_t instead of size_t To: Mikko Rapeli Cc: Linux Kernel Mailing List , Linux API , Al Viro , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v77EUsAp010406 Content-Length: 1076 Lines: 31 On Sun, Aug 6, 2017 at 6:44 PM, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > > Signed-off-by: Mikko Rapeli > Cc: Al Viro > Cc: Arnd Bergmann > Cc: H. Peter Anvin > --- > arch/x86/include/uapi/asm/signal.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/include/uapi/asm/signal.h b/arch/x86/include/uapi/asm/signal.h > index 8264f47cf53e..74346db30758 100644 > --- a/arch/x86/include/uapi/asm/signal.h > +++ b/arch/x86/include/uapi/asm/signal.h > @@ -127,7 +127,7 @@ struct sigaction { > typedef struct sigaltstack { > void __user *ss_sp; > int ss_flags; > - size_t ss_size; > + __kernel_size_t ss_size; > } stack_t; > In patch 14, you took a different approach based on an earlier comment of mine, for the same structure. I think we should definitely take the same approach for signal.h across all architectures, whichever we end up using. Arnd