Skip to contentSkip to conversation

iio: at91_adc.c build error

DISCUSSION Axel Lin 2 participants 3 messages Oct 28, 2012 – Oct 29, 2012 IIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

hi Lars-Peter,

Seems there is no devm_kcalloc API available at this moment (in linux-next tree).

I got below build error:
drivers/iio/adc/at91_adc.c: In function 'at91_adc_channel_init':
drivers/iio/adc/at91_adc.c:126: error: implicit declaration of function 'devm_kcalloc' drivers/iio/adc/at91_adc.c:127: warning: assignment makes pointer from integer without a cast drivers/iio/adc/at91_adc.c: In function 'at91_adc_trigger_init':
drivers/iio/adc/at91_adc.c:272: warning: assignment makes pointer from integer without a cast drivers/iio/adc/at91_adc.c: In function 'at91_adc_probe_dt':
drivers/iio/adc/at91_adc.c:455: warning: assignment makes pointer from integer without a cast make[3]: *** [drivers/iio/adc/at91_adc.o] Error 1
make[2]: *** [drivers/iio/adc] Error 2
make[1]: *** [drivers/iio] Error 2
make: *** [drivers] Error 2

Regards,
Axel

#1 lore raw
Quoted 4 lines · Axel Lin

hi Lars-Peter,

Seems there is no devm_kcalloc API available at this moment (in linux-next tree).

Quoted 12 lines

I got below build error:
drivers/iio/adc/at91_adc.c: In function 'at91_adc_channel_init':
drivers/iio/adc/at91_adc.c:126: error: implicit declaration of function 'devm_kcalloc' drivers/iio/adc/at91_adc.c:127: warning: assignment makes pointer from integer without a cast drivers/iio/adc/at91_adc.c: In function 'at91_adc_trigger_init':
drivers/iio/adc/at91_adc.c:272: warning: assignment makes pointer from integer without a cast drivers/iio/adc/at91_adc.c: In function 'at91_adc_probe_dt':
drivers/iio/adc/at91_adc.c:455: warning: assignment makes pointer from integer without a cast make[3]: *** [drivers/iio/adc/at91_adc.o] Error 1
make[2]: *** [drivers/iio/adc] Error 2
make[1]: *** [drivers/iio] Error 2
make: *** [drivers] Error 2

Ok, now I feel stupid...

Do you want to sent a revert or should I do it?

- Lars

author
#2 lore raw

2012/10/29 Lars-Peter Clausen <[email protected]>

Quoted 18 lines · Axel Lin
Quoted 3 lines

hi Lars-Peter,

Seems there is no devm_kcalloc API available at this moment (in

linux-next tree).

Quoted 4 lines

I got below build error:
drivers/iio/adc/at91_adc.c: In function 'at91_adc_channel_init':
drivers/iio/adc/at91_adc.c:126: error: implicit declaration of function

'devm_kcalloc'

Quoted 1 line

drivers/iio/adc/at91_adc.c:127: warning: assignment makes pointer from

integer without a cast

Quoted 2 lines

drivers/iio/adc/at91_adc.c: In function 'at91_adc_trigger_init':
drivers/iio/adc/at91_adc.c:272: warning: assignment makes pointer from

integer without a cast

Quoted 2 lines

drivers/iio/adc/at91_adc.c: In function 'at91_adc_probe_dt':
drivers/iio/adc/at91_adc.c:455: warning: assignment makes pointer from

integer without a cast

Quoted 9 lines
Quoted 4 lines

make[3]: *** [drivers/iio/adc/at91_adc.o] Error 1 make[2]: *** [drivers/iio/adc] Error 2 make[1]: *** [drivers/iio] Error 2
make: *** [drivers] Error 2

Ok, now I feel stupid...

Do you want to sent a revert or should I do it?

Ok. I'll send a revert patch right away.

Axel