* Re: [ulf.hansson-mmc:next 58/67] drivers/mmc/core/slot-gpio.c:311:2: error: too many arguments to function 'devm_gpiod_get_index'
[not found] <540468b7.GQof+4S/A1NorfoF%fengguang.wu@intel.com>
@ 2014-09-01 13:05 ` Ulf Hansson
2014-09-01 13:13 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Ulf Hansson @ 2014-09-01 13:05 UTC (permalink / raw)
To: Linus Walleij; +Cc: kbuild-all, kbuild test robot, linux-mmc
On 1 September 2014 14:38, kbuild test robot <fengguang.wu@intel.com> wrote:
> tree: git://git.linaro.org/people/ulf.hansson/mmc next
> head: 2969aa939a41fa8e50d3e8aa46137bfc4a35e05c
> commit: 84e445bbda19b801c60d7414add19c1f3ebc4d26 [58/67] mmc: slot-gpio: switch to use flags when getting GPIO
> config: x86_64-rhel (attached as .config)
>
> All error/warnings:
>
> drivers/mmc/core/slot-gpio.c: In function 'mmc_gpiod_request_cd':
>>> drivers/mmc/core/slot-gpio.c:311:2: error: too many arguments to function 'devm_gpiod_get_index'
> desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN);
> ^
> In file included from drivers/mmc/core/slot-gpio.c:13:0:
> include/linux/gpio/consumer.h:166:32: note: declared here
> struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev,
> ^
>
> vim +/devm_gpiod_get_index +311 drivers/mmc/core/slot-gpio.c
>
> 305
> 306 ctx = host->slot.handler_priv;
> 307
> 308 if (!con_id)
> 309 con_id = ctx->cd_label;
> 310
> > 311 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN);
> 312 if (IS_ERR(desc))
> 313 return PTR_ERR(desc);
> 314
>
> ---
> 0-DAY kernel build testing backend Open Source Technology Center
> http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
Linus,
I will drop the GPIO desc patches again from my mmc tree. We need
another round to sort out the decencies to GPIOLIB.
Kind regards
Uffe
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ulf.hansson-mmc:next 58/67] drivers/mmc/core/slot-gpio.c:311:2: error: too many arguments to function 'devm_gpiod_get_index'
2014-09-01 13:05 ` [ulf.hansson-mmc:next 58/67] drivers/mmc/core/slot-gpio.c:311:2: error: too many arguments to function 'devm_gpiod_get_index' Ulf Hansson
@ 2014-09-01 13:13 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-09-01 13:13 UTC (permalink / raw)
To: Ulf Hansson, Alexandre Courbot; +Cc: kbuild-all, kbuild test robot, linux-mmc
On Mon, Sep 1, 2014 at 3:05 PM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> On 1 September 2014 14:38, kbuild test robot <fengguang.wu@intel.com> wrote:
>> tree: git://git.linaro.org/people/ulf.hansson/mmc next
>> head: 2969aa939a41fa8e50d3e8aa46137bfc4a35e05c
>> commit: 84e445bbda19b801c60d7414add19c1f3ebc4d26 [58/67] mmc: slot-gpio: switch to use flags when getting GPIO
>> config: x86_64-rhel (attached as .config)
>>
>> All error/warnings:
>>
>> drivers/mmc/core/slot-gpio.c: In function 'mmc_gpiod_request_cd':
>>>> drivers/mmc/core/slot-gpio.c:311:2: error: too many arguments to function 'devm_gpiod_get_index'
>> desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN);
>> ^
>> In file included from drivers/mmc/core/slot-gpio.c:13:0:
>> include/linux/gpio/consumer.h:166:32: note: declared here
>> struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev,
>> ^
>>
>> vim +/devm_gpiod_get_index +311 drivers/mmc/core/slot-gpio.c
>>
>> 305
>> 306 ctx = host->slot.handler_priv;
>> 307
>> 308 if (!con_id)
>> 309 con_id = ctx->cd_label;
>> 310
>> > 311 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN);
>> 312 if (IS_ERR(desc))
>> 313 return PTR_ERR(desc);
>> 314
>>
>> ---
>> 0-DAY kernel build testing backend Open Source Technology Center
>> http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
>
> Linus,
>
> I will drop the GPIO desc patches again from my mmc tree. We need
> another round to sort out the decencies to GPIOLIB.
Yeah this is due to the way the vararg hacks for the new flags-enabled
descriptor API is done only when GPIOLIB is compiled in.
Oh well, I'll funnel another fix.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-01 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <540468b7.GQof+4S/A1NorfoF%fengguang.wu@intel.com>
2014-09-01 13:05 ` [ulf.hansson-mmc:next 58/67] drivers/mmc/core/slot-gpio.c:311:2: error: too many arguments to function 'devm_gpiod_get_index' Ulf Hansson
2014-09-01 13:13 ` Linus Walleij
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.