From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [zen-kernel-zen-kernel:5.13/futex2 13/19] futex2_sizes.c:65:10: warning: comparison between pointer and integer
Date: Mon, 19 Jul 2021 16:06:27 +0800 [thread overview]
Message-ID: <202107191602.bRH3CPST-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2965 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.13/futex2
head: db649ce1f5de12432be5bfedd8388eacc2f85efc
commit: 109091dbebdb22d9c1f926e501dad6a7377e5296 [13/19] selftests: futex2: Add futex sizes test
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/zen-kernel/zen-kernel/commit/109091dbebdb22d9c1f926e501dad6a7377e5296
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.13/futex2
git checkout 109091dbebdb22d9c1f926e501dad6a7377e5296
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash -C tools/testing/selftests install
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
futex2_sizes.c: In function 'waiterfn':
>> futex2_sizes.c:65:10: warning: comparison between pointer and integer
65 | if (ret == ERROR)
| ^~
In file included from futex2_sizes.c:27:
>> ../include/logging.h:135:20: warning: format '%d' expects a matching 'int' argument [-Wformat=]
135 | fprintf(stderr, "\t%s: %s: "message, \
| ^~~~~~~~~~~~
futex2_sizes.c:66:3: note: in expansion of macro 'error'
66 | error("waiter failed %d errno %d\n", ret, errno);
| ^~~~~
../include/logging.h:138:20: warning: format '%d' expects a matching 'int' argument [-Wformat=]
138 | fprintf(stderr, "\t%s: "message, ERROR, ##args); \
| ^~~~~~~~
futex2_sizes.c:66:3: note: in expansion of macro 'error'
66 | error("waiter failed %d errno %d\n", ret, errno);
| ^~~~~
futex2_sizes.c: In function 'main':
futex2_sizes.c:98:12: warning: unused variable 'waiter' [-Wunused-variable]
98 | pthread_t waiter;
| ^~~~~~
futex2_sizes.c:97:12: warning: unused variable 'f_private' [-Wunused-variable]
97 | u_int32_t f_private = 0;
| ^~~~~~~~~
futex2_sizes.c:96:34: warning: unused variable 'shm_id' [-Wunused-variable]
96 | int res, ret = RET_PASS, fd, c, shm_id;
| ^~~~~~
futex2_sizes.c:96:27: warning: unused variable 'fd' [-Wunused-variable]
96 | int res, ret = RET_PASS, fd, c, shm_id;
| ^~
futex2_sizes.c:96:6: warning: unused variable 'res' [-Wunused-variable]
96 | int res, ret = RET_PASS, fd, c, shm_id;
| ^~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41878 bytes --]
reply other threads:[~2021-07-19 8:06 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=202107191602.bRH3CPST-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.