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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507270042.KdK0KKht-lkp@intel.com>
Date: Sun, 27 Jul 2025 00:28:31 +0800
From: kernel test robot <lkp@...el.com>
To: Dmitry Baryshkov <lumag@...nel.org>, Amit Kucheria <amitk@...nel.org>,
	Thara Gopinath <thara.gopinath@...il.com>,
	"Rafael J. Wysocki" <rafael@...nel.org>,
	Daniel Lezcano <daniel.lezcano@...aro.org>,
	Zhang Rui <rui.zhang@...el.com>, Lukasz Luba <lukasz.luba@....com>,
	Jackie Liu <liuyun01@...inos.cn>
Cc: oe-kbuild-all@...ts.linux.dev, linux-arm-msm@...r.kernel.org,
	linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] thermal: qcom: make LMH select QCOM_SCM

Hi Dmitry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on a933d3dc1968fcfb0ab72879ec304b1971ed1b9a]

url:    https://github.com/intel-lab-lkp/linux/commits/Dmitry-Baryshkov/thermal-qcom-make-LMH-select-QCOM_SCM/20250725-215843
base:   a933d3dc1968fcfb0ab72879ec304b1971ed1b9a
patch link:    https://lore.kernel.org/r/20250725-lmh-scm-v1-1-84246981f435%40oss.qualcomm.com
patch subject: [PATCH] thermal: qcom: make LMH select QCOM_SCM
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20250727/202507270042.KdK0KKht-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250727/202507270042.KdK0KKht-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/202507270042.KdK0KKht-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/thermal/qcom/lmh.c: In function 'lmh_handle_irq':
   drivers/thermal/qcom/lmh.c:46:17: error: implicit declaration of function 'generic_handle_irq' [-Wimplicit-function-declaration]
      46 |                 generic_handle_irq(irq);
         |                 ^~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c: In function 'lmh_enable_interrupt':
   drivers/thermal/qcom/lmh.c:53:40: error: implicit declaration of function 'irq_data_get_irq_chip_data'; did you mean 'irq_domain_get_irq_data'? [-Wimplicit-function-declaration]
      53 |         struct lmh_hw_data *lmh_data = irq_data_get_irq_chip_data(d);
         |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                        irq_domain_get_irq_data
   drivers/thermal/qcom/lmh.c:53:40: error: initialization of 'struct lmh_hw_data *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   drivers/thermal/qcom/lmh.c:56:9: error: implicit declaration of function 'writel' [-Wimplicit-function-declaration]
      56 |         writel(0xff, lmh_data->base + LMH_REG_DCVS_INTR_CLR);
         |         ^~~~~~
   drivers/thermal/qcom/lmh.c: In function 'lmh_disable_interrupt':
   drivers/thermal/qcom/lmh.c:62:40: error: initialization of 'struct lmh_hw_data *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      62 |         struct lmh_hw_data *lmh_data = irq_data_get_irq_chip_data(d);
         |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c: At top level:
   drivers/thermal/qcom/lmh.c:67:15: error: variable 'lmh_irq_chip' has initializer but incomplete type
      67 | static struct irq_chip lmh_irq_chip = {
         |               ^~~~~~~~
   drivers/thermal/qcom/lmh.c:68:10: error: 'struct irq_chip' has no member named 'name'
      68 |         .name           = "lmh",
         |          ^~~~
>> drivers/thermal/qcom/lmh.c:68:27: warning: excess elements in struct initializer
      68 |         .name           = "lmh",
         |                           ^~~~~
   drivers/thermal/qcom/lmh.c:68:27: note: (near initialization for 'lmh_irq_chip')
   drivers/thermal/qcom/lmh.c:69:10: error: 'struct irq_chip' has no member named 'irq_enable'
      69 |         .irq_enable     = lmh_enable_interrupt,
         |          ^~~~~~~~~~
   drivers/thermal/qcom/lmh.c:69:27: warning: excess elements in struct initializer
      69 |         .irq_enable     = lmh_enable_interrupt,
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:69:27: note: (near initialization for 'lmh_irq_chip')
   drivers/thermal/qcom/lmh.c:70:10: error: 'struct irq_chip' has no member named 'irq_disable'
      70 |         .irq_disable    = lmh_disable_interrupt
         |          ^~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:70:27: warning: excess elements in struct initializer
      70 |         .irq_disable    = lmh_disable_interrupt
         |                           ^~~~~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:70:27: note: (near initialization for 'lmh_irq_chip')
   drivers/thermal/qcom/lmh.c: In function 'lmh_irq_map':
   drivers/thermal/qcom/lmh.c:83:9: error: implicit declaration of function 'irq_set_lockdep_class' [-Wimplicit-function-declaration]
      83 |         irq_set_lockdep_class(irq, &lmh_lock_key, &lmh_request_key);
         |         ^~~~~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:84:9: error: implicit declaration of function 'irq_set_chip_and_handler' [-Wimplicit-function-declaration]
      84 |         irq_set_chip_and_handler(irq, &lmh_irq_chip, handle_simple_irq);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:84:54: error: 'handle_simple_irq' undeclared (first use in this function)
      84 |         irq_set_chip_and_handler(irq, &lmh_irq_chip, handle_simple_irq);
         |                                                      ^~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:84:54: note: each undeclared identifier is reported only once for each function it appears in
   drivers/thermal/qcom/lmh.c:85:9: error: implicit declaration of function 'irq_set_chip_data'; did you mean 'irq_set_irqchip_state'? [-Wimplicit-function-declaration]
      85 |         irq_set_chip_data(irq, lmh_data);
         |         ^~~~~~~~~~~~~~~~~
         |         irq_set_irqchip_state
   drivers/thermal/qcom/lmh.c: In function 'lmh_probe':
   drivers/thermal/qcom/lmh.c:219:9: error: implicit declaration of function 'irq_set_status_flags' [-Wimplicit-function-declaration]
     219 |         irq_set_status_flags(lmh_data->irq, IRQ_NOAUTOEN);
         |         ^~~~~~~~~~~~~~~~~~~~
   drivers/thermal/qcom/lmh.c:219:45: error: 'IRQ_NOAUTOEN' undeclared (first use in this function); did you mean 'IRQF_NO_AUTOEN'?
     219 |         irq_set_status_flags(lmh_data->irq, IRQ_NOAUTOEN);
         |                                             ^~~~~~~~~~~~
         |                                             IRQF_NO_AUTOEN
   drivers/thermal/qcom/lmh.c: At top level:
   drivers/thermal/qcom/lmh.c:67:24: error: storage size of 'lmh_irq_chip' isn't known
      67 | static struct irq_chip lmh_irq_chip = {
         |                        ^~~~~~~~~~~~


vim +68 drivers/thermal/qcom/lmh.c

53bca371cdf7ad Thara Gopinath 2021-08-09  66  
53bca371cdf7ad Thara Gopinath 2021-08-09 @67  static struct irq_chip lmh_irq_chip = {
53bca371cdf7ad Thara Gopinath 2021-08-09 @68  	.name           = "lmh",
53bca371cdf7ad Thara Gopinath 2021-08-09  69  	.irq_enable	= lmh_enable_interrupt,
53bca371cdf7ad Thara Gopinath 2021-08-09  70  	.irq_disable	= lmh_disable_interrupt
53bca371cdf7ad Thara Gopinath 2021-08-09  71  };
53bca371cdf7ad Thara Gopinath 2021-08-09  72  

-- 
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