From: kernel test robot <lkp@intel.com>
To: "Ricardo B. Marliere" <ricardo@marliere.net>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Sebastian Reichel <sebastian.reichel@collabora.com>
Subject: [linux-next:master 9574/10830] drivers/power/supply/power_supply_core.c:1630:9: error: too few arguments to function 'power_supply_init_attrs'
Date: Thu, 29 Feb 2024 01:16:06 +0800 [thread overview]
Message-ID: <202402290152.FpUEAK3i-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 20af1ca418d2c0b11bc2a1fe8c0c88f67bcc2a7e
commit: 7b46b60944d77e361a727cd8ce46aec31c146e26 [9574/10830] power: supply: core: constify the struct device_type usage
config: alpha-randconfig-r016-20220129 (https://download.01.org/0day-ci/archive/20240229/202402290152.FpUEAK3i-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240229/202402290152.FpUEAK3i-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/202402290152.FpUEAK3i-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/power/supply/power_supply_core.c: In function 'power_supply_class_init':
>> drivers/power/supply/power_supply_core.c:1630:9: error: too few arguments to function 'power_supply_init_attrs'
1630 | power_supply_init_attrs();
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/power/supply/power_supply_core.c:25:
drivers/power/supply/power_supply.h:25:20: note: declared here
25 | static inline void power_supply_init_attrs(struct device_type *dev_type) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/power_supply_init_attrs +1630 drivers/power/supply/power_supply_core.c
1621
1622 static int __init power_supply_class_init(void)
1623 {
1624 power_supply_class = class_create("power_supply");
1625
1626 if (IS_ERR(power_supply_class))
1627 return PTR_ERR(power_supply_class);
1628
1629 power_supply_class->dev_uevent = power_supply_uevent;
> 1630 power_supply_init_attrs();
1631
1632 return 0;
1633 }
1634
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-02-28 17:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202402290152.FpUEAK3i-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ricardo@marliere.net \
--cc=sebastian.reichel@collabora.com \
/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