Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1276557

Re: [PATCH v2 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k

From Hannes Reinecke <hare@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k
Date 2015-11-24 16:10 +0100
Message-ID <qynoe-1lP-31@gated-at.bofh.it> (permalink)
References <qyioy-6mU-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/24/2015 10:42 AM, Rasmus Villemoes wrote:
> This reduces the impact of choosing CONFIG_SCSI_CONSTANTS by about 8KB.
> 
> 2dd951ecd511 ("scsi: Conditionally compile in constants.c") updated
> the Kconfig help text from 12KB to 75KB. The 12K predated git so was
> certainly outdated. But I'm not sure where the 75K comes from; using
> size(1) on a defconfig (with/without this config option) vmlinux shows
> a difference of about 47K, and 39K after these patches are applied. In
> any case, I've left the Kconfig text alone, since I'm not sure I'm
> counting the same way the 75K was computed (I'm fairly certain of the
> 8K delta, however).
> 
> Tested with a trivial module calling scsi_extd_sense_format with a few
> random known codes and comparing the result to the expected value.
> 
> v2: prepend patch to unsplit a few string literals for greppability,
> leave the NULL sentinel in the .c file in 2/3 (it's removed in 3/3
> either way).
> 
> Rasmus Villemoes (3):
>   scsi: make some Additional Sense strings more grep'able
>   scsi: move Additional Sense Codes to separate file
>   scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k
> 
>  drivers/scsi/constants.c   | 859 ++-------------------------------------------
>  drivers/scsi/sense_codes.h | 826 +++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 847 insertions(+), 838 deletions(-)
>  create mode 100644 drivers/scsi/sense_codes.h
> 
For the whole series:

Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by 8k Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-11-24 10:50 +0100
  [PATCH v2 1/3] scsi: make some Additional Sense strings more grep'able Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-11-24 10:50 +0100
  Re: [PATCH v2 0/3] scsi: reduce CONFIG_SCSI_CONSTANTS=y impact by  8k Hannes Reinecke <hare@suse.de> - 2015-11-24 16:10 +0100

csiph-web