From: kernel test robot <lkp@intel.com>
To: Michal Schmidt <mschmidt@redhat.com>,
Rodolfo Giometti <giometti@enneenne.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Uwe =?unknown-8bit?Q?Kleine-K=C3=B6nig?=
<u.kleine-koenig@pengutronix.de>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Christophe JAILLET" <christophe.jaillet@wanadoo.fr>,
"Dr. David Alan Gilbert" <linux@treblig.org>,
"Ma Ke" <make24@iscas.ac.cn>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Linux Memory Management List" <linux-mm@kvack.org>,
"George Spelvin" <linux@horizon.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/6] pps: embed "dev" in the pps_device
Date: Tue, 3 Dec 2024 10:04:07 +0800 [thread overview]
Message-ID: <202412030942.aHisJx3i-lkp@intel.com> (raw)
In-Reply-To: <20241202163451.1442566-6-mschmidt@redhat.com>
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: i386-buildonly-randconfig-005-20241203 (https://download.01.org/0day-ci/archive/20241203/202412030942.aHisJx3i-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030942.aHisJx3i-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412030942.aHisJx3i-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pps/clients/pps-ktimer.c:59:11: error: passing 'struct device' to parameter of incompatible type 'const struct device *'; take the address with &
59 | dev_info(pps->dev, "ktimer PPS source unregistered\n");
| ^~~~~~~~
| &
include/linux/dev_printk.h:160:46: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
include/linux/dev_printk.h:110:11: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:56:37: note: passing argument to parameter 'dev' here
56 | void _dev_info(const struct device *dev, const char *fmt, ...);
| ^
drivers/pps/clients/pps-ktimer.c:77:11: error: passing 'struct device' to parameter of incompatible type 'const struct device *'; take the address with &
77 | dev_info(pps->dev, "ktimer PPS source registered\n");
| ^~~~~~~~
| &
include/linux/dev_printk.h:160:46: note: expanded from macro 'dev_info'
160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
include/linux/dev_printk.h:110:11: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:56:37: note: passing argument to parameter 'dev' here
56 | void _dev_info(const struct device *dev, const char *fmt, ...);
| ^
2 errors generated.
vim +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
next prev parent reply other threads:[~2024-12-03 2:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 16:34 [PATCH 0/6] pps: fix a UAF and clean up code Michal Schmidt
2024-12-02 16:34 ` [PATCH 1/6] pps: fix cdev use-after-free Michal Schmidt
2024-12-02 16:34 ` [PATCH 2/6] pps: simplify pps_idr_lock locking Michal Schmidt
2024-12-02 16:34 ` [PATCH 3/6] pps: use scoped_guard for pps_idr_lock Michal Schmidt
2024-12-03 9:06 ` Uwe Kleine-König
2024-12-02 16:34 ` [PATCH 4/6] pps: print error in both cdev and dev error paths in pps_register_cdev() Michal Schmidt
2024-12-02 16:34 ` [PATCH 5/6] pps: embed "dev" in the pps_device Michal Schmidt
2024-12-03 1:02 ` kernel test robot
2024-12-03 2:04 ` kernel test robot [this message]
2024-12-02 16:34 ` [PATCH 6/6] pps: use cdev_device_add() Michal Schmidt
2024-12-02 16:56 ` [PATCH 0/6] pps: fix a UAF and clean up code Calvin Owens
2024-12-02 17:58 ` Michal Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412030942.aHisJx3i-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=christophe.jaillet@wanadoo.fr \
--cc=giometti@enneenne.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux@horizon.com \
--cc=linux@treblig.org \
--cc=llvm@lists.linux.dev \
--cc=make24@iscas.ac.cn \
--cc=mschmidt@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.