User Tools

Site Tools


u-boot_unused_configs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
u-boot_unused_configs [2019/04/13 11:25]
rpjday [Example]
u-boot_unused_configs [2019/04/13 11:29] (current)
rpjday [False positives]
Line 58: Line 58:
  
 so I can clearly improve the script. so I can clearly improve the script.
 +
 +Also, I forgot to take into account that one could "​select"​ a Kconfig option, whereupon that Kconfig option could then select further options, without ever testing the option itself. Here's an example:
 +
 +<​code>​
 +>>>>>​ TEGRA_COMMON
 +arch/​arm/​mach-tegra/​Kconfig:​23:​config TEGRA_COMMON
 +arch/​arm/​mach-tegra/​Kconfig:​58:​ select TEGRA_COMMON
 +arch/​arm/​mach-tegra/​Kconfig:​66:​ select TEGRA_COMMON
 +</​code>​
 +
 +My script flags that because there is no occurrence of "​CONFIG_TEGRA_COMMON"​ but, of course, in this case, there doesn'​t have to be. Another improvement to be made.
  
 ===== Example ===== ===== Example =====
Line 145: Line 156:
 ===== Example: arch/arm ===== ===== Example: arch/arm =====
  
-As a second example, I listed all apparently unused Kbuild options under ''​arch/​arm''​:+As a second example, I listed all apparently unused Kbuild options under ''​arch/​arm''​. Note how, mixed in with each example is a tree-wide scan for that symbol.
  
 <​code>​ <​code>​
u-boot_unused_configs.1555154701.txt.gz ยท Last modified: 2019/04/13 11:25 by rpjday