aboutsummaryrefslogtreecommitdiffstats
path: root/0002-e1000e-use-proper-include-guard-name-in-hw.h.patch
diff options
Diffstat (limited to '0002-e1000e-use-proper-include-guard-name-in-hw.h.patch')
-rw-r--r--0002-e1000e-use-proper-include-guard-name-in-hw.h.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0002-e1000e-use-proper-include-guard-name-in-hw.h.patch b/0002-e1000e-use-proper-include-guard-name-in-hw.h.patch
new file mode 100644
index 00000000000000..057c31176ca981
--- /dev/null
+++ b/0002-e1000e-use-proper-include-guard-name-in-hw.h.patch
@@ -0,0 +1,34 @@
+From 21ea2795fc39e6f07df72616edc03d4d2caee1fc Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Sat, 27 Feb 2021 10:55:47 +0100
+Subject: [PATCH 2/2] 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 <jesse.brandeburg@intel.com>
+Cc: Tony Nguyen <anthony.l.nguyen@intel.com>
+Cc: "David S. Miller" <davem@davemloft.net>
+Cc: Jakub Kicinski <kuba@kernel.org>
+Cc: intel-wired-lan@lists.osuosl.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/ethernet/intel/e1000e/hw.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/net/ethernet/intel/e1000e/hw.h
++++ b/drivers/net/ethernet/intel/e1000e/hw.h
+@@ -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"