summaryrefslogtreecommitdiffstats
path: root/arch/hexagon/include/uapi
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-10-26 13:31:14 +0200
committerArnd Bergmann <arnd@arndb.de>2023-11-23 10:38:58 +0100
commit280ac17856ec438757810c9123ddf2294b07c46f (patch)
treea84d69539620193a3adbbbe06df757b721416519 /arch/hexagon/include/uapi
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadlinux-280ac17856ec438757810c9123ddf2294b07c46f.tar.gz
linux-280ac17856ec438757810c9123ddf2294b07c46f.tar.bz2
linux-280ac17856ec438757810c9123ddf2294b07c46f.zip
hexagon: Remove CONFIG_HEXAGON_ARCH_VERSION from uapi header
uapi headers should not expose CONFIG switches since they are not available in userspace. Fix it in arch/hexagon/include/uapi/asm/user.h by always defining the cs0 and cs1 entries instead of pad values. Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/hexagon/include/uapi')
-rw-r--r--arch/hexagon/include/uapi/asm/user.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/hexagon/include/uapi/asm/user.h b/arch/hexagon/include/uapi/asm/user.h
index 7327ec59b22f..abae6a4b5813 100644
--- a/arch/hexagon/include/uapi/asm/user.h
+++ b/arch/hexagon/include/uapi/asm/user.h
@@ -56,15 +56,10 @@ struct user_regs_struct {
unsigned long pc;
unsigned long cause;
unsigned long badva;
-#if CONFIG_HEXAGON_ARCH_VERSION < 4
- unsigned long pad1; /* pad out to 48 words total */
- unsigned long pad2; /* pad out to 48 words total */
- unsigned long pad3; /* pad out to 48 words total */
-#else
+ /* cs0 and cs1 are only available with HEXAGON_ARCH_VERSION >= 4 */
unsigned long cs0;
unsigned long cs1;
unsigned long pad1; /* pad out to 48 words total */
-#endif
};
#endif