diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-26 05:07:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:39:36 -0500 |
commit | 71050814c21a461fb7950373f2ae2fc625412f20 (patch) | |
tree | 2c8cf9495d9a7fe362e47692a711f1efd169b417 /drivers/media/dvb | |
parent | 4efc9abfde232a74ed1a4c2c1f797bdacf7bda53 (diff) |
V4L/DVB (9977): Kbuild: fix compilation when dib7000p is not defined
dib7000p.h defines a few extern symbols when CONFIG_DVB_DIB7000P is not set. since the
header is used on more than one driver, this causes symbol duplication, as pointed by
Ingo Molnar <mingo@elte.hu>:
drivers/media/dvb/built-in.o: In function `dib7000p_set_gpio':
(.text+0x3f242): multiple definition of `dib7000p_set_gpio'
drivers/media/video/built-in.o:(.text+0xb8c1e): first defined here
drivers/media/dvb/built-in.o: In function `dib7000p_i2c_enumeration':
(.text+0x3f282): multiple definition of `dib7000p_i2c_enumeration'
drivers/media/video/built-in.o:(.text+0xb8c3e): first defined here
drivers/media/dvb/built-in.o: In function `dib7000p_set_wbd_ref':
(.text+0x3f1c1): multiple definition of `dib7000p_set_wbd_ref'
drivers/media/video/built-in.o:(.text+0xb8bfe): first defined here
LD drivers/net/built-in.o
make[2]: *** [drivers/media/built-in.o] Error 1
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/dib7000p.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/dib7000p.h b/drivers/media/dvb/frontends/dib7000p.h index 3e8126857127..aab8112e2db2 100644 --- a/drivers/media/dvb/frontends/dib7000p.h +++ b/drivers/media/dvb/frontends/dib7000p.h | |||
@@ -66,7 +66,8 @@ struct i2c_adapter *dib7000p_get_i2c_master(struct dvb_frontend *fe, | |||
66 | return NULL; | 66 | return NULL; |
67 | } | 67 | } |
68 | 68 | ||
69 | extern int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, | 69 | static inline |
70 | int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, | ||
70 | int no_of_demods, u8 default_addr, | 71 | int no_of_demods, u8 default_addr, |
71 | struct dib7000p_config cfg[]) | 72 | struct dib7000p_config cfg[]) |
72 | { | 73 | { |
@@ -74,13 +75,15 @@ extern int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, | |||
74 | return -ENODEV; | 75 | return -ENODEV; |
75 | } | 76 | } |
76 | 77 | ||
77 | extern int dib7000p_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val) | 78 | static inline |
79 | int dib7000p_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val) | ||
78 | { | 80 | { |
79 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 81 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
80 | return -ENODEV; | 82 | return -ENODEV; |
81 | } | 83 | } |
82 | 84 | ||
83 | extern int dib7000p_set_wbd_ref(struct dvb_frontend *fe, u16 value) | 85 | static inline |
86 | int dib7000p_set_wbd_ref(struct dvb_frontend *fe, u16 value) | ||
84 | { | 87 | { |
85 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 88 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
86 | return -ENODEV; | 89 | return -ENODEV; |