From a0e3a44bc2a01153fe4ff56fc1ec26832a869437 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Sun, 29 May 2022 21:27:48 +0200 Subject: s390/uaccess: use __noreturn instead of __attribute__((noreturn)) Signed-off-by: Heiko Carstens --- arch/s390/include/asm/uaccess.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index 2d8d9e89d48f..40361072e638 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h @@ -55,9 +55,6 @@ copy_to_user_key(void __user *to, const void *from, unsigned long n, unsigned lo return n; } -int __put_user_bad(void) __attribute__((noreturn)); -int __get_user_bad(void) __attribute__((noreturn)); - union oac { unsigned int val; struct { @@ -80,6 +77,8 @@ union oac { }; }; +int __noreturn __put_user_bad(void); + #define __put_user_asm(to, from, size) \ ({ \ union oac __oac_spec = { \ @@ -134,6 +133,8 @@ static __always_inline int __put_user_fn(void *x, void __user *ptr, unsigned lon return rc; } +int __noreturn __get_user_bad(void); + #define __get_user_asm(to, from, size) \ ({ \ union oac __oac_spec = { \ -- cgit v1.2.3