diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-24 14:41:28 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-24 14:41:28 +0100 |
| commit | b59fcf495df52d06ab9a6487ed944618e155f57b (patch) | |
| tree | fdc9ceaadeef787dd1aba61b6b6fe434801d4141 /0002-e1000e-use-proper-include-guard-name-in-hw.h.patch | |
| parent | 4a11ea0818f9d84b7b29693f27adaa5d020ffe25 (diff) | |
| download | patches-b59fcf495df52d06ab9a6487ed944618e155f57b.tar.gz | |
2 more patches added
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.patch | 34 |
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" |
