* [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
@ 2024-09-14 5:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-14 5:53 UTC (permalink / raw)
To: Chen-Yu Tsai; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-14 5:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-14 5:53 [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 kernel test robot
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.