Skip to content

Commit

Permalink
can: fix sparse warning in af_can.c
Browse files Browse the repository at this point in the history
Put can_rx_alldev_list into the af_can header to fix the following
sparse warning: net/can/af_can.c:80:22: warning: symbol
'can_rx_alldev_list' was not declared. Should it be static?

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Oliver Hartkopp authored and Marc Kleine-Budde committed Jul 2, 2012
1 parent 77fc95a commit ec00f04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions net/can/af_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ struct s_pstats {
unsigned long rcv_entries_max;
};

/* receive filters subscribed for 'all' CAN devices */
extern struct dev_rcv_lists can_rx_alldev_list;

/* function prototypes for the CAN networklayer procfs (proc.c) */
extern void can_init_proc(void);
extern void can_remove_proc(void);
Expand Down
3 changes: 0 additions & 3 deletions net/can/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ static const char rx_list_name[][8] = {
[RX_EFF] = "rx_eff",
};

/* receive filters subscribed for 'all' CAN devices */
extern struct dev_rcv_lists can_rx_alldev_list;

/*
* af_can statistics stuff
*/
Expand Down

0 comments on commit ec00f04

Please sign in to comment.