2014-12-19 16:13:08

by Jim Davis

[permalink] [raw]
Subject: randconfig build error with next-20141219, in drivers/input/misc/regulator-haptic.c

Building with the attached random configuration file,

drivers/input/misc/regulator-haptic.c: In function ‘regulator_haptic_probe’:
drivers/input/misc/regulator-haptic.c:184:2: error: implicit
declaration of function ‘devm_regulator_get_exclusive’
[-Werror=implicit-function-declaration]
haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic");
^
drivers/input/misc/regulator-haptic.c:184:20: warning: assignment makes pointer
from integer without a cast [enabled by default]
haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic");
^
cc1: some warnings being treated as errors
make[3]: *** [drivers/input/misc/regulator-haptic.o] Error 1


Attachments:
randconfig-1419003128.txt (53.68 kB)

2014-12-22 03:02:22

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: randconfig build error with next-20141219, in drivers/input/misc/regulator-haptic.c

On Fri, Dec 19, 2014 at 09:13:02AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> drivers/input/misc/regulator-haptic.c: In function ‘regulator_haptic_probe’:
> drivers/input/misc/regulator-haptic.c:184:2: error: implicit
> declaration of function ‘devm_regulator_get_exclusive’
> [-Werror=implicit-function-declaration]
> haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic");
> ^
> drivers/input/misc/regulator-haptic.c:184:20: warning: assignment makes pointer
> from integer without a cast [enabled by default]
> haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic");
> ^
> cc1: some warnings being treated as errors
> make[3]: *** [drivers/input/misc/regulator-haptic.o] Error 1

Thanks, I'll add the missing dependency on CONFIG_REGULATOR.

--
Dmitry