All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] test: pr_cont_test.o depends on CONFIG_LOG=y
@ 2021-01-27 11:09 Heinrich Schuchardt
  2021-01-30 19:21 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2021-01-27 11:09 UTC (permalink / raw)
  To: u-boot

Compiling wandboard_defconfig with CONFIG_UT_LOG=y leads to a build error:

test/log/pr_cont_test.c: In function ?log_test_pr_cont?:
test/log/pr_cont_test.c:28:14: error:
?gd_t? {aka ?volatile struct global_data?} has no member named ?log_fmt?
 ?log_fmt = gd->log_fmt;

We do not want to let CONFIG_UT_LOG depend on CONFIG_LOG=y because we have
tests for logging functions called with CONFIG_LOG=n.

Fix the build dependency.

Reported-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 test/log/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/log/Makefile b/test/log/Makefile
index afdafa502a..3f09deb644 100644
--- a/test/log/Makefile
+++ b/test/log/Makefile
@@ -8,7 +8,6 @@ obj-$(CONFIG_CMD_LOG) += log_filter.o
 ifdef CONFIG_UT_LOG

 obj-y += test-main.o
-obj-y += pr_cont_test.o

 ifdef CONFIG_SANDBOX
 obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
@@ -16,6 +15,7 @@ obj-$(CONFIG_LOG_SYSLOG) += syslog_test_ndebug.o
 endif

 ifdef CONFIG_LOG
+obj-y += pr_cont_test.o
 obj-$(CONFIG_CONSOLE_RECORD) += cont_test.o
 else
 obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
--
2.29.2

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

* [PATCH 1/1] test: pr_cont_test.o depends on CONFIG_LOG=y
  2021-01-27 11:09 [PATCH 1/1] test: pr_cont_test.o depends on CONFIG_LOG=y Heinrich Schuchardt
@ 2021-01-30 19:21 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2021-01-30 19:21 UTC (permalink / raw)
  To: u-boot

On Wed, Jan 27, 2021 at 12:09:46PM +0100, Heinrich Schuchardt wrote:

> Compiling wandboard_defconfig with CONFIG_UT_LOG=y leads to a build error:
> 
> test/log/pr_cont_test.c: In function ?log_test_pr_cont?:
> test/log/pr_cont_test.c:28:14: error:
> ?gd_t? {aka ?volatile struct global_data?} has no member named ?log_fmt?
>  ?log_fmt = gd->log_fmt;
> 
> We do not want to let CONFIG_UT_LOG depend on CONFIG_LOG=y because we have
> tests for logging functions called with CONFIG_LOG=n.
> 
> Fix the build dependency.
> 
> Reported-by: Kever Yang <kever.yang@rock-chips.com>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210130/1fa3b4a3/attachment.sig>

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

end of thread, other threads:[~2021-01-30 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 11:09 [PATCH 1/1] test: pr_cont_test.o depends on CONFIG_LOG=y Heinrich Schuchardt
2021-01-30 19:21 ` Tom Rini

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.