]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ice: dpll: Fix compilation warning
authorPrzemyslaw Korba <przemyslaw.korba@intel.com>
Fri, 1 May 2026 06:37:24 +0000 (23:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 May 2026 02:12:47 +0000 (19:12 -0700)
Introduced by commit ad1df4f2d591 ("ice: dpll: Support E825-C SyncE and
dynamic pin discovery"):

ice_dpll.c: In function ‘ice_dpll_init’:
ice_dpll.c:3588:59: error: ‘%u’ directive output may be truncated
writing between 1 and 10 bytes into a region of size 4
[-Werror=format-truncation=] snprintf(pin_name, sizeof(pin_name),
"rclk%u", i);

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Przemyslaw Korba <przemyslaw.korba@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260430-jk-iwl-net-next-2026-04-30-v1-13-6f27ae1cd073@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_dpll.c

index 27b460926baced1a02d49a71365c3a9a3f0a83d7..a00da99dd19faeb014071badad717fb5376b37cc 100644 (file)
@@ -3632,7 +3632,7 @@ static int
 ice_dpll_init_fwnode_pins(struct ice_pf *pf, struct ice_dpll_pin *pins,
                          int start_idx)
 {
-       char pin_name[8];
+       char pin_name[16];
        int i, ret;
 
        pf->dplls.wq = create_singlethread_workqueue("ice_dpll_wq");