Skip to content

Commit 3d787b3

Browse files
committed
s390/uaccess: fix compile error
Compiling with e.g MARCH=z900 results in compile errors: arch/s390/lib/uaccess.c: In function 'copy_from_user_mvcos': >> arch/s390/lib/uaccess.c:65:15: error: variable 'spec' has initializer but incomplete type 65 | union oac spec = { Therefore make definition of union oac visible for all MARCHs. Reported-by: kernel test robot <lkp@intel.com> Cc: Nico Boehr <nrb@linux.ibm.com> Cc: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Fixes: 012a224 ("s390/uaccess: introduce bit field for OAC specifier") Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent f094a39 commit 3d787b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/s390/include/asm/uaccess.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n);
4747
int __put_user_bad(void) __attribute__((noreturn));
4848
int __get_user_bad(void) __attribute__((noreturn));
4949

50-
#ifdef CONFIG_HAVE_MARCH_Z10_FEATURES
51-
5250
union oac {
5351
unsigned int val;
5452
struct {
@@ -71,6 +69,8 @@ union oac {
7169
};
7270
};
7371

72+
#ifdef CONFIG_HAVE_MARCH_Z10_FEATURES
73+
7474
#define __put_get_user_asm(to, from, size, oac_spec) \
7575
({ \
7676
int __rc; \

0 commit comments

Comments
 (0)