All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: Arnd Bergmann <arnd@arndb.de>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error
Date: Thu, 2 Mar 2017 03:18:54 +0300	[thread overview]
Message-ID: <20170302001853.GA27097@altlinux.org> (raw)
In-Reply-To: <CAK8P3a0YX3RGAqWN0mwUJtBsqUX0C+QRtJLrT_UA=wX6Z+q0DA@mail.gmail.com>

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 <ldv@altlinux.org>
---
v2: create a separate patch for x86,
    replace size_t instead of including <stddef.h>.

 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__ */
-- 
ldv

  reply	other threads:[~2017-03-02  0:19 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-26  1:01 [PATCH] uapi: fix asm/signal.h userspace compilation errors Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-02-26  1:01 ` Dmitry V. Levin
2017-03-01 16:20 ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-01 16:20   ` Arnd Bergmann
2017-03-02  0:18   ` Dmitry V. Levin [this message]
2017-03-02  0:26     ` [PATCH v2] x86/uapi: fix asm/signal.h userspace compilation error hpa
2017-03-02  0:33       ` Dmitry V. Levin
2017-03-03  0:59         ` [PATCH 1/2] uapi: introduce __kernel_uapi_size_t Dmitry V. Levin
2017-03-03  0:59         ` [PATCH v3 2/2] x86/uapi: fix asm/signal.h userspace compilation error Dmitry V. Levin
2021-12-28 15:54     ` [PATCH v3] uapi: fix asm/signal.h userspace compilation errors Dmitry V. Levin
2017-03-02  0:20   ` [PATCH v2] " Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02  0:20     ` Dmitry V. Levin
2017-03-02 15:22   ` [PATCH] " Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:22     ` Carlos O'Donell
2017-03-02 15:48     ` Dmitry V. Levin
2017-03-02 15:48     ` Dmitry V. Levin
2017-03-02 15:48       ` Dmitry V. Levin
2017-03-02 15:48       ` Dmitry V. Levin
2017-03-02 15:48       ` Dmitry V. Levin
2017-03-02 15:48       ` Dmitry V. Levin
2017-03-02 15:48       ` Dmitry V. Levin
2017-03-04  1:23       ` Carlos O'Donell
2017-03-04  1:23       ` Carlos O'Donell
2017-03-04  1:23         ` Carlos O'Donell
2017-03-04  1:23         ` Carlos O'Donell
2017-03-04  1:23         ` Carlos O'Donell
2017-03-04  1:23         ` Carlos O'Donell
2017-03-04  1:23         ` Carlos O'Donell
2017-03-06 15:10         ` Carlos O'Donell
2017-03-06 15:10         ` Carlos O'Donell
2017-03-06 15:10           ` Carlos O'Donell
2017-03-06 15:10           ` Carlos O'Donell
2017-03-06 15:10           ` Carlos O'Donell
2017-03-06 15:10           ` Carlos O'Donell
2017-03-06 15:10           ` Carlos O'Donell
2017-03-02 15:22   ` Carlos O'Donell
2017-03-01 16:20 ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170302001853.GA27097@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=arnd@arndb.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.