public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
	Paolo Abeni <pabeni@redhat.com>,
	Aleksandr Loktionov <aleksandr.loktionov@intel.com>,
	Ivan Vecera <ivecera@redhat.com>,
	Grzegorz Nitka <grzegorz.nitka@intel.com>
Subject: [net-next:main 19/22] drivers/net/ethernet/intel/ice/ice_dpll.c:3539:45: warning: '%u' directive output may be truncated writing between 1 and 8 bytes into a region of size 4
Date: Tue, 10 Feb 2026 03:12:52 +0800	[thread overview]
Message-ID: <202602100310.nOvzaILF-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git main
head:   57be33f85e369ce9f69f61eaa34734e0d3bd47a7
commit: ad1df4f2d591e167bc64b8a7ce6328a2735e3d58 [19/22] ice: dpll: Support E825-C SyncE and dynamic pin discovery
config: microblaze-randconfig-r062-20260209 (https://download.01.org/0day-ci/archive/20260210/202602100310.nOvzaILF-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100310.nOvzaILF-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/202602100310.nOvzaILF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/intel/ice/ice_dpll.c: In function 'ice_dpll_init':
>> drivers/net/ethernet/intel/ice/ice_dpll.c:3539:45: warning: '%u' directive output may be truncated writing between 1 and 8 bytes into a region of size 4 [-Wformat-truncation=]
      snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
                                                ^~
   drivers/net/ethernet/intel/ice/ice_dpll.c:3539:40: note: directive argument in the range [0, 38347923]
      snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
                                           ^~~~~~~~
   drivers/net/ethernet/intel/ice/ice_dpll.c:3539:3: note: 'snprintf' output between 6 and 13 bytes into a destination of size 8
      snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +3539 drivers/net/ethernet/intel/ice/ice_dpll.c

  3509	
  3510	/**
  3511	 * ice_dpll_init_fwnode_pins - initialize pins from device tree
  3512	 * @pf: board private structure
  3513	 * @pins: pointer to pins array
  3514	 * @start_idx: starting index for pins
  3515	 * @count: number of pins to initialize
  3516	 *
  3517	 * Initialize input pins for E825 RCLK support. The parent pins (rclk0, rclk1)
  3518	 * are expected to be defined by the system firmware (ACPI). This function
  3519	 * allocates them in the dpll subsystem and stores their indices for later
  3520	 * registration with the rclk pin.
  3521	 *
  3522	 * Return:
  3523	 * * 0 - success
  3524	 * * negative - initialization failure reason
  3525	 */
  3526	static int
  3527	ice_dpll_init_fwnode_pins(struct ice_pf *pf, struct ice_dpll_pin *pins,
  3528				  int start_idx)
  3529	{
  3530		char pin_name[8];
  3531		int i, ret;
  3532	
  3533		pf->dplls.wq = create_singlethread_workqueue("ice_dpll_wq");
  3534		if (!pf->dplls.wq)
  3535			return -ENOMEM;
  3536	
  3537		for (i = 0; i < pf->dplls.rclk.num_parents; i++) {
  3538			pins[start_idx + i].pf = pf;
> 3539			snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
  3540			ret = ice_dpll_init_fwnode_pin(&pins[start_idx + i], pin_name);
  3541			if (ret)
  3542				goto error;
  3543		}
  3544	
  3545		return 0;
  3546	error:
  3547		while (i--)
  3548			ice_dpll_deinit_fwnode_pin(&pins[start_idx + i]);
  3549	
  3550		destroy_workqueue(pf->dplls.wq);
  3551	
  3552		return ret;
  3553	}
  3554	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-02-09 19:14 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=202602100310.nOvzaILF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aleksandr.loktionov@intel.com \
    --cc=arkadiusz.kubalewski@intel.com \
    --cc=grzegorz.nitka@intel.com \
    --cc=ivecera@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox