Skip to contentSkip to conversation

net: phy: aquantia: add missing include guards

PATCH RESEND Superseded Bartosz Golaszewski 2 participants 4 messages Jun 27, 2024 – Jun 28, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 net: phy: aquantia: add missing include guards

From: Bartosz Golaszewski <[email protected]>

The header is missing the include guards so add them.

Fixes fb470f70fea7 ("net: phy: aquantia: add hwmon support")

---
Added the Fixes: tag and resending separately as a backportable fix.

 drivers/net/phy/aquantia/aquantia.h | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/phy/aquantia/aquantia.h +5 -0
index c0e1fd9d7152..b8502793962e 100644
@@ -6,6 +6,9 @@
  * Author: Heiner Kallweit <[email protected]>
  */
 
+#ifndef AQUANTIA_H
+#define AQUANTIA_H
+
 #include <linux/device.h>
 #include <linux/phy.h>
 
@@ -198,3 +201,5 @@ int aqr_phy_led_hw_control_set(struct phy_device *phydev, u8 index,
 int aqr_phy_led_active_low_set(struct phy_device *phydev, int index, bool enable);
 int aqr_phy_led_polarity_set(struct phy_device *phydev, int index,
 			     unsigned long modes);
+
+#endif /* AQUANTIA_H */
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 7 lines · On Thu, 27 Jun 2024 12:58:45 +0200 Bartosz Golaszewski wrote:

From: Bartosz Golaszewski <[email protected]>

The header is missing the include guards so add them.

Fixes fb470f70fea7 ("net: phy: aquantia: add hwmon support")

You say net but it doesn't apply:

Applying: net: phy: aquantia: add missing include guards
error: patch failed: drivers/net/phy/aquantia/aquantia.h:198
error: drivers/net/phy/aquantia/aquantia.h: patch does not apply Patch failed at 0001 net: phy: aquantia: add missing include guards

Signature · 1 line
pw-bot: cr
#2 lore raw
Quoted 10 lines · Jakub Kicinski
Quoted 7 lines · On Thu, 27 Jun 2024 12:58:45 +0200 Bartosz Golaszewski wrote:

From: Bartosz Golaszewski <[email protected]>

The header is missing the include guards so add them.

Fixes fb470f70fea7 ("net: phy: aquantia: add hwmon support")
Quoted 8 lines

You say net but it doesn't apply:

Applying: net: phy: aquantia: add missing include guards
error: patch failed: drivers/net/phy/aquantia/aquantia.h:198
error: drivers/net/phy/aquantia/aquantia.h: patch does not apply Patch failed at 0001 net: phy: aquantia: add missing include guards --
pw-bot: cr

I resent a rebased version. However I noticed I forgot the 'net' prefix as I split it out of the previous series. Sorry, I hope it can still be applied without resending again.

Bart

maintainer
#3 lore raw
Quoted 9 lines · On Fri, 28 Jun 2024 09:56:31 +0200 Bartosz Golaszewski wrote:
Quoted 8 lines

You say net but it doesn't apply:

Applying: net: phy: aquantia: add missing include guards
error: patch failed: drivers/net/phy/aquantia/aquantia.h:198
error: drivers/net/phy/aquantia/aquantia.h: patch does not apply Patch failed at 0001 net: phy: aquantia: add missing include guards --
pw-bot: cr

Quoted 3 lines

I resent a rebased version. However I noticed I forgot the 'net' prefix as I split it out of the previous series. Sorry, I hope it can still be applied without resending again.

The bot wasn't clever enough, sorry :( Third time is the charm..