diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2020-04-03 20:10:18 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2020-04-14 11:31:49 +0300 |
commit | 23818b3d8590a79d56af9659cf709ebfae30f832 (patch) | |
tree | f1a8cc3222f5a95fca257d303a6c8148e77a618b /include/linux/scpi_protocol.h | |
parent | 70771c69ab9be6e37618b1ec6c105f370e510f94 (diff) | |
download | linux-23818b3d8590a79d56af9659cf709ebfae30f832.tar.xz |
firmware: arm_scpi: Add include guard to linux/scpi_protocol.h
If this header is include twice, it will generate loads of compile
time error with the following below error pattern. It was reported by
0day kbuild robot on a branch pushed with double inclusion by accident.
This is based on the similar change in linux/scmi_protocol.h
error: conflicting types for ‘...’
note: previous declaration of ‘...’ was here
error: redefinition of ‘...’
Add a header include guard just in case.
Link: https://lore.kernel.org/r/20200403171018.1230-2-sudeep.holla@arm.com
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/scpi_protocol.h')
-rw-r--r-- | include/linux/scpi_protocol.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h index ecb004711acf..afbf8037d8db 100644 --- a/include/linux/scpi_protocol.h +++ b/include/linux/scpi_protocol.h @@ -4,6 +4,10 @@ * * Copyright (C) 2014 ARM Ltd. */ + +#ifndef _LINUX_SCPI_PROTOCOL_H +#define _LINUX_SCPI_PROTOCOL_H + #include <linux/types.h> struct scpi_opp { @@ -71,3 +75,5 @@ struct scpi_ops *get_scpi_ops(void); #else static inline struct scpi_ops *get_scpi_ops(void) { return NULL; } #endif + +#endif /* _LINUX_SCPI_PROTOCOL_H */ |