Skip to content

memory: tegra: Fixes for COMPILE_TEST

Thierry Reding linux-tegra lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2memory: tegra: Add missing dependenciesdrivers/memory/tegra/Kconfig+2 -014 replies
2/2reset: Add compile-test stubsinclude/linux/reset-controller.h+22 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] memory: tegra: Fixes for COMPILE_TEST

From: Thierry Reding <[email protected]>

After COMPILE_TEST was enabled for the Tegra MC driver, Krzysztof reported that this can fail to build on x86 configurations because some dependencies are not explicitly pulled in.

Fix this by adding missing dependencies for OF_RESERVED_MEM and by providing compile-test stubs for reset controller registration API.

Note that I was initially trying to fix the reset controller problem by selecting RESET_CONTROLLER. This works but is discouraged because it can create circular dependencies. And sure enough, changing that "select" to a "depends on" triggered a circular dependency because there are already quite a few drivers that select RESET_CONTROLLER. I suppose that's fine as long as everybody uses "select" rather than "depends on", but it is not a very robust solution.

Dmitry and Krzysztof were both in favour of adding the reset controller stubs, so that's what I went with.

Thierry

Thierry Reding (2):
memory: tegra: Add missing dependencies
reset: Add compile-test stubs

 drivers/memory/tegra/Kconfig     |  2 ++
 include/linux/reset-controller.h | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
Signature · 1 line
2.31.1