From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [android-common:android12-kiwi-5.10 284/284] userfaultfd.c:374:13: warning: 'uffd_test_ctx_clear' defined but not used
Date: Sun, 27 Sep 2026 10:13:54 +0200 [thread overview]
Message-ID: <202609271024.F2KgGL4a-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence bisect report"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com
Hi Axel,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android12-kiwi-5.10
head: 9b45a047ff0f19af584920a93cd8020b8538a5c3
commit: c2c081d009b3f82013b4c3fdcd6104340fef2201 [284/284] BACKPORT: FROMGIT: userfaultfd/selftests: reinitialize test context in each test
:::::: branch date: 2 days ago
:::::: commit date: 5 years ago
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260927/202609271024.F2KgGL4a-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/202609271024.F2KgGL4a-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/r/202609271024.F2KgGL4a-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^~~~
userfaultfd.c:976:25: note: in expansion of macro 'err'
976 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~
userfaultfd.c:979:47: error: expected ')' before 'PRId64'
979 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~~~~
userfaultfd.c:146:43: note: in definition of macro '_err'
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^~~
userfaultfd.c:979:17: note: in expansion of macro 'err'
979 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~
userfaultfd.c:979:47: note: 'PRId64' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
979 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~~~~
userfaultfd.c:146:43: note: in definition of macro '_err'
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^~~
userfaultfd.c:979:17: note: in expansion of macro 'err'
979 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~
userfaultfd.c:146:24: note: to match this '('
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^
userfaultfd.c:153:17: note: in expansion of macro '_err'
153 | _err(fmt, ##__VA_ARGS__); \
| ^~~~
userfaultfd.c:979:17: note: in expansion of macro 'err'
979 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~
userfaultfd.c:146:33: warning: spurious trailing '%' in format [-Wformat=]
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^~~~~~~~~
userfaultfd.c:153:17: note: in expansion of macro '_err'
153 | _err(fmt, ##__VA_ARGS__); \
| ^~~~
userfaultfd.c:979:17: note: in expansion of macro 'err'
979 | err("UFFDIO_ZEROPAGE error: %"PRId64,
| ^~~
userfaultfd.c: In function '__uffdio_zeropage':
userfaultfd.c:1003:55: error: expected ')' before 'PRId64'
1003 | err("UFFDIO_ZEROPAGE error: %"PRId64, (int64_t)res);
| ^~~~~~
userfaultfd.c:146:43: note: in definition of macro '_err'
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^~~
userfaultfd.c:1003:25: note: in expansion of macro 'err'
1003 | err("UFFDIO_ZEROPAGE error: %"PRId64, (int64_t)res);
| ^~~
userfaultfd.c:1003:55: note: 'PRId64' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
1003 | err("UFFDIO_ZEROPAGE error: %"PRId64, (int64_t)res);
| ^~~~~~
userfaultfd.c:146:43: note: in definition of macro '_err'
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^~~
userfaultfd.c:1003:25: note: in expansion of macro 'err'
1003 | err("UFFDIO_ZEROPAGE error: %"PRId64, (int64_t)res);
| ^~~
userfaultfd.c:146:24: note: to match this '('
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^
userfaultfd.c:153:17: note: in expansion of macro '_err'
153 | _err(fmt, ##__VA_ARGS__); \
| ^~~~
userfaultfd.c:1003:25: note: in expansion of macro 'err'
1003 | err("UFFDIO_ZEROPAGE error: %"PRId64, (int64_t)res);
| ^~~
userfaultfd.c:146:33: warning: spurious trailing '%' in format [-Wformat=]
146 | fprintf(stderr, "ERROR: " fmt, ##__VA_ARGS__); \
| ^~~~~~~~~
userfaultfd.c:153:17: note: in expansion of macro '_err'
153 | _err(fmt, ##__VA_ARGS__); \
| ^~~~
userfaultfd.c:1003:25: note: in expansion of macro 'err'
1003 | err("UFFDIO_ZEROPAGE error: %"PRId64, (int64_t)res);
| ^~~
userfaultfd.c: In function 'userfaultfd_zeropage_test':
userfaultfd.c:1037:9: error: implicit declaration of function 'uffd_test_ctx_init'; did you mean 'uffd_test_ctx_clear'? [-Wimplicit-function-declaration]
1037 | uffd_test_ctx_init(0);
| ^~~~~~~~~~~~~~~~~~
| uffd_test_ctx_clear
userfaultfd.c: In function 'userfaultfd_minor_test':
userfaultfd.c:1180:9: error: unknown type name 'uint8_t'
1180 | uint8_t expected_byte;
| ^~~~~~~
userfaultfd.c:1180:9: note: 'uint8_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
userfaultfd.c:1184:9: error: unknown type name 'uint64_t'
1184 | uint64_t features = UFFD_FEATURE_MINOR_HUGETLBFS;
| ^~~~~~~~
userfaultfd.c:1184:9: note: 'uint64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
userfaultfd.c:1192:9: error: implicit declaration of function 'uffd_test_ctx_init_ext'; did you mean 'uffd_test_ctx_clear'? [-Wimplicit-function-declaration]
1192 | uffd_test_ctx_init_ext(&features);
| ^~~~~~~~~~~~~~~~~~~~~~
| uffd_test_ctx_clear
userfaultfd.c:1216:58: error: 'uint8_t' undeclared (first use in this function)
1216 | memset(area_dst + (p * page_size), p % ((uint8_t)-1),
| ^~~~~~~
userfaultfd.c:1216:58: note: 'uint8_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
userfaultfd.c: At top level:
>> userfaultfd.c:374:13: warning: 'uffd_test_ctx_clear' defined but not used [-Wunused-function]
374 | static void uffd_test_ctx_clear(void)
| ^~~~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-27 8: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=202609271024.F2KgGL4a-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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