netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* txtimestamp.c:164:29: warning: format '0' expects argument of type 'long unsigned int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=]
@ 2022-01-06 10:09 Naresh Kamboju
  2022-01-06 10:37 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Naresh Kamboju @ 2022-01-06 10:09 UTC (permalink / raw)
  To: linux-stable, open list, open list:KERNEL SELFTEST FRAMEWORK,
	Netdev, lkft-triage
  Cc: Greg Kroah-Hartman, Shuah Khan, Jakub Kicinski, David S. Miller,
	Yangbo Lu, Grygorii Strashko, Richard Cochran, Jian Yang

While building selftests the following warnings were noticed for arm
architecture on Linux stable v5.15.13 kernel and also on Linus's tree.

arm-linux-gnueabihf-gcc -Wall -Wl,--no-as-needed -O2 -g
-I../../../../usr/include/    txtimestamp.c  -o
/home/tuxbuild/.cache/tuxmake/builds/current/kselftest/net/txtimestamp
txtimestamp.c: In function 'validate_timestamp':
txtimestamp.c:164:29: warning: format '0' expects argument of type
'long unsigned int', but argument 3 has type 'int64_t' {aka 'long long
int'} [-Wformat=]
  164 |   fprintf(stderr, "ERROR: 0 us expected between 0 and 0\n",
      |                           ~~^
      |                             |
      |                             long unsigned int
      |                           0
  165 |     cur64 - start64, min_delay, max_delay);
      |     ~~~~~~~~~~~~~~~
      |           |
      |           int64_t {aka long long int}
txtimestamp.c: In function '__print_ts_delta_formatted':
txtimestamp.c:173:22: warning: format '0' expects argument of type
'long unsigned int', but argument 3 has type 'int64_t' {aka 'long long
int'} [-Wformat=]
  173 |   fprintf(stderr, "0 ns", ts_delta);
      |                    ~~^      ~~~~~~~~
      |                      |      |
      |                      |      int64_t {aka long long int}
      |                      long unsigned int
      |                    0
txtimestamp.c:175:22: warning: format '0' expects argument of type
'long unsigned int', but argument 3 has type 'int64_t' {aka 'long long
int'} [-Wformat=]
  175 |   fprintf(stderr, "0 us", ts_delta / NSEC_PER_USEC);
      |                    ~~^
      |                      |
      |                      long unsigned int
      |                    0

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

build link:
https://builds.tuxbuild.com/23HFntxpqyCx0RbiuadfGZ36Kym/

metadata:
  git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
  git commit: 734eb1fd2073f503f5c6b44f1c0d453ca6986b84
  git describe: v5.15.13
  toolchain: gcc-11
  kernel-config: https://builds.tuxbuild.com/23HFntxpqyCx0RbiuadfGZ36Kym/config


# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake

tuxmake --runtime podman --target-arch arm --toolchain gcc-10 \
 --kconfig https://builds.tuxbuild.com/23HFntxpqyCx0RbiuadfGZ36Kym/config \
  dtbs dtbs-legacy headers kernel kselftest kselftest-merge modules

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

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

end of thread, other threads:[~2022-01-06 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-06 10:09 txtimestamp.c:164:29: warning: format '0' expects argument of type 'long unsigned int', but argument 3 has type 'int64_t' {aka 'long long int'} [-Wformat=] Naresh Kamboju
2022-01-06 10:37 ` Greg Kroah-Hartman
2022-01-06 12:08   ` Naresh Kamboju
2022-01-06 12:26     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).