From: kernel test robot <lkp@intel.com>
To: Dongcheng Yan <dongcheng.yan@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, "sys_oak" <sys_oak@intel.com>
Subject: [intel-lts:6.18/linux 52/52] drivers/media/i2c/max9x/serdes.c:2693:12: warning: 'max9x_suspend' defined but not used
Date: Tue, 20 Oct 2026 19:53:19 +0800 [thread overview]
Message-ID: <202610201916.riCyaki1-lkp@intel.com> (raw)
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
reply other threads:[~2026-10-20 11:53 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=202610201916.riCyaki1-lkp@intel.com \
--to=lkp@intel.com \
--cc=dongcheng.yan@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sys_oak@intel.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 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.