linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Ricardo B. Marliere" <ricardo@marliere.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Tejun Heo <tj@kernel.org>
Subject: [linux-next:master 3841/4021] kernel/workqueue.c:6798:32: error: passing 'const struct bus_type *' to parameter of type 'struct bus_type *' discards qualifiers
Date: Mon, 5 Feb 2024 15:15:45 +0800	[thread overview]
Message-ID: <202402051505.kM9Rr3CJ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   23e11d0318521e8693459b0e4d23aec614b3b68b
commit: d412ace11144aa2bf692c7cf9778351efc15c827 [3841/4021] workqueue: make wq_subsys const
config: i386-buildonly-randconfig-003-20240205 (https://download.01.org/0day-ci/archive/20240205/202402051505.kM9Rr3CJ-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240205/202402051505.kM9Rr3CJ-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/202402051505.kM9Rr3CJ-lkp@intel.com/

Note: the linux-next/master HEAD 23e11d0318521e8693459b0e4d23aec614b3b68b builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> kernel/workqueue.c:6798:32: error: passing 'const struct bus_type *' to parameter of type 'struct bus_type *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
    6798 |         err = subsys_virtual_register(&wq_subsys, NULL);
         |                                       ^~~~~~~~~~
   include/linux/device.h:77:46: note: passing argument to parameter 'subsys' here
      77 | int subsys_virtual_register(struct bus_type *subsys,
         |                                              ^
   1 error generated.


vim +6798 kernel/workqueue.c

b05a79280b346e Frederic Weisbecker 2015-04-27  6792  
6ba94429c8e7b8 Frederic Weisbecker 2015-04-02  6793  static int __init wq_sysfs_init(void)
2d3854a37e8b76 Rusty Russell       2008-11-05  6794  {
686f669780276d Greg Kroah-Hartman  2023-03-13  6795  	struct device *dev_root;
b05a79280b346e Frederic Weisbecker 2015-04-27  6796  	int err;
b05a79280b346e Frederic Weisbecker 2015-04-27  6797  
b05a79280b346e Frederic Weisbecker 2015-04-27 @6798  	err = subsys_virtual_register(&wq_subsys, NULL);
b05a79280b346e Frederic Weisbecker 2015-04-27  6799  	if (err)
b05a79280b346e Frederic Weisbecker 2015-04-27  6800  		return err;
b05a79280b346e Frederic Weisbecker 2015-04-27  6801  
686f669780276d Greg Kroah-Hartman  2023-03-13  6802  	dev_root = bus_get_dev_root(&wq_subsys);
686f669780276d Greg Kroah-Hartman  2023-03-13  6803  	if (dev_root) {
fe28f631fa941f Waiman Long         2023-10-25  6804  		struct device_attribute *attr;
fe28f631fa941f Waiman Long         2023-10-25  6805  
fe28f631fa941f Waiman Long         2023-10-25  6806  		for (attr = wq_sysfs_cpumask_attrs; attr->attr.name; attr++) {
fe28f631fa941f Waiman Long         2023-10-25  6807  			err = device_create_file(dev_root, attr);
fe28f631fa941f Waiman Long         2023-10-25  6808  			if (err)
fe28f631fa941f Waiman Long         2023-10-25  6809  				break;
fe28f631fa941f Waiman Long         2023-10-25  6810  		}
686f669780276d Greg Kroah-Hartman  2023-03-13  6811  		put_device(dev_root);
686f669780276d Greg Kroah-Hartman  2023-03-13  6812  	}
686f669780276d Greg Kroah-Hartman  2023-03-13  6813  	return err;
2d3854a37e8b76 Rusty Russell       2008-11-05  6814  }
6ba94429c8e7b8 Frederic Weisbecker 2015-04-02  6815  core_initcall(wq_sysfs_init);
2d3854a37e8b76 Rusty Russell       2008-11-05  6816  

:::::: The code at line 6798 was first introduced by commit
:::::: b05a79280b346eb24ddb73b39988398015291075 workqueue: Create low-level unbound workqueues cpumask

:::::: TO: Frederic Weisbecker <fweisbec@gmail.com>
:::::: CC: Tejun Heo <tj@kernel.org>

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


             reply	other threads:[~2024-02-05  7:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-05  7:15 kernel test robot [this message]
2024-02-05 13:29 ` Ricardo B. Marliere
2024-02-05 17:43   ` Tejun Heo
2024-02-06 17:48     ` Ricardo B. Marliere
2024-02-05 17:41 ` [PATCH wq/for-6.9] Revert "workqueue: make wq_subsys const" Tejun Heo

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=202402051505.kM9Rr3CJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ricardo@marliere.net \
    --cc=tj@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox