From: kernel test robot <lkp@intel.com>
To: Chen-Yu Tsai <wenst@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [wens:mtk-wip 45/45] drivers/platform/chrome/chromeos_of_hw_prober.c:207:45: warning: 'chromeos_i2c_probe_hana_trackpad' defined but not used
Date: Sat, 14 Sep 2024 13:53:48 +0800 [thread overview]
Message-ID: <202409141358.A1eSxMVB-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git mtk-wip
head: 42c21929aeb3c7ca7b0ce9cacb1d0ff915d3c783
commit: 42c21929aeb3c7ca7b0ce9cacb1d0ff915d3c783 [45/45] hana trackpad probe rework
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240914/202409141358.A1eSxMVB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409141358.A1eSxMVB-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/202409141358.A1eSxMVB-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/platform/chrome/chromeos_of_hw_prober.c: In function 'chromeos_sku_component_selector':
drivers/platform/chrome/chromeos_of_hw_prober.c:102:16: error: cleanup argument not a function
102 | struct of_changeset *ocs __free(kfree) = kzalloc(sizeof(*ocs), GFP_KERNEL);
| ^~~~~~~~~~~~
drivers/platform/chrome/chromeos_of_hw_prober.c:102:50: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
102 | struct of_changeset *ocs __free(kfree) = kzalloc(sizeof(*ocs), GFP_KERNEL);
| ^~~~~~~
drivers/platform/chrome/chromeos_of_hw_prober.c:102:50: warning: initialization of 'struct of_changeset *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
drivers/platform/chrome/chromeos_of_hw_prober.c: At top level:
>> drivers/platform/chrome/chromeos_of_hw_prober.c:207:45: warning: 'chromeos_i2c_probe_hana_trackpad' defined but not used [-Wunused-const-variable=]
207 | static const struct chromeos_i2c_probe_data chromeos_i2c_probe_hana_trackpad = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/chrome/chromeos_of_hw_prober.c:197:38: warning: 'chromeos_i2c_probe_simple_trackpad_cfg' defined but not used [-Wunused-const-variable=]
197 | static const struct i2c_of_probe_cfg chromeos_i2c_probe_simple_trackpad_cfg = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GET_FREE_REGION
Depends on [n]: SPARSEMEM [=n]
Selected by [m]:
- RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m]
WARNING: unmet direct dependencies detected for OMAP2PLUS_MBOX
Depends on [n]: MAILBOX [=y] && (ARCH_OMAP2PLUS || ARCH_K3)
Selected by [m]:
- TI_K3_M4_REMOTEPROC [=m] && REMOTEPROC [=y] && (ARCH_K3 || COMPILE_TEST [=y])
vim +/chromeos_i2c_probe_hana_trackpad +207 drivers/platform/chrome/chromeos_of_hw_prober.c
196
> 197 static const struct i2c_of_probe_cfg chromeos_i2c_probe_simple_trackpad_cfg = {
198 .ops = &i2c_of_probe_simple_ops,
199 .type = "trackpad"
200 };
201
202 static const struct i2c_of_probe_cfg chromeos_i2c_probe_simple_touchscreen_cfg = {
203 .ops = &i2c_of_probe_simple_ops,
204 .type = "touchscreen"
205 };
206
> 207 static const struct chromeos_i2c_probe_data chromeos_i2c_probe_hana_trackpad = {
208 .cfg = &chromeos_i2c_probe_simple_touchscreen_cfg,
209 .opts = &(const struct i2c_of_probe_simple_opts) {
210 .res_node_compatible = "elan,ekth3000",
211 .supply_name = "vcc",
212 .post_power_on_delay_ms = 1,
213 }
214 };
215
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-09-14 5:54 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=202409141358.A1eSxMVB-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=wenst@chromium.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.