diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-02-17 20:11:19 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-02-17 20:11:19 +0100 |
commit | c5a69d57eb48e36f84c0737b5b24ec277d7dbfba (patch) | |
tree | a222d02f4fa9b42e78228cdb106ace4e35bd2ccc /include/asm-arm | |
parent | 0bbfb7c2e4b682542a822d3af05cea0e5cb5ba81 (diff) | |
download | talos-op-linux-c5a69d57eb48e36f84c0737b5b24ec277d7dbfba.tar.gz talos-op-linux-c5a69d57eb48e36f84c0737b5b24ec277d7dbfba.zip |
Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/uaccess.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-arm/uaccess.h b/include/asm-arm/uaccess.h index c92df958802e..4c1a3fa9f259 100644 --- a/include/asm-arm/uaccess.h +++ b/include/asm-arm/uaccess.h @@ -109,7 +109,7 @@ extern int __get_user_4(void *); #define get_user(x,p) \ ({ \ - const register typeof(*(p)) __user *__p asm("r0") = (p);\ + register const typeof(*(p)) __user *__p asm("r0") = (p);\ register unsigned long __r2 asm("r2"); \ register int __e asm("r0"); \ switch (sizeof(*(__p))) { \ @@ -143,8 +143,8 @@ extern int __put_user_8(void *, unsigned long long); #define put_user(x,p) \ ({ \ - const register typeof(*(p)) __r2 asm("r2") = (x); \ - const register typeof(*(p)) __user *__p asm("r0") = (p);\ + register const typeof(*(p)) __r2 asm("r2") = (x); \ + register const typeof(*(p)) __user *__p asm("r0") = (p);\ register int __e asm("r0"); \ switch (sizeof(*(__p))) { \ case 1: \ |