From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: CONFIG variables: defined but unused
Date: Wed, 24 Oct 2007 15:17:44 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0710241512330.1108@localhost.localdomain> (raw)
at the moment, i'm running a quick-and-dirty script that identifies
Kconfig variables that are defined in a Kconfig file somewhere but
don't appear to be used. this will take a while to run, but here's
the first few variables printed:
>>>>> 64BIT_CONTEXT
arch/mips/Kconfig:config 64BIT_CONTEXT
>>>>> ACPI_DEBUG_FUNC_TRACE
drivers/acpi/Kconfig:config ACPI_DEBUG_FUNC_TRACE
>>>>> ADB_KEYBOARD
arch/m68k/Kconfig:config ADB_KEYBOARD
drivers/macintosh/adbhid.c:#define ADB_KEYBOARD_UNKNOWN 0
drivers/macintosh/adbhid.c:#define ADB_KEYBOARD_ANSI 0x0100
drivers/macintosh/adbhid.c:#define ADB_KEYBOARD_ISO 0x0200
drivers/macintosh/adbhid.c:#define ADB_KEYBOARD_JIS 0x0300
drivers/macintosh/adbhid.c: case ADB_KEYBOARD:
drivers/macintosh/adbhid.c: input_dev->id.version = ADB_KEYBOARD_UNKNOWN;
drivers/macintosh/adbhid.c: input_dev->id.version = ADB_KEYBOARD_ANSI;
drivers/macintosh/adbhid.c: input_dev->id.version = ADB_KEYBOARD_ISO;
drivers/macintosh/adbhid.c: input_dev->id.version = ADB_KEYBOARD_JIS;
drivers/macintosh/adbhid.c: if (default_id == ADB_KEYBOARD) {
drivers/macintosh/adbhid.c: adb_register(ADB_KEYBOARD, 0, &keyboard_ids, adbhid_keyboard_input);
include/linux/adb.h:#define ADB_KEYBOARD 2
>>>>> AEDSP16_MSS
sound/oss/Kconfig:config AEDSP16_MSS
sound/oss/aedsp16.c:#if defined(CONFIG_SOUND_AEDSP16_SBPRO) && defined(CONFIG_SOUND_AEDSP16_MSS)
>>>>> AEDSP16_SBPRO
sound/oss/Kconfig:config AEDSP16_SBPRO
sound/oss/aedsp16.c:#if defined(CONFIG_SOUND_AEDSP16_SBPRO) && defined(CONFIG_SOUND_AEDSP16_MSS)
>>>>> ALPHA_EV7
arch/alpha/Kconfig:config ALPHA_EV7
... etc etc ...
just from the above, you can see the variety of results:
* both 64BIT_CONTEXT and ACPI_DEBUG_FUNC_TRACE are defined but are
apparently never referenced anywhere
* ADB_KEYBOARD is defined but apparently ignored in favour of some
hard-coded constants
* AEDSP16_MSS and AEDSP16_SBPRO appear to be typoes, but they're part
of OSS which is going away so who cares?
* ALPHA_EV7 appears to be unused
... and on and on, and i'm not even out of the A's yet. i suspect
the script will finish by this evening sometime.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://crashcourse.ca
========================================================================
reply other threads:[~2007-10-24 19:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0710241512330.1108@localhost.localdomain \
--to=rpjday@crashcourse.ca \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®