Skip to content

do not select KALLSYMS_ALL

Artem Bityutskiy linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2UBIFS: do not select KALLSYMS_ALLfs/ubifs/Kconfig+1 -12 replies
2/2UBI: do not select KALLSYMS_ALLdrivers/mtd/ubi/Kconfig+1 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRandy Dunlap
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] do not select KALLSYMS_ALL

UBI and UBIFS have an option to compile-in debugging support. When we enable debugging, compile-in various assertions, self-check functions and test modes. We also compile in additional verbose error messages, flash dumps and stack dumps.

When we have debugging support enabled, we want to have nice stackdumps, so we selected KALLSYMS_ALL. But this causes various problems like unmet direct dependencies, reported by Randy:

warning: (UBIFS_FS_DEBUG && LOCKDEP && LATENCYTOP) selects KALLSYMS_ALL which has unmet direct dependencies (DEBUG_KERNEL && KALLSYMS)

I quickly looked at KALLSYMS_ALL and it is not immediately clear what exactly is the difference between KALLSYMS and KALLSYMS_ALL. And there is this CONFIG_KALLSYMS_EXTRA_PASS symbol, which is declared "temporary workaround" in the Kconfig help. This shows that this stuff is messy.

I personally think KALLSYMS_ALL should be just merged with KALLSYMS and disappear - we should have only one option. CONFIG_KALLSYMS_EXTRA_PASS should die as well.

But I don't want to delve into that, I choose to just forget about KALLSYMS_ALL and select KALLSYMS in UBI/UBIFS which seems to be enough for us.

Artem.