]> git.baikalelectronics.ru Git - kernel.git/commit
lib/string_helpers.c: constify static arrays
authorMathias Krause <minipli@googlemail.com>
Wed, 6 Aug 2014 23:09:31 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:25 +0000 (18:01 -0700)
commit3241b5b2d75f776c7bbe867e4a65a75fb714634d
tree8ce718779711e5f3be803a86cea30de90963c251
parent39e24c6ef33c55868d26d87c289b1680ade3a8ab
lib/string_helpers.c: constify static arrays

Complement commit 4604337e097f ("lib/string_helpers.c: make arrays
static") by making the arrays const -- not only pointing to const
strings.  This moves them out of the data section to the r/o data
section:

   text    data     bss     dec     hex filename
   1150     176       0    1326     52e lib/string_helpers.old.o
   1326       0       0    1326     52e lib/string_helpers.new.o

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/string_helpers.c