Skip to contentSkip to conversation

e1000e: use proper #include guard name in hw.h

PATCH In review Greg Kroah-Hartman 2 participants 3 messages Feb 27, 2021 – Mar 2, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e1000e: use proper #include guard name in hw.h

The include guard for the e1000e and e1000 hw.h files are the same, so add the proper "E" term to the hw.h file for the e1000e driver.

This resolves some static analyzer warnings, like the one found by the "lgtm.com" tool.

Cc Jesse Brandeburg <[email protected]>
Cc Tony Nguyen <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc intel-wired-lan at lists.osuosl.org
---
 drivers/net/ethernet/intel/e1000e/hw.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/e1000e/hw.h +2 -2
index 69a2329ea463..f7954cadd979 100644
@@ -1,8 +1,8 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* Copyright(c) 1999 - 2018 Intel Corporation. */
 
-#ifndef _E1000_HW_H_
-#define _E1000_HW_H_
+#ifndef _E1000E_HW_H_
+#define _E1000E_HW_H_
 
 #include "regs.h"
 #include "defines.h"
Signature · 1 line
2.30.1
#1 lore raw
Quoted 3 lines · Greg Kroah-Hartman

The include guard for the e1000e and e1000 hw.h files are the same, so
add the proper "E" term to the hw.h file for the e1000e driver.

There's a patch in process that addresses this issue [1].

Quoted 10 lines

This resolves some static analyzer warnings, like the one found by the
"lgtm.com" tool.

Cc Jesse Brandeburg <[email protected]>
Cc Tony Nguyen <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc intel-wired-lan at lists.osuosl.org

[1] https://patchwork.ozlabs.org/project/intel-wired-
lan/patch/20210222040005.20126-1-tseewald at gmail.com/

Thanks,
Tony

#2 lore raw
Quoted 6 lines · Anthony L
Quoted 3 lines · Greg Kroah-Hartman

The include guard for the e1000e and e1000 hw.h files are the same, so
add the proper "E" term to the hw.h file for the e1000e driver.

There's a patch in process that addresses this issue [1].

Thanks, hopefully it gets fixed somehow :)

greg k-h