From: kernel test robot <lkp@intel.com>
To: Antheas Kapenekakis <lkml@antheas.dev>,
platform-driver-x86@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-hwmon@vger.kernel.org, "Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Derek John Clark" <derekjohn.clark@gmail.com>,
"Joaquín Ignacio Aramendía" <samsagax@gmail.com>,
"Jean Delvare" <jdelvare@suse.com>,
"Guenter Roeck" <linux@roeck-us.net>,
"Antheas Kapenekakis" <lkml@antheas.dev>
Subject: Re: [PATCH v1 4/5] platform/x86: ayaneo-ec: Add controller power and modules attributes
Date: Thu, 21 Aug 2025 16:41:04 +0800 [thread overview]
Message-ID: <202508211626.9Cxkta6K-lkp@intel.com> (raw)
In-Reply-To: <20250820160628.99678-5-lkml@antheas.dev>
Hi Antheas,
kernel test robot noticed the following build errors:
[auto build test ERROR on c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9]
url: https://github.com/intel-lab-lkp/linux/commits/Antheas-Kapenekakis/platform-x86-ayaneo-ec-Add-Ayaneo-Embedded-Controller-platform-driver/20250821-002525
base: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
patch link: https://lore.kernel.org/r/20250820160628.99678-5-lkml%40antheas.dev
patch subject: [PATCH v1 4/5] platform/x86: ayaneo-ec: Add controller power and modules attributes
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20250821/202508211626.9Cxkta6K-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250821/202508211626.9Cxkta6K-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/202508211626.9Cxkta6K-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/platform/x86/ayaneo-ec.c: In function 'ayaneo_ec_probe':
>> drivers/platform/x86/ayaneo-ec.c:497:49: error: implicit declaration of function 'MKDEV' [-Werror=implicit-function-declaration]
497 | MKDEV(0, 0), NULL, "%s",
| ^~~~~
cc1: some warnings being treated as errors
vim +/MKDEV +497 drivers/platform/x86/ayaneo-ec.c
459
460 static int ayaneo_ec_probe(struct platform_device *pdev)
461 {
462 const struct dmi_system_id *dmi_entry;
463 struct ayaneo_ec_platform_data *data;
464 struct device *hwdev;
465 int ret;
466
467 dmi_entry = dmi_first_match(dmi_table);
468 if (!dmi_entry)
469 return -ENODEV;
470
471 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
472 if (!data)
473 return -ENOMEM;
474
475 data->pdev = pdev;
476 data->quirks = dmi_entry->driver_data;
477 platform_set_drvdata(pdev, data);
478
479 if (data->quirks->has_fan_control) {
480 hwdev = devm_hwmon_device_register_with_info(
481 &pdev->dev, "ayaneo_ec", NULL, &ayaneo_ec_chip_info, NULL);
482 if (IS_ERR(hwdev))
483 return PTR_ERR(hwdev);
484 }
485
486 if (data->quirks->has_charge_control) {
487 data->battery_hook.add_battery = ayaneo_add_battery;
488 data->battery_hook.remove_battery = ayaneo_remove_battery;
489 data->battery_hook.name = "Ayaneo Battery";
490 ret = devm_battery_hook_register(&pdev->dev, &data->battery_hook);
491 if (ret)
492 return ret;
493 }
494
495 if (data->quirks->has_magic_modules || data->quirks->has_controller_power) {
496 data->fw_attrs_dev = device_create(&firmware_attributes_class, NULL,
> 497 MKDEV(0, 0), NULL, "%s",
498 DRIVER_NAME);
499 if (IS_ERR(data->fw_attrs_dev))
500 return PTR_ERR(data->fw_attrs_dev);
501
502 ret = devm_add_action_or_reset(&data->pdev->dev,
503 ayaneo_fw_attrs_dev_unregister,
504 data->fw_attrs_dev);
505 if (ret)
506 return ret;
507
508 data->fw_attrs_kset = kset_create_and_add("attributes", NULL,
509 &data->fw_attrs_dev->kobj);
510 if (!data->fw_attrs_kset)
511 return -ENOMEM;
512
513 ret = devm_add_action_or_reset(&data->pdev->dev, ayaneo_kset_unregister,
514 data->fw_attrs_kset);
515
516 if (data->quirks->has_magic_modules) {
517 ret = ayaneo_fw_attr_init(
518 data, AYANEO_ATTR_CONTROLLER_MODULES, true);
519 if (ret)
520 return ret;
521 }
522
523 if (data->quirks->has_controller_power) {
524 ret = ayaneo_fw_attr_init(
525 data, AYANEO_ATTR_CONTROLLER_POWER, false);
526 if (ret)
527 return ret;
528 }
529 }
530
531 return 0;
532 }
533
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-08-21 8:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 16:06 [PATCH v1 0/5] platform/x86: ayaneo-ec: Add Ayaneo Embedded Controller platform driver Antheas Kapenekakis
2025-08-20 16:06 ` [PATCH v1 1/5] " Antheas Kapenekakis
2025-08-20 16:06 ` [PATCH v1 2/5] platform/x86: ayaneo-ec: Add hwmon support Antheas Kapenekakis
2025-08-22 12:35 ` Armin Wolf
2025-08-22 20:56 ` Antheas Kapenekakis
2025-09-05 18:49 ` Armin Wolf
2025-08-20 16:06 ` [PATCH v1 3/5] platform/x86: ayaneo-ec: Add charge control support Antheas Kapenekakis
2025-08-22 12:38 ` Armin Wolf
2025-08-22 21:04 ` Antheas Kapenekakis
2025-09-05 18:54 ` Armin Wolf
2025-08-20 16:06 ` [PATCH v1 4/5] platform/x86: ayaneo-ec: Add controller power and modules attributes Antheas Kapenekakis
2025-08-21 8:41 ` kernel test robot [this message]
2025-08-21 8:41 ` kernel test robot
2025-08-22 12:40 ` Armin Wolf
2025-08-22 21:08 ` Antheas Kapenekakis
2025-09-05 19:05 ` Armin Wolf
2025-08-20 16:06 ` [PATCH v1 5/5] platform/x86: ayaneo-ec: Move Ayaneo devices from oxpec to ayaneo-ec Antheas Kapenekakis
2025-08-23 0:07 ` Derek John Clark
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=202508211626.9Cxkta6K-lkp@intel.com \
--to=lkp@intel.com \
--cc=derekjohn.clark@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lkml@antheas.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=platform-driver-x86@vger.kernel.org \
--cc=samsagax@gmail.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
all inboxes | Powered by JetHome®