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

The include guard "_E1000_HW_H_" is used by header files in three
different drivers (e1000/e1000_hw.h, e1000e/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 the duplicate include
guard in the e1000e driver by renaming it.

Fixes: 3f32e81cc0ea ("[E1000E]: New pci-express e1000 driver (currently for ICH9 devices only)")
Signed-off-by: Tom Seewald <tseewald@gmail.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/hw.h