]> 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)
commit29c0d5aaf02cc0a586bbf6afc8b51ec713d4c9f6
tree2458575d15debaeb45faeb105770586ba0eca62c
parentc9facca1249ff2720e5685223dcee5ec24afbd2c
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