Skip to content

Commit cf80fdb

Browse files
andy-shevakpm00
authored andcommitted
list: remove redundant 'extern' for function prototypes
The 'extern' keyword is redundant for function prototypes. list.h never used them and new code in general is better without them. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 09e1d93 commit cf80fdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/list.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ static inline void INIT_LIST_HEAD(struct list_head *list)
5050
* Performs the full set of list corruption checks before __list_add().
5151
* On list corruption reports a warning, and returns false.
5252
*/
53-
extern bool __list_valid_slowpath __list_add_valid_or_report(struct list_head *new,
54-
struct list_head *prev,
55-
struct list_head *next);
53+
bool __list_valid_slowpath __list_add_valid_or_report(struct list_head *new,
54+
struct list_head *prev,
55+
struct list_head *next);
5656

5757
/*
5858
* Performs list corruption checks before __list_add(). Returns false if a
@@ -93,7 +93,7 @@ static __always_inline bool __list_add_valid(struct list_head *new,
9393
* Performs the full set of list corruption checks before __list_del_entry().
9494
* On list corruption reports a warning, and returns false.
9595
*/
96-
extern bool __list_valid_slowpath __list_del_entry_valid_or_report(struct list_head *entry);
96+
bool __list_valid_slowpath __list_del_entry_valid_or_report(struct list_head *entry);
9797

9898
/*
9999
* Performs list corruption checks before __list_del_entry(). Returns false if a

0 commit comments

Comments
 (0)