Skip to content

Commit

Permalink
drivers/isdn/hisax: fix sparse warning: Should it be static?
Browse files Browse the repository at this point in the history
Impact: Move declarations to a header file.

Fix this sparse warning:
  drivers/isdn/hisax/callc.c:24:12: warning: symbol 'lli_revision' was not declared. Should it be static?
  drivers/isdn/hisax/config.c:84:12: warning: symbol 'CardType' was not declared. Should it be static?
  drivers/isdn/hisax/config.c:362:5: warning: symbol 'nrcards' was not declared. Should it be static?
  drivers/isdn/hisax/isdnl1.c:21:12: warning: symbol 'l1_revision' was not declared. Should it be static?
  drivers/isdn/hisax/isdnl2.c:22:12: warning: symbol 'l2_revision' was not declared. Should it be static?
  drivers/isdn/hisax/isdnl3.c:22:12: warning: symbol 'l3_revision' was not declared. Should it be static?
  drivers/isdn/hisax/tei.c:23:12: warning: symbol 'tei_revision' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 27, 2009
1 parent cf80063 commit e86a6a1
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
1 change: 0 additions & 1 deletion drivers/isdn/hisax/callc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
const char *lli_revision = "$Revision: 2.59.2.4 $";

extern struct IsdnCard cards[];
extern int nrcards;

static int init_b_st(struct Channel *chanp, int incoming);
static void release_b_st(struct Channel *chanp);
Expand Down
6 changes: 0 additions & 6 deletions drivers/isdn/hisax/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,6 @@ module_param_array(io1, int, NULL, 0);

int nrcards;

extern const char *l1_revision;
extern const char *l2_revision;
extern const char *l3_revision;
extern const char *lli_revision;
extern const char *tei_revision;

char *HiSax_getrev(const char *revision)
{
char *rev;
Expand Down
2 changes: 0 additions & 2 deletions drivers/isdn/hisax/hfcscard.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "hfc_2bds0.h"
#include "isdnl1.h"

extern const char *CardType[];

static const char *hfcs_revision = "$Revision: 1.10.2.4 $";

static irqreturn_t
Expand Down
9 changes: 9 additions & 0 deletions drivers/isdn/hisax/hisax.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@

#ifdef __KERNEL__

extern const char *CardType[];
extern int nrcards;

extern const char *l1_revision;
extern const char *l2_revision;
extern const char *l3_revision;
extern const char *lli_revision;
extern const char *tei_revision;

/* include l3dss1 & ni1 specific process structures, but no other defines */
#ifdef CONFIG_HISAX_EURO
#define l3dss1_process
Expand Down
4 changes: 2 additions & 2 deletions drivers/isdn/hisax/isdnl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*
*/

const char *l1_revision = "$Revision: 2.46.2.5 $";

#include <linux/init.h>
#include "hisax.h"
#include "isdnl1.h"

const char *l1_revision = "$Revision: 2.46.2.5 $";

#define TIMER3_VALUE 7000

static struct Fsm l1fsm_b;
Expand Down
2 changes: 0 additions & 2 deletions drivers/isdn/hisax/sedlbauer.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
#include <linux/pci.h>
#include <linux/isapnp.h>

extern const char *CardType[];

static const char *Sedlbauer_revision = "$Revision: 1.34.2.6 $";

static const char *Sedlbauer_Types[] =
Expand Down
2 changes: 0 additions & 2 deletions drivers/isdn/hisax/teles0.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include "isac.h"
#include "hscx.h"

extern const char *CardType[];

static const char *teles0_revision = "$Revision: 2.15.2.4 $";

#define TELES_IOMEM_SIZE 0x400
Expand Down
1 change: 0 additions & 1 deletion drivers/isdn/hisax/teles3.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "hscx.h"
#include "isdnl1.h"

extern const char *CardType[];
static const char *teles3_revision = "$Revision: 2.19.2.4 $";

#define byteout(addr,val) outb(val,addr)
Expand Down

0 comments on commit e86a6a1

Please sign in to comment.