diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2019-10-16 09:21:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-18 13:56:31 +0200 |
commit | f51c1cec2581aab869ab4fba313898fc2f436f77 (patch) | |
tree | 898548db063620330de6873929dea484eb9d8b65 | |
parent | 0fc1f8ef52847364224f87323c70bfcd43d8eaf6 (diff) | |
download | barebox-f51c1cec2581aab869ab4fba313898fc2f436f77.tar.gz barebox-f51c1cec2581aab869ab4fba313898fc2f436f77.tar.xz |
x86: include: add asmlinkage 'storage class'
We've a number of C functions with external linkage that are only called
from assembly. -Wmissing-prototypes warns about these unless they have
a prototype that goes unused. Let's standardize on using the asmlinkage
'storage class' to mark such declarations.
As <linux/linkage.h> defines asmlinkage to naught unless <asm/linkage.h>
does, it's sufficient to add an empty header to make this usable on x86
as well.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/x86/include/asm/linkage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/linkage.h b/arch/x86/include/asm/linkage.h new file mode 100644 index 0000000000..a8d1bdb7de --- /dev/null +++ b/arch/x86/include/asm/linkage.h @@ -0,0 +1,6 @@ +#ifndef __ASM_LINKAGE_H +#define __ASM_LINKAGE_H + +/* referenced by <linux/linkage.h> */ + +#endif |