mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Cole <elenstev@mesatop.com>
To: Adrian Bunk <bunk@fs.tum.de>
Cc: Alan Cox <alan@redhat.com>, Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.20-pre5-ac4
Date: 06 Sep 2002 10:11:45 -0600	[thread overview]
Message-ID: <1031328705.2799.168.camel@spc9.esa.lanl.gov> (raw)
In-Reply-To: <Pine.NEB.4.44.0209061735390.7218-100000@mimas.fachschaften.tu-muenchen.de>

[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]

On Fri, 2002-09-06 at 09:40, Adrian Bunk wrote:
> 
> FYI:
> 
> while doing a "make oldconfig" I noticed that there are some new options
> without a Configure.help entry:
> 
> CONFIG_X86_LONGHAUL_SCALE_VOLTAGE
> CONFIG_SUMMIT
> CONFIG_HOTPLUG_PCI_H2999
> CONFIG_BLK_DEV_IDECD_BAILOUT
> CONFIG_BLK_DEV_GENERIC
> CONFIG_BLK_DEV_NFORCE
> CONFIG_BLK_DEV_PDC202XX_OLD
> CONFIG_BLK_DEV_PDC202XX_NEW
> CONFIG_BLK_DEV_SIIMAGE
> CONFIG_ALIM1535_WDT
> CONFIG_AMD7XX_TCO
> CONFIG_AMD_PM768
> CONFIG_VIDEO_LS220
> CONFIG_VIDEO_MARGI
> CONFIG_FB_RADEON_VAIO_LCD
> CONFIG_USB_SERIAL_KEYSPAN_USA19QW
> CONFIG_USB_SERIAL_KEYSPAN_USA19QI
> CONFIG_USB_LCD
> 

For an even longer list, run the attached ach (Analyse Configure.help)
script.  There are some false positives, but this may be a help to
someone.  The list of options without help entries will be in
ach_no_help.

[steven@spc9 linux-2.4.20-pre5-ac4]$ ach
Number of config options (total)                    :    2831
Number of config options (setable)                  :    2625
Number of config options (derived)                  :     210
Number of config options with help text (total)     :    2451
Number of config options with help text (unique)    :    2446
Number of config options with duplicated help text  :       5
Number of config options without any help text      :     304
Number of help entries without valid config options :     125

Steven


[-- Attachment #2: ach --]
[-- Type: text/x-sh, Size: 2361 bytes --]

#!/bin/sh
# Analyse Documentation/Configure.help
# Adopted from a script by Paul Gortmaker 01/2001.
# Modified greatly by Steven Cole 03/2001.
#
# Please note that config options written to ach_orphans may well
# be harbingers of coming attractions, having been added to Configure.help
# prior to inclusion in a [cC]onfig.in file.
# That is why this script does not remove those entries,
# as did Paul's, on which this script is based.
# Many, however are just old cruft.
#
# Run this from the top of your tree.
# The ach script will make files prefixed with ach_ for easy deletion.

if [ ! -r Documentation/Configure.help ]; then
	echo Cant read or find Documentation/Configure.help
	exit
fi

FILES=`find . -name [cC]onfig.in`

grep '^CONFIG_[0-9A-Za-z_]' Documentation/Configure.help|\
	sort|uniq>ach_unique_help

grep '^CONFIG_[0-9A-Za-z_]' Documentation/Configure.help|\
	sort>ach_all_help

# Tab and space inside [  ]
cat $FILES|grep -v "^[ 	]*#"| \
	sed 's/.*[ 	]\(CONFIG_[A-Za-z0-9_]\+\)[ 	]*.*$/\1/;t;d'|\
	sort|uniq>ach_all_options

cat $FILES|grep -v define_|grep -v "^#"| \
	sed 's/.*[ 	]\(CONFIG_[A-Za-z0-9_]\+\)[ 	]*.*$/\1/;t;d'|\
	sort|uniq>ach_setable_options

diff -u ach_setable_options ach_unique_help|\
	grep '^\+CONFIG_'|sed 's/^\+//'>ach_orphans

diff -u ach_unique_help ach_setable_options|grep '^\+'|grep CONFIG|sed 's/+//'>ach_no_help

diff -u ach_setable_options ach_all_options|grep +CONFIG|sed 's/+//'>ach_derived_options

diff -u ach_unique_help ach_all_help|grep +CONFIG|sed 's/+//'|uniq>ach_dup_options

echo -ne 'Number of config options (total)                    : '
cat ach_all_options | wc -l

echo -ne 'Number of config options (setable)                  : '
cat ach_setable_options | wc -l

echo -ne 'Number of config options (derived)                  : '
cat ach_derived_options | wc -l

echo -ne 'Number of config options with help text (total)     : '
cat ach_all_help | wc -l

echo -ne 'Number of config options with help text (unique)    : '
cat ach_unique_help | wc -l

echo -ne 'Number of config options with duplicated help text  : '
cat ach_dup_options | wc -l

echo -ne 'Number of config options without any help text      : '
cat ach_no_help | wc -l

echo -ne 'Number of help entries without valid config options : '
cat ach_orphans | wc -l


  reply	other threads:[~2002-09-06 16:10 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-06 15:00 Alan Cox
2002-09-06 15:40 ` Adrian Bunk
2002-09-06 16:11   ` Steven Cole [this message]
2002-09-06 18:40 ` Hans-Peter Jansen
2002-09-07 21:28 ` Hans-Peter Jansen
2002-09-07 21:42   ` Adrian Bunk
2002-09-08 11:01   ` Alexander Hoogerhuis
2002-09-08 11:23     ` Adrian Bunk
2002-09-08 11:14       ` Alexander Hoogerhuis
2002-09-08 12:32         ` Hans-Peter Jansen
2002-09-08 12:55       ` Alan Cox
2002-09-08 13:36         ` Hans-Peter Jansen
2002-09-08 15:12           ` Zwane Mwaikambo
2002-09-08 15:23         ` Alexander Hoogerhuis
2002-09-08 17:10           ` Alan Cox
2002-09-08 18:02             ` Rudmer van Dijk
2002-09-08 17:03         ` Alexander Hoogerhuis
2002-09-16 22:12         ` Alexander Hoogerhuis
2002-09-17  7:29           ` Jens Axboe
2002-09-09 14:40     ` Scott Henson

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=1031328705.2799.168.camel@spc9.esa.lanl.gov \
    --to=elenstev@mesatop.com \
    --cc=alan@redhat.com \
    --cc=bunk@fs.tum.de \
    --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®