From: kernel test robot <lkp@intel.com>
To: Feng Jiang <jiangfeng@kylinos.cn>,
pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu,
alex@ghiti.fr, akpm@linux-foundation.org, kees@kernel.org,
andy@kernel.org, ebiggers@kernel.org, martin.petersen@oracle.com,
herbert@gondor.apana.org.au, samuel.holland@sifive.com,
ajones@ventanamicro.com, charlie@rivosinc.com,
conor.dooley@microchip.com, linus.walleij@linaro.org,
nathan@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org
Subject: Re: [PATCH v6 1/8] lib/string_kunit: add correctness test for strlen()
Date: Thu, 29 Jan 2026 22:40:09 +0800 [thread overview]
Message-ID: <202601292204.xA8dUDti-lkp@intel.com> (raw)
In-Reply-To: <20260129070227.220866-2-jiangfeng@kylinos.cn>
Hi Feng,
kernel test robot noticed the following build errors:
[auto build test ERROR on kees/for-next/hardening]
[also build test ERROR on akpm-mm/mm-nonmm-unstable akpm-mm/mm-everything linus/master v6.19-rc7 next-20260128]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Feng-Jiang/lib-string_kunit-add-correctness-test-for-strlen/20260129-151036
base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening
patch link: https://lore.kernel.org/r/20260129070227.220866-2-jiangfeng%40kylinos.cn
patch subject: [PATCH v6 1/8] lib/string_kunit: add correctness test for strlen()
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20260129/202601292204.xA8dUDti-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260129/202601292204.xA8dUDti-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/oe-kbuild-all/202601292204.xA8dUDti-lkp@intel.com/
All errors (new ones prefixed by >>):
lib/tests/string_kunit.c: In function 'string_test_strlen':
>> lib/tests/string_kunit.c:116:20: error: implicit declaration of function 'PAGE_ALIGN'; did you mean 'PTR_ALIGN'? [-Wimplicit-function-declaration]
116 | buf_size = PAGE_ALIGN(STRING_TEST_MAX_LEN + STRING_TEST_MAX_OFFSET + 1);
| ^~~~~~~~~~
| PTR_ALIGN
vim +116 lib/tests/string_kunit.c
110
111 static void string_test_strlen(struct kunit *test)
112 {
113 size_t buf_size;
114 char *buf, *s;
115
> 116 buf_size = PAGE_ALIGN(STRING_TEST_MAX_LEN + STRING_TEST_MAX_OFFSET + 1);
117 buf = vmalloc(buf_size);
118 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf);
119
120 memset(buf, 'A', buf_size);
121
122 for (size_t offset = 0; offset < STRING_TEST_MAX_OFFSET; offset++) {
123 for (size_t len = 0; len <= STRING_TEST_MAX_LEN; len++) {
124 s = buf + buf_size - 1 - offset - len;
125 s[len] = '\0';
126 KUNIT_EXPECT_EQ_MSG(test, strlen(s), len,
127 "offset:%zu len:%zu", offset, len);
128 s[len] = 'A';
129 }
130 }
131
132 vfree(buf);
133 }
134
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-01-29 14:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-29 7:02 [PATCH v6 0/8] riscv: optimize string functions and add kunit tests Feng Jiang
2026-01-29 7:02 ` [PATCH v6 1/8] lib/string_kunit: add correctness test for strlen() Feng Jiang
2026-01-29 14:40 ` kernel test robot [this message]
2026-01-29 16:55 ` kernel test robot
2026-01-30 1:31 ` Feng Jiang
2026-01-29 7:02 ` [PATCH v6 2/8] lib/string_kunit: add correctness test for strnlen() Feng Jiang
2026-01-29 7:02 ` [PATCH v6 3/8] lib/string_kunit: add correctness test for strrchr() Feng Jiang
2026-01-29 7:02 ` [PATCH v6 4/8] lib/string_kunit: add performance benchmark for strlen() Feng Jiang
2026-01-29 7:02 ` [PATCH v6 5/8] lib/string_kunit: extend benchmarks to strnlen() and chr searches Feng Jiang
2026-01-29 7:02 ` [PATCH v6 6/8] riscv: lib: add strnlen() implementation Feng Jiang
2026-01-29 7:02 ` [PATCH v6 7/8] riscv: lib: add strchr() implementation Feng Jiang
2026-01-29 7:02 ` [PATCH v6 8/8] riscv: lib: add strrchr() implementation Feng Jiang
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=202601292204.xA8dUDti-lkp@intel.com \
--to=lkp@intel.com \
--cc=ajones@ventanamicro.com \
--cc=akpm@linux-foundation.org \
--cc=alex@ghiti.fr \
--cc=andy@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=charlie@rivosinc.com \
--cc=conor.dooley@microchip.com \
--cc=ebiggers@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=jiangfeng@kylinos.cn \
--cc=kees@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=martin.petersen@oracle.com \
--cc=nathan@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=samuel.holland@sifive.com \
/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