]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Fix duplicate include guard
authorTom Seewald <tseewald@gmail.com>
Mon, 22 Feb 2021 04:00:05 +0000 (22:00 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 19 Mar 2021 15:47:46 +0000 (08:47 -0700)
commit3014aca5c40abb51b2449ad183957ec0a40159ca
tree2458575d15debaeb45faeb105770586ba0eca62c
parent25b6f506e7fa8438e39d9f359d68b62b21ec6b24
igb: Fix duplicate include guard

The include guard "_E1000_HW_H_" is used by two separate header files in
two different drivers (e1000/e1000_hw.h and igb/e1000_hw.h). Using the
same include guard macro in more than one header file may cause
unexpected behavior from the compiler. Fix this by renaming the
duplicate guard in the igb driver.

Fixes: d49a2a41710f ("igb: PCI-Express 82575 Gigabit Ethernet driver")
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/e1000_hw.h