]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ixgbe: Add ixgbe_x540 multiple header inclusion protection
authorPiotr Kwapulinski <piotr.kwapulinski@intel.com>
Thu, 5 Dec 2024 08:44:48 +0000 (09:44 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 20 Dec 2024 18:14:02 +0000 (10:14 -0800)
Required to adopt x540 specific functions by E610 device.

Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Bharath R <bharath.r@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.h

index b69a680d3ab56f34a259753c17d425f9de0c8bb2..6ed360c5b605b6012599139eeb3c0bac32d99449 100644 (file)
@@ -1,5 +1,8 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright(c) 1999 - 2018 Intel Corporation. */
+/* Copyright(c) 1999 - 2024 Intel Corporation. */
+
+#ifndef _IXGBE_X540_H_
+#define _IXGBE_X540_H_
 
 #include "ixgbe_type.h"
 
@@ -17,3 +20,5 @@ int ixgbe_acquire_swfw_sync_X540(struct ixgbe_hw *hw, u32 mask);
 void ixgbe_release_swfw_sync_X540(struct ixgbe_hw *hw, u32 mask);
 void ixgbe_init_swfw_sync_X540(struct ixgbe_hw *hw);
 int ixgbe_init_eeprom_params_X540(struct ixgbe_hw *hw);
+
+#endif /* _IXGBE_X540_H_ */