From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/mfd/da9063-core.c:222:25: warning: cast between incompatible function types from 'int (*)(struct notifier_block *)' to 'void (*)(void *)'
Date: Tue, 28 Sep 2021 04:58:24 +0800 [thread overview]
Message-ID: <202109280419.EkhZXerm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3581 bytes --]
tree: https://github.com/0day-ci/linux/commits/Alexandre-Ghiti/drivers-mfd-da9063-Add-restart-notifier-implementation/20210922-143039
head: 8d78afddba48dbb0d8c398dd162799254653c5a3
commit: 8d78afddba48dbb0d8c398dd162799254653c5a3 drivers: mfd: da9063: Add restart notifier implementation
date: 6 days ago
config: nds32-buildonly-randconfig-r002-20210927 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/8d78afddba48dbb0d8c398dd162799254653c5a3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexandre-Ghiti/drivers-mfd-da9063-Add-restart-notifier-implementation/20210922-143039
git checkout 8d78afddba48dbb0d8c398dd162799254653c5a3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/mfd/da9063-core.c: In function 'da9063_device_init':
>> drivers/mfd/da9063-core.c:222:25: warning: cast between incompatible function types from 'int (*)(struct notifier_block *)' to 'void (*)(void *)' [-Wcast-function-type]
222 | (void (*)(void *))unregister_restart_handler,
| ^
vim +222 drivers/mfd/da9063-core.c
173
174 int da9063_device_init(struct da9063 *da9063, unsigned int irq)
175 {
176 int ret;
177
178 ret = da9063_clear_fault_log(da9063);
179 if (ret < 0)
180 dev_err(da9063->dev, "Cannot clear fault log\n");
181
182 da9063->flags = 0;
183 da9063->irq_base = -1;
184 da9063->chip_irq = irq;
185
186 ret = da9063_irq_init(da9063);
187 if (ret) {
188 dev_err(da9063->dev, "Cannot initialize interrupts.\n");
189 return ret;
190 }
191
192 da9063->irq_base = regmap_irq_chip_get_base(da9063->regmap_irq);
193
194 ret = devm_mfd_add_devices(da9063->dev, PLATFORM_DEVID_NONE,
195 da9063_common_devs,
196 ARRAY_SIZE(da9063_common_devs),
197 NULL, da9063->irq_base, NULL);
198 if (ret) {
199 dev_err(da9063->dev, "Failed to add child devices\n");
200 return ret;
201 }
202
203 if (da9063->type == PMIC_TYPE_DA9063) {
204 ret = devm_mfd_add_devices(da9063->dev, PLATFORM_DEVID_NONE,
205 da9063_devs, ARRAY_SIZE(da9063_devs),
206 NULL, da9063->irq_base, NULL);
207 if (ret) {
208 dev_err(da9063->dev, "Failed to add child devices\n");
209 return ret;
210 }
211 }
212
213 da9063->restart_handler.notifier_call = da9063_restart_notify;
214 da9063->restart_handler.priority = 128;
215 ret = register_restart_handler(&da9063->restart_handler);
216 if (ret) {
217 dev_err(da9063->dev, "Failed to register restart handler\n");
218 return ret;
219 }
220
221 devm_add_action(da9063->dev,
> 222 (void (*)(void *))unregister_restart_handler,
223 &da9063->restart_handler);
224
225 return ret;
226 }
227
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28725 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
0day robot <lkp@intel.com>
Subject: drivers/mfd/da9063-core.c:222:25: warning: cast between incompatible function types from 'int (*)(struct notifier_block *)' to 'void (*)(void *)'
Date: Tue, 28 Sep 2021 04:58:24 +0800 [thread overview]
Message-ID: <202109280419.EkhZXerm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3491 bytes --]
tree: https://github.com/0day-ci/linux/commits/Alexandre-Ghiti/drivers-mfd-da9063-Add-restart-notifier-implementation/20210922-143039
head: 8d78afddba48dbb0d8c398dd162799254653c5a3
commit: 8d78afddba48dbb0d8c398dd162799254653c5a3 drivers: mfd: da9063: Add restart notifier implementation
date: 6 days ago
config: nds32-buildonly-randconfig-r002-20210927 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/8d78afddba48dbb0d8c398dd162799254653c5a3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexandre-Ghiti/drivers-mfd-da9063-Add-restart-notifier-implementation/20210922-143039
git checkout 8d78afddba48dbb0d8c398dd162799254653c5a3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/mfd/da9063-core.c: In function 'da9063_device_init':
>> drivers/mfd/da9063-core.c:222:25: warning: cast between incompatible function types from 'int (*)(struct notifier_block *)' to 'void (*)(void *)' [-Wcast-function-type]
222 | (void (*)(void *))unregister_restart_handler,
| ^
vim +222 drivers/mfd/da9063-core.c
173
174 int da9063_device_init(struct da9063 *da9063, unsigned int irq)
175 {
176 int ret;
177
178 ret = da9063_clear_fault_log(da9063);
179 if (ret < 0)
180 dev_err(da9063->dev, "Cannot clear fault log\n");
181
182 da9063->flags = 0;
183 da9063->irq_base = -1;
184 da9063->chip_irq = irq;
185
186 ret = da9063_irq_init(da9063);
187 if (ret) {
188 dev_err(da9063->dev, "Cannot initialize interrupts.\n");
189 return ret;
190 }
191
192 da9063->irq_base = regmap_irq_chip_get_base(da9063->regmap_irq);
193
194 ret = devm_mfd_add_devices(da9063->dev, PLATFORM_DEVID_NONE,
195 da9063_common_devs,
196 ARRAY_SIZE(da9063_common_devs),
197 NULL, da9063->irq_base, NULL);
198 if (ret) {
199 dev_err(da9063->dev, "Failed to add child devices\n");
200 return ret;
201 }
202
203 if (da9063->type == PMIC_TYPE_DA9063) {
204 ret = devm_mfd_add_devices(da9063->dev, PLATFORM_DEVID_NONE,
205 da9063_devs, ARRAY_SIZE(da9063_devs),
206 NULL, da9063->irq_base, NULL);
207 if (ret) {
208 dev_err(da9063->dev, "Failed to add child devices\n");
209 return ret;
210 }
211 }
212
213 da9063->restart_handler.notifier_call = da9063_restart_notify;
214 da9063->restart_handler.priority = 128;
215 ret = register_restart_handler(&da9063->restart_handler);
216 if (ret) {
217 dev_err(da9063->dev, "Failed to register restart handler\n");
218 return ret;
219 }
220
221 devm_add_action(da9063->dev,
> 222 (void (*)(void *))unregister_restart_handler,
223 &da9063->restart_handler);
224
225 return ret;
226 }
227
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28725 bytes --]
next reply other threads:[~2021-09-27 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 20:58 kernel test robot [this message]
2021-09-27 20:58 ` drivers/mfd/da9063-core.c:222:25: warning: cast between incompatible function types from 'int (*)(struct notifier_block *)' to 'void (*)(void *)' kernel test robot
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=202109280419.EkhZXerm-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 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.