summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2022-02-18 16:59:04 +0100
committerArnd Bergmann <arnd@arndb.de>2022-02-18 17:01:38 +0100
commitbe92e1ded1d17d68444a793fb07c118ab98b28b5 (patch)
tree24ccc4e154c808ae5b6554685c80f6e03137c867 /arch
parentMerge branch 'asm-generic-compile-test' into asm-generic (diff)
downloadlinux-be92e1ded1d17d68444a793fb07c118ab98b28b5.tar.xz
linux-be92e1ded1d17d68444a793fb07c118ab98b28b5.zip
sparc64: fix building assembly files
linux/posix_types.h must not be included in assembler files, so move the #include statement down into the appropriate ifdef section. Fixes: 72113d0a7d90 ("signal.h: add linux/signal.h and asm/signal.h to UAPI compile-test coverage") Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/linux-arch/202202172154.lJ3Z0yXe-lkp@intel.com/ Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/include/uapi/asm/signal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/uapi/asm/signal.h b/arch/sparc/include/uapi/asm/signal.h
index d395af9b46d2..b61382924725 100644
--- a/arch/sparc/include/uapi/asm/signal.h
+++ b/arch/sparc/include/uapi/asm/signal.h
@@ -2,7 +2,6 @@
#ifndef _UAPI__SPARC_SIGNAL_H
#define _UAPI__SPARC_SIGNAL_H
-#include <asm/posix_types.h>
#include <asm/sigcontext.h>
#include <linux/compiler.h>
@@ -152,6 +151,7 @@ struct sigstack {
#include <asm-generic/signal-defs.h>
+#include <asm/posix_types.h>
#ifndef __KERNEL__
struct __new_sigaction {