2015-06-20 16:44:53

by Jim Davis

[permalink] [raw]
Subject: randconfig build error with next-20150620, in drivers/media/v4l2-core/videobuf2-core.c

Building with the attached random configuration file,

drivers/media/v4l2-core/videobuf2-core.c: In function ‘vb2_warn_zero_bytesused’:
drivers/media/v4l2-core/videobuf2-core.c:1253:2: error: implicit declaration of
function ‘__WARN’ [-Werror=implicit-function-declaration]
__WARN();
^


Attachments:
randconfig-1434816445.txt (83.00 kB)

2015-07-01 18:07:19

by Randy Dunlap

[permalink] [raw]
Subject: Re: randconfig build error with next-20150620, in drivers/media/v4l2-core/videobuf2-core.c

On 06/20/15 09:44, Jim Davis wrote:
> Building with the attached random configuration file,
>
> drivers/media/v4l2-core/videobuf2-core.c: In function ?vb2_warn_zero_bytesused?:
> drivers/media/v4l2-core/videobuf2-core.c:1253:2: error: implicit declaration of
> function ?__WARN? [-Werror=implicit-function-declaration]
> __WARN();
> ^
>

When CONFIG_BUG is not enabled, there is no definition of __WARN().

Should be add an empty stub for __WARN() or just change the only
user (caller) of it to do something different?

--
~Randy