[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202412030824.tmsDhCFT-lkp@intel.com>
Date: Tue, 3 Dec 2024 09:02:14 +0800
From: kernel test robot <lkp@...el.com>
To: Michal Schmidt <mschmidt@...hat.com>,
Rodolfo Giometti <giometti@...eenne.com>
Cc: oe-kbuild-all@...ts.linux.dev,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
"Dr. David Alan Gilbert" <linux@...blig.org>,
Ma Ke <make24@...as.ac.cn>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>,
George Spelvin <linux@...izon.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/6] pps: embed "dev" in the pps_device
Hi Michal,
kernel test robot noticed the following build errors:
[auto build test ERROR on 7af08b57bcb9ebf78675c50069c54125c0a8b795]
url: https://github.com/intel-lab-lkp/linux/commits/Michal-Schmidt/pps-fix-cdev-use-after-free/20241203-025037
base: 7af08b57bcb9ebf78675c50069c54125c0a8b795
patch link: https://lore.kernel.org/r/20241202163451.1442566-6-mschmidt%40redhat.com
patch subject: [PATCH 5/6] pps: embed "dev" in the pps_device
config: arm-randconfig-002-20241203 (https://download.01.org/0day-ci/archive/20241203/202412030824.tmsDhCFT-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030824.tmsDhCFT-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/202412030824.tmsDhCFT-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/cdev.h:8,
from include/linux/pps_kernel.h:12,
from drivers/pps/clients/pps-ktimer.c:15:
drivers/pps/clients/pps-ktimer.c: In function 'pps_ktimer_exit':
>> drivers/pps/clients/pps-ktimer.c:59:21: error: incompatible type for argument 1 of '_dev_info'
59 | dev_info(pps->dev, "ktimer PPS source unregistered\n");
| ~~~^~~~~
| |
| struct device
include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/pps/clients/pps-ktimer.c:59:9: note: in expansion of macro 'dev_info'
59 | dev_info(pps->dev, "ktimer PPS source unregistered\n");
| ^~~~~~~~
include/linux/dev_printk.h:95:37: note: expected 'const struct device *' but argument is of type 'struct device'
95 | void _dev_info(const struct device *dev, const char *fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~^~~
drivers/pps/clients/pps-ktimer.c: In function 'pps_ktimer_init':
drivers/pps/clients/pps-ktimer.c:77:21: error: incompatible type for argument 1 of '_dev_info'
77 | dev_info(pps->dev, "ktimer PPS source registered\n");
| ~~~^~~~~
| |
| struct device
include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/pps/clients/pps-ktimer.c:77:9: note: in expansion of macro 'dev_info'
77 | dev_info(pps->dev, "ktimer PPS source registered\n");
| ^~~~~~~~
include/linux/dev_printk.h:95:37: note: expected 'const struct device *' but argument is of type 'struct device'
95 | void _dev_info(const struct device *dev, const char *fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~^~~
vim +/_dev_info +59 drivers/pps/clients/pps-ktimer.c
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 52
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 53 /*
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 54 * Module staff
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 55 */
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 56
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 57 static void __exit pps_ktimer_exit(void)
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 58 {
5e196d34a77642 Alexander Gordeev 2011-01-12 @59 dev_info(pps->dev, "ktimer PPS source unregistered\n");
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 60
5e196d34a77642 Alexander Gordeev 2011-01-12 61 del_timer_sync(&ktimer);
5e196d34a77642 Alexander Gordeev 2011-01-12 62 pps_unregister_source(pps);
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 63 }
697fb85fcf21b5 Rodolfo Giometti 2010-03-10 64
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists