From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Kees Cook <kees@kernel.org>
Cc: "David Gow" <davidgow@google.com>,
"Gabriela Bittencourt" <gbittencourt@lkcamp.dev>,
"Pedro Orlando" <porlando@lkcamp.dev>,
"Danilo Pereira" <dpereira@lkcamp.dev>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Rae Moar" <rmoar@google.com>,
"Luis Felipe Hernandez" <luis.hernandez093@gmail.com>,
"Nicolas Pitre" <npitre@baylibre.com>,
"Diego Vieira" <diego.daniel.professional@gmail.com>,
"Steven Rostedt (Google)" <rostedt@goodmis.org>,
"Jakub Kicinski" <kuba@kernel.org>,
"Masami Hiramatsu (Google)" <mhiramat@kernel.org>,
"Vlastimil Babka" <vbabka@suse.cz>,
"Bruno Sobreira França" <brunofrancadevsec@gmail.com>,
linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org,
linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com,
"Thorsten Leemhuis" <linux@leemhuis.info>
Subject: Re: [PATCH v2 6/6] unicode: kunit: change tests filename and path
Date: Wed, 12 Feb 2025 10:40:34 -0500 [thread overview]
Message-ID: <87pljnw4r1.fsf@mailhost.krisman.be> (raw)
In-Reply-To: <20250211003136.2860503-6-kees@kernel.org> (Kees Cook's message of "Mon, 10 Feb 2025 16:31:34 -0800")
Kees Cook <kees@kernel.org> writes:
> From: Gabriela Bittencourt <gbittencourt@lkcamp.dev>
>
> Change utf8 kunit test filename and path to follow the style
> convention on Documentation/dev-tools/kunit/style.rst
>
> Co-developed-by: Pedro Orlando <porlando@lkcamp.dev>
> Signed-off-by: Pedro Orlando <porlando@lkcamp.dev>
> Co-developed-by: Danilo Pereira <dpereira@lkcamp.dev>
> Signed-off-by: Danilo Pereira <dpereira@lkcamp.dev>
> Signed-off-by: Gabriela Bittencourt <gbittencourt@lkcamp.dev>
> Reviewed-by: David Gow <davidgow@google.com>
> Acked-by: Gabriel Krisman Bertazi <krisman@suse.de>
> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
> Reviewed-by: Rae Moar <rmoar@google.com>
> Link: https://lore.kernel.org/r/20241202075545.3648096-7-davidgow@google.com
> Signed-off-by: Kees Cook <kees@kernel.org>
Hi Kees,
Last time this was submitted, I have reported this patch breaks the
build when the kunit is built as a module, and it wasn't fixed before
resubmission. Thorsten Leemhuis just reported the same issue is now on
linux-next and I confirmed it is still there.
https://lore.kernel.org/lkml/2c26c5e4-9cf3-4020-b0be-637dc826b4e9@leemhuis.info/T/#m2e2ddb3b2600274e5eae50b93ea821914dc85f20
The build error is:
fs/unicode/tests/utf8_kunit.c:11:10: fatal error: utf8n.h: No such file or directory
11 | #include "utf8n.h"
| ^~~~~~~~~
The problem is that the patch moves utf8_kunit.c into tests/ but doesn't
fix the include line above. Can you fix it in your tree since it is
already merged?
Thanks,
> ---
> fs/unicode/Makefile | 2 +-
> fs/unicode/{ => tests}/.kunitconfig | 0
> fs/unicode/{utf8-selftest.c => tests/utf8_kunit.c} | 0
> 3 files changed, 1 insertion(+), 1 deletion(-)
> rename fs/unicode/{ => tests}/.kunitconfig (100%)
> rename fs/unicode/{utf8-selftest.c => tests/utf8_kunit.c} (100%)
>
> diff --git a/fs/unicode/Makefile b/fs/unicode/Makefile
> index 37bbcbc628a1..d95be7fb9f6b 100644
> --- a/fs/unicode/Makefile
> +++ b/fs/unicode/Makefile
> @@ -4,7 +4,7 @@ ifneq ($(CONFIG_UNICODE),)
> obj-y += unicode.o
> endif
> obj-$(CONFIG_UNICODE) += utf8data.o
> -obj-$(CONFIG_UNICODE_NORMALIZATION_KUNIT_TEST) += utf8-selftest.o
> +obj-$(CONFIG_UNICODE_NORMALIZATION_KUNIT_TEST) += tests/utf8_kunit.o
>
> unicode-y := utf8-norm.o utf8-core.o
>
> diff --git a/fs/unicode/.kunitconfig b/fs/unicode/tests/.kunitconfig
> similarity index 100%
> rename from fs/unicode/.kunitconfig
> rename to fs/unicode/tests/.kunitconfig
> diff --git a/fs/unicode/utf8-selftest.c b/fs/unicode/tests/utf8_kunit.c
> similarity index 100%
> rename from fs/unicode/utf8-selftest.c
> rename to fs/unicode/tests/utf8_kunit.c
--
Gabriel Krisman Bertazi
next prev parent reply other threads:[~2025-02-12 15:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 0:31 [PATCH v2 0/6] KUnit test moves / renames Kees Cook
2025-02-11 0:31 ` [PATCH v2 1/6] lib: math: Move KUnit tests into tests/ subdir Kees Cook
2025-02-11 0:31 ` [PATCH v2 2/6] lib/math: Add int_log test suite Kees Cook
2025-02-11 0:31 ` [PATCH v2 3/6] lib: Move KUnit tests into tests/ subdirectory Kees Cook
2025-02-11 0:31 ` [PATCH v2 4/6] lib/tests/kfifo_kunit.c: add tests for the kfifo structure Kees Cook
2025-02-11 0:31 ` [PATCH v2 5/6] unicode: kunit: refactor selftest to kunit tests Kees Cook
2025-02-11 0:31 ` [PATCH v2 6/6] unicode: kunit: change tests filename and path Kees Cook
2025-02-12 15:40 ` Gabriel Krisman Bertazi [this message]
2025-02-12 22:01 ` Kees Cook
2025-02-11 1:11 ` [PATCH v2 0/6] KUnit test moves / renames Andrew Morton
2025-02-11 2:05 ` Kees Cook
2025-02-11 7:15 ` David Gow
-- strict thread matches above, loose matches on Subject: below --
2024-12-02 7:55 [PATCH v2 0/6] [PATCH " David Gow
2024-12-02 7:55 ` [PATCH v2 6/6] unicode: kunit: change tests filename and path David Gow
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=87pljnw4r1.fsf@mailhost.krisman.be \
--to=krisman@suse.de \
--cc=brunofrancadevsec@gmail.com \
--cc=davidgow@google.com \
--cc=diego.daniel.professional@gmail.com \
--cc=dpereira@lkcamp.dev \
--cc=gbittencourt@lkcamp.dev \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=kunit-dev@googlegroups.com \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=luis.hernandez093@gmail.com \
--cc=mhiramat@kernel.org \
--cc=npitre@baylibre.com \
--cc=porlando@lkcamp.dev \
--cc=rmoar@google.com \
--cc=rostedt@goodmis.org \
--cc=skhan@linuxfoundation.org \
--cc=vbabka@suse.cz \
/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.