HAOUAS Elyes (ehaouas@noos.fr) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6451
-gerrit
commit 014085955854495654e624ad091fb36c8feb0f68 Author: Elyes HAOUAS ehaouas@noos.fr Date: Fri Aug 1 14:40:57 2014 +0200
southbridge 'smbus.h': Add missing header guards
Change-Id: I20f1a08147544fb951c48c2d9438ba3363adc5a1 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- src/southbridge/amd/cs5535/smbus.h | 5 +++++ src/southbridge/intel/bd82x6x/smbus.h | 5 +++++ src/southbridge/intel/esb6300/smbus.h | 5 +++++ src/southbridge/intel/fsp_rangeley/smbus.h | 5 +++++ src/southbridge/intel/i3100/smbus.h | 5 +++++ src/southbridge/intel/i82371eb/smbus.h | 5 +++++ src/southbridge/intel/i82801ax/smbus.h | 5 +++++ src/southbridge/intel/i82801bx/smbus.h | 5 +++++ src/southbridge/intel/i82801ex/smbus.h | 5 +++++ src/southbridge/intel/i82801gx/smbus.h | 5 +++++ src/southbridge/intel/i82801ix/smbus.h | 5 +++++ src/southbridge/intel/ibexpeak/smbus.h | 5 +++++ src/southbridge/intel/lynxpoint/smbus.h | 5 +++++ src/southbridge/intel/sch/smbus.h | 5 +++++ src/southbridge/nvidia/ck804/smbus.h | 5 +++++ src/southbridge/nvidia/mcp55/smbus.h | 5 +++++ src/southbridge/sis/sis966/smbus.h | 5 +++++ 17 files changed, 85 insertions(+)
diff --git a/src/southbridge/amd/cs5535/smbus.h b/src/southbridge/amd/cs5535/smbus.h index db35f6e..d904295 100644 --- a/src/southbridge/amd/cs5535/smbus.h +++ b/src/southbridge/amd/cs5535/smbus.h @@ -1,3 +1,6 @@ +#ifndef SMBUS_H +#define SMBUS_H + //#include <device/smbus_def.h> #define SMBUS_ERROR -1 #define SMBUS_WAIT_UNTIL_READY_TIMEOUT -2 @@ -44,3 +47,5 @@ #define SMBUS_STATUS_MASK 0xfbff
#define SMBUS_IO_BASE 0x6000 + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/bd82x6x/smbus.h b/src/southbridge/intel/bd82x6x/smbus.h index c4b05f6..996ecc7 100644 --- a/src/southbridge/intel/bd82x6x/smbus.h +++ b/src/southbridge/intel/bd82x6x/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "pch.h"
@@ -97,3 +100,5 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned add } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/esb6300/smbus.h b/src/southbridge/intel/esb6300/smbus.h index 0a944d3..9691849 100644 --- a/src/southbridge/intel/esb6300/smbus.h +++ b/src/southbridge/intel/esb6300/smbus.h @@ -1,3 +1,6 @@ +#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
#define SMBHSTSTAT 0x0 @@ -98,3 +101,5 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/fsp_rangeley/smbus.h b/src/southbridge/intel/fsp_rangeley/smbus.h index 34d2a8c..771859a 100644 --- a/src/southbridge/intel/fsp_rangeley/smbus.h +++ b/src/southbridge/intel/fsp_rangeley/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "soc.h"
@@ -97,3 +100,5 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned add } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i3100/smbus.h b/src/southbridge/intel/i3100/smbus.h index b4ed309..1241c45 100644 --- a/src/southbridge/intel/i3100/smbus.h +++ b/src/southbridge/intel/i3100/smbus.h @@ -19,6 +19,9 @@
/* This code is based on src/southbridge/intel/esb6300/esb6300_smbus.h */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
#define SMBHSTSTAT 0x0 @@ -153,3 +156,5 @@ static int do_smbus_write_byte(unsigned smbus_base, unsigned device, unsigned a
return 0; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i82371eb/smbus.h b/src/southbridge/intel/i82371eb/smbus.h index 6c7c6f4..c9e624c 100644 --- a/src/southbridge/intel/i82371eb/smbus.h +++ b/src/southbridge/intel/i82371eb/smbus.h @@ -1,3 +1,6 @@ +#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "i82371eb.h"
@@ -112,3 +115,5 @@ int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned address } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i82801ax/smbus.h b/src/southbridge/intel/i82801ax/smbus.h index de1e318..79396b1 100644 --- a/src/southbridge/intel/i82801ax/smbus.h +++ b/src/southbridge/intel/i82801ax/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "i82801ax.h"
@@ -99,3 +102,5 @@ int do_smbus_read_byte(u16 smbus_io_base, u8 device, u8 address) } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i82801bx/smbus.h b/src/southbridge/intel/i82801bx/smbus.h index c23e8fa..79aab0e 100644 --- a/src/southbridge/intel/i82801bx/smbus.h +++ b/src/southbridge/intel/i82801bx/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
static void smbus_delay(void) @@ -96,3 +99,5 @@ static int do_smbus_read_byte(u16 smbus_io_base, u8 device, u8 address) } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i82801ex/smbus.h b/src/southbridge/intel/i82801ex/smbus.h index b166797..f056bef 100644 --- a/src/southbridge/intel/i82801ex/smbus.h +++ b/src/southbridge/intel/i82801ex/smbus.h @@ -1,3 +1,6 @@ +#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
#define SMBHSTSTAT 0x0 @@ -102,3 +105,5 @@ static int do_smbus_read_byte(unsigned smbus_io_base, unsigned device, unsigned } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i82801gx/smbus.h b/src/southbridge/intel/i82801gx/smbus.h index 17804d6..b0a98e8 100644 --- a/src/southbridge/intel/i82801gx/smbus.h +++ b/src/southbridge/intel/i82801gx/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "i82801gx.h"
@@ -97,3 +100,5 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned add } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/i82801ix/smbus.h b/src/southbridge/intel/i82801ix/smbus.h index f215fb4..7b45f8b 100644 --- a/src/southbridge/intel/i82801ix/smbus.h +++ b/src/southbridge/intel/i82801ix/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "i82801ix.h"
@@ -97,3 +100,5 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned add } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/ibexpeak/smbus.h b/src/southbridge/intel/ibexpeak/smbus.h index cf57685..52310d8 100644 --- a/src/southbridge/intel/ibexpeak/smbus.h +++ b/src/southbridge/intel/ibexpeak/smbus.h @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "pch.h"
@@ -243,3 +246,5 @@ static int do_smbus_block_read(unsigned smbus_base, unsigned device, return bytes_read; } #endif + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/lynxpoint/smbus.h b/src/southbridge/intel/lynxpoint/smbus.h index c4b05f6..996ecc7 100644 --- a/src/southbridge/intel/lynxpoint/smbus.h +++ b/src/southbridge/intel/lynxpoint/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h> #include "pch.h"
@@ -97,3 +100,5 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, unsigned add } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/intel/sch/smbus.h b/src/southbridge/intel/sch/smbus.h index 058c4b3..3666941 100644 --- a/src/southbridge/intel/sch/smbus.h +++ b/src/southbridge/intel/sch/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
static void smbus_delay(void) @@ -96,3 +99,5 @@ static int do_smbus_read_byte(unsigned smbus_base, unsigned device, } return byte; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/nvidia/ck804/smbus.h b/src/southbridge/nvidia/ck804/smbus.h index 3aac3d8..0146a56 100644 --- a/src/southbridge/nvidia/ck804/smbus.h +++ b/src/southbridge/nvidia/ck804/smbus.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
#define SMBHSTSTAT 0x1 @@ -227,3 +230,5 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device,
return 0; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/nvidia/mcp55/smbus.h b/src/southbridge/nvidia/mcp55/smbus.h index 13d7580..62bd13b 100644 --- a/src/southbridge/nvidia/mcp55/smbus.h +++ b/src/southbridge/nvidia/mcp55/smbus.h @@ -21,6 +21,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
#define SMBHSTSTAT 0x1 @@ -174,3 +177,5 @@ static int do_smbus_write_byte(unsigned smbus_io_base, unsigned device, unsigned } return 0; } + +#endif /* SMBUS_H */ diff --git a/src/southbridge/sis/sis966/smbus.h b/src/southbridge/sis/sis966/smbus.h index 68d17e6..03de567 100644 --- a/src/southbridge/sis/sis966/smbus.h +++ b/src/southbridge/sis/sis966/smbus.h @@ -23,6 +23,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SMBUS_H +#define SMBUS_H + #include <device/smbus_def.h>
#define SMBHSTSTAT 0x1 @@ -43,3 +46,5 @@ int do_smbus_recv_byte(unsigned smbus_io_base, unsigned device); int do_smbus_send_byte(unsigned smbus_io_base, unsigned device, unsigned char val); int smbus_read_byte(unsigned device, unsigned address); int smbus_write_byte(unsigned device, unsigned address, unsigned char val); + +#endif /* SMBUS_H */