Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wimax.h: Remove extern from function prototypes

There are a mix of function prototypes with and without extern
in the kernel sources. Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler. Its use is as unnecessary as
using auto to declare automatic/local variables in a block.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
6dfd43d2 9e4638cd

+16 -17
+16 -17
include/net/wimax.h
··· 438 438 * 439 439 * These functions are not exported to user space. 440 440 */ 441 - extern void wimax_dev_init(struct wimax_dev *); 442 - extern int wimax_dev_add(struct wimax_dev *, struct net_device *); 443 - extern void wimax_dev_rm(struct wimax_dev *); 441 + void wimax_dev_init(struct wimax_dev *); 442 + int wimax_dev_add(struct wimax_dev *, struct net_device *); 443 + void wimax_dev_rm(struct wimax_dev *); 444 444 445 445 static inline 446 446 struct wimax_dev *net_dev_to_wimax(struct net_device *net_dev) ··· 454 454 return wimax_dev->net_dev->dev.parent; 455 455 } 456 456 457 - extern void wimax_state_change(struct wimax_dev *, enum wimax_st); 458 - extern enum wimax_st wimax_state_get(struct wimax_dev *); 457 + void wimax_state_change(struct wimax_dev *, enum wimax_st); 458 + enum wimax_st wimax_state_get(struct wimax_dev *); 459 459 460 460 /* 461 461 * Radio Switch state reporting. ··· 463 463 * enum wimax_rf_state is declared in linux/wimax.h so the exports 464 464 * to user space can use it. 465 465 */ 466 - extern void wimax_report_rfkill_hw(struct wimax_dev *, enum wimax_rf_state); 467 - extern void wimax_report_rfkill_sw(struct wimax_dev *, enum wimax_rf_state); 466 + void wimax_report_rfkill_hw(struct wimax_dev *, enum wimax_rf_state); 467 + void wimax_report_rfkill_sw(struct wimax_dev *, enum wimax_rf_state); 468 468 469 469 470 470 /* ··· 490 490 * send diagnostics information that a device-specific diagnostics 491 491 * tool would be interested in. 492 492 */ 493 - extern struct sk_buff *wimax_msg_alloc(struct wimax_dev *, const char *, 494 - const void *, size_t, gfp_t); 495 - extern int wimax_msg_send(struct wimax_dev *, struct sk_buff *); 496 - extern int wimax_msg(struct wimax_dev *, const char *, 497 - const void *, size_t, gfp_t); 493 + struct sk_buff *wimax_msg_alloc(struct wimax_dev *, const char *, const void *, 494 + size_t, gfp_t); 495 + int wimax_msg_send(struct wimax_dev *, struct sk_buff *); 496 + int wimax_msg(struct wimax_dev *, const char *, const void *, size_t, gfp_t); 498 497 499 - extern const void *wimax_msg_data_len(struct sk_buff *, size_t *); 500 - extern const void *wimax_msg_data(struct sk_buff *); 501 - extern ssize_t wimax_msg_len(struct sk_buff *); 498 + const void *wimax_msg_data_len(struct sk_buff *, size_t *); 499 + const void *wimax_msg_data(struct sk_buff *); 500 + ssize_t wimax_msg_len(struct sk_buff *); 502 501 503 502 504 503 /* ··· 512 513 * device's control structure and (as such) the 'struct wimax_dev' is 513 514 * referenced by the caller. 514 515 */ 515 - extern int wimax_rfkill(struct wimax_dev *, enum wimax_rf_state); 516 - extern int wimax_reset(struct wimax_dev *); 516 + int wimax_rfkill(struct wimax_dev *, enum wimax_rf_state); 517 + int wimax_reset(struct wimax_dev *); 517 518 518 519 #endif /* #ifndef __NET__WIMAX_H__ */