Skip to contentSkip to conversation

driver core: Drop unneeded 'externt' keyword in fwnode.h

PATCH Superseded Andy Shevchenko 1 participant 2 messages Feb 20, 2024

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Andy Shevchenko

author reviewer
#0 lore raw

PATCH 1/1 driver core: Drop unneeded 'externt' keyword in fwnode.h

We do not use 'extern' keywork with functions. Remove the last one mistakenly added to fwnode.h.

Fixes 19d0f5f6bff8 ("driver core: Add fw_devlink.strict kernel param")
---
 include/linux/fwnode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fwnode.h +1 -1
index fdc90e6e4dc3..3b763042ee82 100644
@@ -216,9 +216,9 @@ static inline void fwnode_dev_initialized(struct fwnode_handle *fwnode,
 		fwnode->flags &= ~FWNODE_FLAG_INITIALIZED;
 }
 
-extern bool fw_devlink_is_strict(void);
 int fwnode_link_add(struct fwnode_handle *con, struct fwnode_handle *sup);
 void fwnode_links_purge(struct fwnode_handle *fwnode);
 void fw_devlink_purge_absent_suppliers(struct fwnode_handle *fwnode);
+bool fw_devlink_is_strict(void);
 
 #endif
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
author reviewer
#1 lore raw
Quoted 2 lines · Andy Shevchenko

We do not use 'extern' keywork with functions. Remove the last one mistakenly added to fwnode.h.

Oops, there are two typos in the Subject.
I'm going to send a v2 with them fixed.

Signature · 2 lines
With Best Regards,
Andy Shevchenko