Re: "error: redefinition of 'altera_init'" during build on Kernel 3.0.36+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/27/2014 08:47 AM, Isaac Nickaein wrote:
> Hello,
> 
> I get the following error when I try to build the V4L2 on Kernel
> 3.0.36+ for ARM architecture:
> 
> /root/v4l2/media_build/v4l/altera.c:2417:5: error: redefinition of 'altera_init'
>  int altera_init(struct altera_config *config, const struct firmware *fw)
>      ^
> In file included from /root/v4l2/media_build/v4l/altera.c:32:0:
> /root/v4l2/media_build/v4l/../linux/include/misc/altera.h:41:19: note:
> previous definition of 'altera_init' was here
>  static inline int altera_init(struct altera_config *config,
>                    ^
> 
> 
> I checked the altera.h code and apparently, the IS_ENABLED macro is
> not defined and causes this problem. I have prepared kernel source at
> /lib/modules/3.0.36+/build/ and it builds successfully.
> 
> Can anyone help me on this issue?

What kernel tree are you using? There is no IS_ENABLED in 3.0, so apparently
you have a patched kernel. Do you actually need that altera driver? If not,
then why not disable it in the kernel config?

Regards,

	Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux