linux-kernel-mentees.lists.linuxfoundation.org archive mirror
 help / color / mirror / Atom feed
* patch suggestion: Kconfig symbols
@ 2021-07-27  0:21 Randy Dunlap
  2021-07-27  0:33 ` Shuah Khan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Randy Dunlap @ 2021-07-27  0:21 UTC (permalink / raw)
  To: linux-kernel-mentees

Hi,

Running scripts/checkkconfigsymbols.py reports several hundred (maybe thousand)
Kconfig symbols that are used questionably. Lots of these are false positives
but lots of the remainder could use some cleaning up.

One example:

DSCC4
Referencing files: arch/mips/configs/gpr_defconfig, arch/mips/configs/mtx1_defconfig, drivers/net/wan/Kconfig
Similar symbols: SCC, DMASCC, CRC4, CRC64

There is no longer a Kconfig entry for DSCC4 (it has been deleted, but some
references to it were not deleted) -- and this is not a typo
of one of the "Similar symbols" listed here.

So all of these references to DSCC4 can be (should be) deleted.
And of course, Cc: the GENERIC HDLC (WAN) DRIVERS maintainer on such a patch.


False positive example:

XCHOFFLD_MEM
Referencing files: drivers/scsi/qla2xxx/qla_mbx.c
Similar symbols: OF_PMEM, CXL_MEM, CXL_PMEM

The Referencing source file does this:
#define CONFIG_XCHOFFLD_MEM	0x3

which is legitimate, so no change is needed.


Comment example:

IA32_SUPPORT
Referencing files: arch/x86/include/asm/ia32.h
Similar symbols: MEDIA_SUPPORT, EDAC_SUPPORT, IOMMU_SUPPORT, USB_SUPPORT, I2C_PARPORT, NIOS2_FPU_SUPPORT, NIOS2_CDX_SUPPORT, NIOS2_BMX_SUPPORT, MEDIA_USB_SUPPORT, MEDIA_SDR_SUPPORT

The Referencing file has:
#endif /* !CONFIG_IA32_SUPPORT */

and this #ifdef block was begun with
#ifdef CONFIG_IA32_EMULATION

so the comment on the #endif line is incorrect.
This could be fixed but it's not a big deal just to leave it as is.

So there is lots here that could be done, but there are also lots of
false positives here that don't need to be touched.

-- 
~Randy

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

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

end of thread, other threads:[~2021-07-29 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27  0:21 patch suggestion: Kconfig symbols Randy Dunlap
2021-07-27  0:33 ` Shuah Khan
2021-07-28 15:37 ` Joe Perches
2021-07-28 19:41   ` Randy Dunlap
2021-07-28 21:30     ` Joe Perches
2021-07-28 22:55       ` Randy Dunlap
2021-07-29  9:55   ` Greg KH
2021-07-29 15:02 ` Lukas Bulwahn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).