[gpio:gpio-charger-mentioned 54/55] drivers/gpio/gpiolib-cdev.c:1127:5: warning: no previous prototype for 'gpiolib_cdev_register'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-charger-mentioned
head:   f9e5824140b913437cc820c3f8bb33353ee4961d
commit: f6d984418ffde19322fd149105200224ac2bc089 [54/55] gpiolib: split character device into gpiolib-cdev
config: parisc-randconfig-r005-20200611 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f6d984418ffde19322fd149105200224ac2bc089
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/gpio/gpiolib-cdev.c:6:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 |   pte_t old_pte;              |         ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
|                                  ^~~~~~~~~~
include/asm-generic/pgtable.h:202:2: note: in expansion of macro 'pte_clear'
202 |  pte_clear(mm, address, ptep);
|  ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 |   pte_t old_pte;              |         ^~~~~~~
include/asm-generic/pgtable.h:641:2: note: in expansion of macro 'set_pte_at'
641 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
|  ^~~~~~~~~~
drivers/gpio/gpiolib-cdev.c: At top level:
>> drivers/gpio/gpiolib-cdev.c:1127:5: warning: no previous prototype for 'gpiolib_cdev_register' [-Wmissing-prototypes]
1127 | int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt)
|     ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpio/gpiolib-cdev.c:1145:6: warning: no previous prototype for 'gpiolib_cdev_unregister' [-Wmissing-prototypes]
1145 | void gpiolib_cdev_unregister(struct gpio_device *gdev)
|      ^~~~~~~~~~~~~~~~~~~~~~~

vim +/gpiolib_cdev_register +1127 drivers/gpio/gpiolib-cdev.c

  1126	
> 1127	int gpiolib_cdev_register(struct gpio_device *gdev, dev_t devt)
  1128	{
  1129		int ret;
  1130	
  1131		cdev_init(&gdev->chrdev, &gpio_fileops);
  1132		gdev->chrdev.owner = THIS_MODULE;
  1133		gdev->dev.devt = MKDEV(MAJOR(devt), gdev->id);
  1134	
  1135		ret = cdev_device_add(&gdev->chrdev, &gdev->dev);
  1136		if (ret)
  1137			return ret;
  1138	
  1139		chip_dbg(gdev->chip, "added GPIO chardev (%d:%d)\n",
  1140			 MAJOR(devt), gdev->id);
  1141	
  1142		return 0;
  1143	}
  1144	
> 1145	void gpiolib_cdev_unregister(struct gpio_device *gdev)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux