Netdev List
 help / color / mirror / Atom feed
* clang: net: qed_main.c:1227:3: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 18 [-Werror,-Wfortify-source]
@ 2023-08-28 12:27 Naresh Kamboju
  2023-08-28 14:48 ` Nathan Chancellor
  2023-08-28 14:52 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Naresh Kamboju @ 2023-08-28 12:27 UTC (permalink / raw)
  To: clang-built-linux, linux-stable, lkft-triage
  Cc: Netdev, David Miller, Eric Dumazet, Sasha Levin,
	Greg Kroah-Hartman, Nathan Chancellor, Nick Desaulniers

[My two cents]

stable-rc linux-6.1.y and linux-6.4.y x86 clang-nightly builds fail with
following warnings / errors.

Build errors:
--------------
drivers/net/ethernet/qlogic/qed/qed_main.c:1227:3: error: 'snprintf'
will always be truncated; specified size is 16, but format string
expands to at least 18 [-Werror,-Wfortify-source]
 1227 |                 snprintf(name, NAME_SIZE, "slowpath-%02x:%02x.%02x",
      |                 ^
1 error generated.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-28 17:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28 12:27 clang: net: qed_main.c:1227:3: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 18 [-Werror,-Wfortify-source] Naresh Kamboju
2023-08-28 14:48 ` Nathan Chancellor
2023-08-28 14:52 ` Greg Kroah-Hartman
2023-08-28 17:30   ` Naresh Kamboju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox