aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/include/uapi/asm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-12-01 19:28:34 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2025-06-24 22:02:05 -0400
commitf65bbf05392b44714ccdcc4b5b1bebfd471d2665 (patch)
tree9b4a2ee494b0c92ba886d6626ed236cf53283cc1 /arch/alpha/include/uapi/asm
parentxtensa: get rid uapi/asm/param.h (diff)
downloadlinux-f65bbf05392b44714ccdcc4b5b1bebfd471d2665.tar.gz
linux-f65bbf05392b44714ccdcc4b5b1bebfd471d2665.zip
alpha: regularize the situation with asm/param.h
The only reason why alpha can't do what sparc et.al. are doing is that include/asm-generic/param.h relies upon the value of HZ set for userland header in uapi/asm/param.h being 100. We need that value to define USER_HZ and we need that definition to outlive the redefinition of HZ kernel-side. And alpha needs it to be 1024, not 100 like everybody else. So let's add __USER_HZ to uapi/asm-generic/param.h, defaulting to 100 and used to define HZ. That way include/asm-generic/param.h can use that thing instead of open-coding it - it won't be affected by undefining and redefining HZ. That done, alpha asm/param.h can be removed and uapi/asm/param.h switched to defining __USER_HZ and EXEC_PAGESIZE and then including <asm-generic/param.h> - asm/param.h will resolve to uapi/asm/param.h, which pulls <asm-generic/param.h>, which will do the right thing both in the kernel and userland contexts. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/alpha/include/uapi/asm')
-rw-r--r--arch/alpha/include/uapi/asm/param.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/alpha/include/uapi/asm/param.h b/arch/alpha/include/uapi/asm/param.h
index 49c7119934e2..e4e410f9bf85 100644
--- a/arch/alpha/include/uapi/asm/param.h
+++ b/arch/alpha/include/uapi/asm/param.h
@@ -2,14 +2,9 @@
#ifndef _UAPI_ASM_ALPHA_PARAM_H
#define _UAPI_ASM_ALPHA_PARAM_H
-#define HZ 1024
-
+#define __USER_HZ 1024
#define EXEC_PAGESIZE 8192
-#ifndef NOGROUP
-#define NOGROUP (-1)
-#endif
-
-#define MAXHOSTNAMELEN 64 /* max length of hostname */
+#include <asm-generic/param.h>
#endif /* _UAPI_ASM_ALPHA_PARAM_H */