lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512130847.kSvqRrBq-lkp@intel.com>
Date: Sat, 13 Dec 2025 08:45:33 +0800
From: kernel test robot <lkp@...el.com>
To: Samuel Kayode <samuel.kayode@...oirfairelinux.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Lee Jones <lee@...nel.org>, Frank Li <Frank.Li@....com>
Subject: drivers/input/misc/pf1550-onkey.c:154:12: warning:
 'pf1550_onkey_resume' defined but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   187d0801404f415f22c0b31531982c7ea97fa341
commit: 9acb215cbebdce721af2219e2859ad17342c9084 Input: pf1550 - add onkey support
date:   7 weeks ago
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20251213/202512130847.kSvqRrBq-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512130847.kSvqRrBq-lkp@intel.com/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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512130847.kSvqRrBq-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/input/misc/pf1550-onkey.c:154:12: warning: 'pf1550_onkey_resume' defined but not used [-Wunused-function]
     154 | static int pf1550_onkey_resume(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~
   drivers/input/misc/pf1550-onkey.c:133:12: warning: 'pf1550_onkey_suspend' defined but not used [-Wunused-function]
     133 | static int pf1550_onkey_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~~~~~~~


vim +/pf1550_onkey_resume +154 drivers/input/misc/pf1550-onkey.c

   153	
 > 154	static int pf1550_onkey_resume(struct device *dev)
   155	{
   156		struct platform_device *pdev = to_platform_device(dev);
   157		struct onkey_drv_data *onkey = platform_get_drvdata(pdev);
   158		int i, irq;
   159	
   160		if (!device_may_wakeup(&pdev->dev))
   161			regmap_write(onkey->pf1550->regmap,
   162				     PF1550_PMIC_REG_ONKEY_INT_MASK0,
   163				     ~((u8)(ONKEY_IRQ_PUSHI | ONKEY_IRQ_1SI |
   164				     ONKEY_IRQ_2SI | ONKEY_IRQ_3SI | ONKEY_IRQ_4SI |
   165				     ONKEY_IRQ_8SI)));
   166		else
   167			for (i = 0; i < PF1550_ONKEY_IRQ_NR; i++) {
   168				irq = platform_get_irq(pdev, i);
   169				if (irq > 0)
   170					disable_irq_wake(irq);
   171			}
   172	
   173		return 0;
   174	}
   175	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ