* [intel-lts:6.18/linux 52/52] drivers/media/i2c/max9x/serdes.c:2693:12: warning: 'max9x_suspend' defined but not used
@ 2026-10-20 11:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-20 11:53 UTC (permalink / raw)
To: Dongcheng Yan; +Cc: oe-kbuild-all, sys_oak
Hi Dongcheng,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 6.18/linux
head: 773b2eb76d5ee325c7d60f2c161b9b12f32d13fa
commit: baa76709460c288499d118e2daa55ca3df5a6436 [52/52] media: i2c: add gmsl & isx031 support
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20261020/202610201916.riCyaki1-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261020/202610201916.riCyaki1-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/202610201916.riCyaki1-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/media/i2c/max9x/serdes.c:2693:12: warning: 'max9x_suspend' defined but not used [-Wunused-function]
2693 | static int max9x_suspend(struct device *dev)
| ^~~~~~~~~~~~~
>> drivers/media/i2c/max9x/serdes.c:2685:12: warning: 'max9x_resume' defined but not used [-Wunused-function]
2685 | static int max9x_resume(struct device *dev)
| ^~~~~~~~~~~~
drivers/media/i2c/max9x/serdes.c: In function 'parse_serdes_pdata':
drivers/media/i2c/max9x/serdes.c:295:47: warning: '%s' directive output may be truncated writing up to 4 bytes into a region of size between 0 and 19 [-Wformat-truncation=]
295 | snprintf(dev_name, I2C_NAME_SIZE, "%s %s", sensor_name, suffix);
| ^~
In function 'parse_sensor_pdata',
inlined from 'parse_serdes_pdata' at drivers/media/i2c/max9x/serdes.c:370:3:
drivers/media/i2c/max9x/serdes.c:295:9: note: 'snprintf' output between 2 and 25 bytes into a destination of size 20
295 | snprintf(dev_name, I2C_NAME_SIZE, "%s %s", sensor_name, suffix);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/max9x_suspend +2693 drivers/media/i2c/max9x/serdes.c
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2684
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 @2685 static int max9x_resume(struct device *dev)
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2686 {
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2687 struct i2c_client *client = to_i2c_client(dev);
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2688 struct max9x_common *common = max9x_client_to_common(client);
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2689
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2690 return max9x_common_resume(common);
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2691 }
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2692
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 @2693 static int max9x_suspend(struct device *dev)
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2694 {
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2695 struct i2c_client *client = to_i2c_client(dev);
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2696 struct max9x_common *common = max9x_client_to_common(client);
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2697
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2698 return max9x_common_suspend(common);
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2699 }
2445b17eae1d53 Shahidan, Muhammad Shahmil 2026-04-08 2700
:::::: The code at line 2693 was first introduced by commit
:::::: 2445b17eae1d5356936a0a598940dfaad469c29d Add serdes drivers
:::::: TO: Shahidan, Muhammad Shahmil <muhammad.shahmil.shahidan@intel.com>
:::::: CC: sys_oak <sys_oak@intel.com>
--
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:[~2026-10-20 11:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 11:53 [intel-lts:6.18/linux 52/52] drivers/media/i2c/max9x/serdes.c:2693:12: warning: 'max9x_suspend' 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.