drivers/mfd/ezx-pcap.c:197:18: error: implicit declaration of function 'gpio_get_value'; did you mean 'gpiod_get_value'?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git config-gpio-legacy-7.1 head: bbb302c86fdfa7705d8511a74c4b6db205cd2683 commit: d15f0e388aff512456d50b5c3009cc43fe10931e [17/22] gpiolib: turn off legacy interface by default config: x86_64-randconfig-161 (https://download.01.org/0day-ci/archive/20260430/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 smatch: v0.5.0-9065-ge9cc34fd reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work':
>> drivers/mfd/ezx-pcap.c:197:18: error: implicit declaration of function 'gpio_get_value'; did you mean 'gpiod_get_value'? [-Wimplicit-function-declaration]
197 | } while (gpio_get_value(pdata->gpio));
| ^~~~~~~~~~~~~~
| gpiod_get_valuevim +197 drivers/mfd/ezx-pcap.c
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 170
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 171 static void pcap_isr_work(struct work_struct *work)
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 172 {
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 173 struct pcap_chip *pcap = container_of(work, struct pcap_chip, isr_work);
334a41ce9b753e Jingoo Han 2013-07-30 174 struct pcap_platform_data *pdata = dev_get_platdata(&pcap->spi->dev);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 175 u32 msr, isr, int_sel, service;
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 176 int irq;
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 177
b1148fd46c248c Daniel Ribeiro 2009-06-23 178 do {
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 179 ezx_pcap_read(pcap, PCAP_REG_MSR, &msr);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 180 ezx_pcap_read(pcap, PCAP_REG_ISR, &isr);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 181
25985edcedea63 Lucas De Marchi 2011-03-30 182 /* We can't service/ack irqs that are assigned to port 2 */
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 183 if (!(pdata->config & PCAP_SECOND_PORT)) {
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 184 ezx_pcap_read(pcap, PCAP_REG_INT_SEL, &int_sel);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 185 isr &= ~int_sel;
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 186 }
b1148fd46c248c Daniel Ribeiro 2009-06-23 187
b1148fd46c248c Daniel Ribeiro 2009-06-23 188 ezx_pcap_write(pcap, PCAP_REG_MSR, isr | msr);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 189 ezx_pcap_write(pcap, PCAP_REG_ISR, isr);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 190
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 191 service = isr & ~msr;
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 192 for (irq = pcap->irq_base; service; service >>= 1, irq++) {
73a6839fdb7f3f Thomas Gleixner 2011-03-25 193 if (service & 1)
83d9b7e3955d32 Sebastian Andrzej Siewior 2022-02-11 194 generic_handle_irq_safe(irq);
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 195 }
b1148fd46c248c Daniel Ribeiro 2009-06-23 196 ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr);
59ee93a528b94e Arnd Bergmann 2012-08-05 @197 } while (gpio_get_value(pdata->gpio));
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 198 }
13a09f93d2bf3a Daniel Ribeiro 2009-05-28 199 :::::: The code at line 197 was first introduced by commit
:::::: 59ee93a528b94ef4e81a08db252b0326feff171f ARM: pxa: remove irq_to_gpio from ezx-pcap driver
:::::: TO: Arnd Bergmann <[email protected]>
:::::: CC: Arnd Bergmann <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki