mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
chelsio: 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>
This commit is contained in:
parent
49ca19bd2f
commit
22018e45ae
@ -324,30 +324,30 @@ static inline unsigned int core_ticks_per_usec(const adapter_t *adap)
|
||||
return board_info(adap)->clock_core / 1000000;
|
||||
}
|
||||
|
||||
extern int __t1_tpi_read(adapter_t *adapter, u32 addr, u32 *valp);
|
||||
extern int __t1_tpi_write(adapter_t *adapter, u32 addr, u32 value);
|
||||
extern int t1_tpi_write(adapter_t *adapter, u32 addr, u32 value);
|
||||
extern int t1_tpi_read(adapter_t *adapter, u32 addr, u32 *value);
|
||||
int __t1_tpi_read(adapter_t *adapter, u32 addr, u32 *valp);
|
||||
int __t1_tpi_write(adapter_t *adapter, u32 addr, u32 value);
|
||||
int t1_tpi_write(adapter_t *adapter, u32 addr, u32 value);
|
||||
int t1_tpi_read(adapter_t *adapter, u32 addr, u32 *value);
|
||||
|
||||
extern void t1_interrupts_enable(adapter_t *adapter);
|
||||
extern void t1_interrupts_disable(adapter_t *adapter);
|
||||
extern void t1_interrupts_clear(adapter_t *adapter);
|
||||
extern int t1_elmer0_ext_intr_handler(adapter_t *adapter);
|
||||
extern void t1_elmer0_ext_intr(adapter_t *adapter);
|
||||
extern int t1_slow_intr_handler(adapter_t *adapter);
|
||||
void t1_interrupts_enable(adapter_t *adapter);
|
||||
void t1_interrupts_disable(adapter_t *adapter);
|
||||
void t1_interrupts_clear(adapter_t *adapter);
|
||||
int t1_elmer0_ext_intr_handler(adapter_t *adapter);
|
||||
void t1_elmer0_ext_intr(adapter_t *adapter);
|
||||
int t1_slow_intr_handler(adapter_t *adapter);
|
||||
|
||||
extern int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
|
||||
extern const struct board_info *t1_get_board_info(unsigned int board_id);
|
||||
extern const struct board_info *t1_get_board_info_from_ids(unsigned int devid,
|
||||
int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
|
||||
const struct board_info *t1_get_board_info(unsigned int board_id);
|
||||
const struct board_info *t1_get_board_info_from_ids(unsigned int devid,
|
||||
unsigned short ssid);
|
||||
extern int t1_seeprom_read(adapter_t *adapter, u32 addr, __le32 *data);
|
||||
extern int t1_get_board_rev(adapter_t *adapter, const struct board_info *bi,
|
||||
int t1_seeprom_read(adapter_t *adapter, u32 addr, __le32 *data);
|
||||
int t1_get_board_rev(adapter_t *adapter, const struct board_info *bi,
|
||||
struct adapter_params *p);
|
||||
extern int t1_init_hw_modules(adapter_t *adapter);
|
||||
extern int t1_init_sw_modules(adapter_t *adapter, const struct board_info *bi);
|
||||
extern void t1_free_sw_modules(adapter_t *adapter);
|
||||
extern void t1_fatal_err(adapter_t *adapter);
|
||||
extern void t1_link_changed(adapter_t *adapter, int port_id);
|
||||
extern void t1_link_negotiated(adapter_t *adapter, int port_id, int link_stat,
|
||||
int t1_init_hw_modules(adapter_t *adapter);
|
||||
int t1_init_sw_modules(adapter_t *adapter, const struct board_info *bi);
|
||||
void t1_free_sw_modules(adapter_t *adapter);
|
||||
void t1_fatal_err(adapter_t *adapter);
|
||||
void t1_link_changed(adapter_t *adapter, int port_id);
|
||||
void t1_link_negotiated(adapter_t *adapter, int port_id, int link_stat,
|
||||
int speed, int duplex, int pause);
|
||||
#endif /* _CXGB_COMMON_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user