summaryrefslogtreecommitdiffstats
path: root/src/include/bootblock_common.h
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-07 15:47:44 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-13 17:19:45 +0100
commit22c28e0f6aa6aa66828e575b552baf8fb23c3b82 (patch)
tree7ae5811db8d1a79e4b5ad55eb1b4badccc2e9aa2 /src/include/bootblock_common.h
parent746d4afbedd2ca5c8fff848ac3af66ce27ca9d72 (diff)
downloadcoreboot-22c28e0f6aa6aa66828e575b552baf8fb23c3b82.tar.gz
coreboot-22c28e0f6aa6aa66828e575b552baf8fb23c3b82.tar.bz2
coreboot-22c28e0f6aa6aa66828e575b552baf8fb23c3b82.zip
src/include: Move storage class to beginning of declaration
Fix the following warning detected by checkpatch.pl: WARNING: storage class should be at the beginning of the declaration The following storage class attribute is not detected by checkpatch.py: static cbmem_init_hook_t init_fn_ ## _ptr_ __attribute__((used, \ section(".rodata.cbmem_init_hooks"))) = init_fn_; The following lines generates a false positive: (pound)define STATIC static src/include/cpu/amd/common/cbtypes.h:60: WARNING: storage class should be at the beginning of the declaration typedef asmlinkage void (*smm_handler_t)(void *); src/include/cpu/x86/smm.h:514: WARNING: storage class should be at the beginning of the declaration (pound)define MAYBE_STATIC static src/include/stddef.h:34: WARNING: storage class should be at the beginning of the declaration TEST=Build and run on Galileo Gen2 Change-Id: Ie087d38e6171b549b90e0b831050ac44746a1e14 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18657 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/bootblock_common.h')
-rw-r--r--src/include/bootblock_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/bootblock_common.h b/src/include/bootblock_common.h
index 04fc0cbfd5f0..6ede77c965e8 100644
--- a/src/include/bootblock_common.h
+++ b/src/include/bootblock_common.h
@@ -33,7 +33,7 @@ void bootblock_soc_init(void);
/*
* C code entry point for the boot block.
*/
-void asmlinkage bootblock_c_entry(uint64_t base_timestamp);
+asmlinkage void bootblock_c_entry(uint64_t base_timestamp);
/*
* This is a the same as the bootblock main(), with the difference that it does
@@ -43,6 +43,6 @@ void asmlinkage bootblock_c_entry(uint64_t base_timestamp);
* This function assumes that the timer has already been initialized, so it
* does not call init_timer().
*/
-void asmlinkage bootblock_main_with_timestamp(uint64_t base_timestamp);
+asmlinkage void bootblock_main_with_timestamp(uint64_t base_timestamp);
#endif /* __BOOTBLOCK_COMMON_H */