Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1572313
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] [media] staging: bcm2835: mark all symbols as 'static' |
| Date | 2017-02-02 13:10 +0100 |
| Message-ID | <t6on8-3Ln-15@gated-at.bofh.it> (permalink) |
| References | <t6nU6-3lz-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Feb 2, 2017 at 12:34 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> I got a link error in allyesconfig:
>
> drivers/staging/media/platform/bcm2835/bcm2835-camera.o: In function `vidioc_enum_framesizes':
> bcm2835-camera.c:(.text.vidioc_enum_framesizes+0x0): multiple definition of `vidioc_enum_framesizes'
> drivers/media/platform/vivid/vivid-vid-cap.o:vivid-vid-cap.c:(.text.vidioc_enum_framesizes+0x0): first defined here
>
> While both drivers are equally at fault for this problem, the bcm2835 one was
> just added and is easier to fix, as it is only one file, and none of its symbols
> need to be globally visible. This marks the three global symbols as static.
>
> Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Please disregard this patch version, it's broken.
> @@ -50,7 +50,7 @@ MODULE_AUTHOR("Vincent Sanders");
> MODULE_LICENSE("GPL");
> MODULE_VERSION(BM2835_MMAL_VERSION);
>
> -int bcm2835_v4l2_debug;
> +static int bcm2835_v4l2_debug;
> module_param_named(debug, bcm2835_v4l2_debug, int, 0644);
> MODULE_PARM_DESC(bcm2835_v4l2_debug, "Debug level 0-2");
>
This symbol is in fact used in more than one file.
Arnd
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] [media] staging: bcm2835: mark all symbols as 'static' Arnd Bergmann <arnd@arndb.de> - 2017-02-02 12:40 +0100
Re: [PATCH] [media] staging: bcm2835: mark all symbols as 'static' Arnd Bergmann <arnd@arndb.de> - 2017-02-02 13:10 +0100
Re: [PATCH] [media] staging: bcm2835: mark all symbols as 'static' Arnd Bergmann <arnd@arndb.de> - 2017-02-02 13:20 +0100
Re: [PATCH] [media] staging: bcm2835: mark all symbols as 'static' Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-02-02 13:30 +0100
Re: [PATCH] [media] staging: bcm2835: mark all symbols as 'static' Arnd Bergmann <arnd@arndb.de> - 2017-02-02 13:40 +0100
csiph-web