From: kernel test robot <lkp@intel.com>
To: Joshua Grisham <josh@joshuagrisham.com>,
W_Armin@gmx.de, thomas@t-8ch.de, kuurtb@gmail.com,
ilpo.jarvinen@linux.intel.com, hdegoede@redhat.com,
platform-driver-x86@vger.kernel.org, corbet@lwn.net,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, Joshua Grisham <josh@joshuagrisham.com>
Subject: Re: [PATCH v5] platform/x86: samsung-galaxybook: Add samsung-galaxybook driver
Date: Sat, 11 Jan 2025 05:44:36 +0800 [thread overview]
Message-ID: <202501110509.FukyduTN-lkp@intel.com> (raw)
In-Reply-To: <20250109220745.69977-1-josh@joshuagrisham.com>
Hi Joshua,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.13-rc6 next-20250110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Joshua-Grisham/platform-x86-samsung-galaxybook-Add-samsung-galaxybook-driver/20250110-061059
base: linus/master
patch link: https://lore.kernel.org/r/20250109220745.69977-1-josh%40joshuagrisham.com
patch subject: [PATCH v5] platform/x86: samsung-galaxybook: Add samsung-galaxybook driver
config: x86_64-randconfig-077-20250111 (https://download.01.org/0day-ci/archive/20250111/202501110509.FukyduTN-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250111/202501110509.FukyduTN-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/202501110509.FukyduTN-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/platform/x86/samsung-galaxybook.c: In function 'galaxybook_profile_init':
drivers/platform/x86/samsung-galaxybook.c:759:36: error: 'struct platform_profile_handler' has no member named 'name'
759 | galaxybook->profile_handler.name = DRIVER_NAME;
| ^
drivers/platform/x86/samsung-galaxybook.c:760:36: error: 'struct platform_profile_handler' has no member named 'dev'
760 | galaxybook->profile_handler.dev = &galaxybook->platform->dev;
| ^
drivers/platform/x86/samsung-galaxybook.c:764:15: error: implicit declaration of function 'devm_platform_profile_register'; did you mean 'platform_profile_register'? [-Werror=implicit-function-declaration]
764 | err = devm_platform_profile_register(&galaxybook->profile_handler);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| platform_profile_register
In file included from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/acpi.h:14,
from drivers/platform/x86/samsung-galaxybook.c:14:
drivers/platform/x86/samsung-galaxybook.c: In function 'galaxybook_fw_attr_init':
>> drivers/platform/x86/samsung-galaxybook.c:1057:33: error: 'fw_attr' is a pointer; did you mean to use '->'?
1057 | sysfs_attr_init(&fw_attr.display_name);
| ^
include/linux/sysfs.h:55:10: note: in definition of macro 'sysfs_attr_init'
55 | (attr)->key = &__key; \
| ^~~~
drivers/platform/x86/samsung-galaxybook.c:1063:33: error: 'fw_attr' is a pointer; did you mean to use '->'?
1063 | sysfs_attr_init(&fw_attr.current_value);
| ^
include/linux/sysfs.h:55:10: note: in definition of macro 'sysfs_attr_init'
55 | (attr)->key = &__key; \
| ^~~~
cc1: some warnings being treated as errors
vim +1057 drivers/platform/x86/samsung-galaxybook.c
1031
1032 static int galaxybook_fw_attr_init(struct samsung_galaxybook *galaxybook,
1033 const enum galaxybook_fw_attr_id fw_attr_id,
1034 int (*get_value)(struct samsung_galaxybook *galaxybook,
1035 bool *value),
1036 int (*set_value)(struct samsung_galaxybook *galaxybook,
1037 const bool value))
1038 {
1039 struct galaxybook_fw_attr *fw_attr;
1040 struct attribute **attrs;
1041 int err;
1042
1043 fw_attr = devm_kzalloc(&galaxybook->platform->dev, sizeof(*fw_attr), GFP_KERNEL);
1044 if (!fw_attr)
1045 return -ENOMEM;
1046
1047 attrs = devm_kcalloc(&galaxybook->platform->dev, NUM_FW_ATTR_ENUM_ATTRS + 1,
1048 sizeof(*attrs), GFP_KERNEL);
1049 if (!attrs)
1050 return -ENOMEM;
1051
1052 attrs[0] = &fw_attr_type.attr;
1053 attrs[1] = &fw_attr_default_value.attr;
1054 attrs[2] = &fw_attr_possible_values.attr;
1055 attrs[3] = &fw_attr_display_name_language_code.attr;
1056
> 1057 sysfs_attr_init(&fw_attr.display_name);
1058 fw_attr->display_name.attr.name = "display_name";
1059 fw_attr->display_name.attr.mode = 0444;
1060 fw_attr->display_name.show = display_name_show;
1061 attrs[4] = &fw_attr->display_name.attr;
1062
1063 sysfs_attr_init(&fw_attr.current_value);
1064 fw_attr->current_value.attr.name = "current_value";
1065 fw_attr->current_value.attr.mode = 0644;
1066 fw_attr->current_value.show = current_value_show;
1067 fw_attr->current_value.store = current_value_store;
1068 attrs[5] = &fw_attr->current_value.attr;
1069
1070 attrs[6] = NULL;
1071
1072 fw_attr->galaxybook = galaxybook;
1073 fw_attr->fw_attr_id = fw_attr_id;
1074 fw_attr->attr_group.name = galaxybook_fw_attr_name[fw_attr_id];
1075 fw_attr->attr_group.attrs = attrs;
1076 fw_attr->get_value = get_value;
1077 fw_attr->set_value = set_value;
1078
1079 err = sysfs_create_group(&galaxybook->fw_attrs_kset->kobj, &fw_attr->attr_group);
1080 if (err)
1081 return err;
1082
1083 return devm_add_action_or_reset(&galaxybook->platform->dev,
1084 galaxybook_fw_attr_remove, fw_attr);
1085 }
1086
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-01-10 21:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-09 22:07 [PATCH v5] platform/x86: samsung-galaxybook: Add samsung-galaxybook driver Joshua Grisham
2025-01-10 11:30 ` Ilpo Järvinen
2025-01-10 15:59 ` Joshua Grisham
2025-01-10 16:34 ` Ilpo Järvinen
2025-01-10 16:45 ` Joshua Grisham
2025-01-11 17:15 ` Kurt Borja
2025-01-12 14:55 ` Joshua Grisham
2025-01-10 19:46 ` kernel test robot
2025-01-10 21:44 ` kernel test robot [this message]
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=202501110509.FukyduTN-lkp@intel.com \
--to=lkp@intel.com \
--cc=W_Armin@gmx.de \
--cc=corbet@lwn.net \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=josh@joshuagrisham.com \
--cc=kuurtb@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=platform-driver-x86@vger.kernel.org \
--cc=thomas@t-8ch.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).