From: Joe Perches <joe@perches•com>
To: linux-kernel@vger•kernel.org
Cc: Amit Kumar Salecha <amit.salecha@qlogic•com>,
linux-fbdev@vger•kernel.org, Greg Kroah-Hartman <gregkh@suse•de>,
James Smart <james.smart@emulex•com>,
linux-mips@linux-mips•org, "VMware, Inc." <pv-drivers@vmware•com>,
PJ Waskiewicz <peter.p.waskiewicz.jr@intel•com>,
Shreyas Bhatewara <sbhatewara@vmware•com>,
alsa-devel@alsa-project•org, Jaroslav Kysela <perex@perex•cz>,
"J. Bruce Fields" <bfields@fieldses•org>,
"James E.J. Bottomley" <James.Bottomley@suse•de>,
Paul Mackerras <paulus@samba•org>,
linux-i2c@vger•kernel.org, Brett Rudley <brudley@broadcom•com>,
sparclinux@vger•kernel.org,
Martin Schwidefsky <schwidefsky@de•ibm.com>,
devel@driverdev•osuosl.org, linux-s390@vger•kernel.org,
linux-acpi@vger•kernel.org, linux-scsi@vger•kernel.org,
Florian Tobias Schandinat <FlorianSchandinat@gmx•de>,
e1000-devel@lists•sourceforge.net,
Trond Myklebust <Trond.Myklebust@netapp•com>,
Jesse Brandeburg <jesse.brandeburg@intel•com>,
Neil Brown <neilb@suse•de>,
Jeff Kirsher <jeffrey.t.kirsher@intel•com>,
linux-wireless@vger•kernel.org, Ingo Molnar <mingo@elte•hu>,
linux-usb@vger•kernel.org, Len Brown <lenb@kernel•org>,
Alex Duyck <alexander.h.duyck@intel•com>,
Peter Zijlstra <a.p.zijlstra@chello•nl>,
Henry Ptasinski <henryp@broadcom•com>,
Heiko Carstens <heiko.carstens@de•ibm.com>,
Thomas Winischhofer <thomas@winischhofer•net>,
Mauro Carvalho Chehab <mchehab@infradead•org>,
Arnaldo Carvalho de Melo <acme@redhat•com>,
"Jean Delvare \(PC drivers, core\)" <khali@linux-fr•org>,
mjpeg-users@lists•sourceforge.net,
"Ben Dooks \(embedded platforms\)" <ben-linux@fluff•org>,
linux-nfs@vger•kernel.org, linux-arm-kernel@lists•infradead.org,
Neela Syam Kolli <megaraidlinux@lsi•com>,
Karsten Keil <isdn@linux-pingi•de>,
Linus Walleij <linus.walleij@stericsson•com>,
netdev@vger•kernel.org,
Anirban Chakraborty <anirban.chakraborty@qlogic•com>,
Bruce Allan <bruce.w.allan@intel•com>,
Nohee Ko <noheek@broadcom•com>,
Ralf Baechle <ralf@linux-mips•org>,
Joseph Chan <JosephChan@via•com.tw>,
John Ronciak <john.ronciak@intel•com>,
Takashi Iwai <tiwai@suse•de>,
linux-driver@qlogic•com, linux390@de•ibm.com,
linux-media@vger•kernel.org, linuxppc-dev@lists•ozlabs.org,
"David S. Miller" <davem@davemloft•net>
Subject: [PATCH 00/25] treewide-next: Use static const char arrays
Date: Mon, 13 Sep 2010 12:47:38 -0700 [thread overview]
Message-ID: <cover.1284406638.git.joe@perches.com> (raw)
Using static const char foo[] = "bar" can save some
code and text space, so change the places where it's possible.
Also change the places that use
char foo[] = "barX";
...
foo[3] = value + '0';
where X is typically changed
char foo[sizeof("barX")];
...
sprintf(foo, "bar%c", value + '0');
Joe Perches (25):
arch/mips: Use static const char arrays
arch/powerpc: Use static const char arrays
drivers/acpi: Use static const char arrays
drivers/char: Use static const char arrays
drivers/i2c: Use static const char arrays
drivers/isdn: Use static const char arrays
drivers/media: Use static const char arrays
drivers/net/atl1c: Use static const char arrays
drivers/net/atl1e: Use static const char arrays
drivers/net/(intel): Use static const char arrays
drivers/net/netxen: Use static const char arrays
drivers/net/qlcnic: Use static const char arrays
drivers/net/spider_net.c: Use static const char arrays
drivers/net/vnxnet3: Use static const char arrays
drivers/net/wireless/ipw2x00: Use static const char arrays
drivers/s390/char: Use static const char arrays
drivers/scsi: Use static const char arrays
drivers/serial/suncore.c: Use static const char arrays
drivers/staging: Use static const char arrays
drivers/usb: Use static const char arrays
drivers/video: Use static const char arrays
net/dsa: Use static const char arrays
net/sunrpc: Use static const char arrays
sound: Use static const char arrays
tools/perf/util: Use static const char arrays
arch/mips/pnx8550/common/reset.c | 4 ++--
arch/powerpc/boot/addnote.c | 4 ++--
arch/powerpc/boot/cuboot-c2k.c | 4 ++--
arch/powerpc/kernel/irq.c | 2 +-
drivers/acpi/sleep.c | 4 ++--
drivers/char/hvc_vio.c | 2 +-
drivers/i2c/busses/i2c-stu300.c | 4 ++--
drivers/isdn/hysdn/hycapi.c | 2 +-
drivers/isdn/mISDN/dsp_cmx.c | 2 +-
drivers/media/video/zoran/zoran_device.c | 5 ++---
drivers/net/atl1c/atl1c.h | 4 ++--
drivers/net/atl1c/atl1c_main.c | 4 ++--
drivers/net/atl1e/atl1e.h | 4 ++--
drivers/net/atl1e/atl1e_main.c | 4 ++--
drivers/net/e1000/e1000.h | 2 +-
drivers/net/e1000/e1000_main.c | 4 ++--
drivers/net/e1000e/e1000.h | 2 +-
drivers/net/e1000e/netdev.c | 2 +-
drivers/net/igb/igb.h | 4 ++--
drivers/net/igb/igb_main.c | 4 ++--
drivers/net/igbvf/igbvf.h | 2 +-
drivers/net/igbvf/netdev.c | 2 +-
drivers/net/ixgb/ixgb.h | 2 +-
drivers/net/ixgb/ixgb_main.c | 2 +-
drivers/net/ixgbe/ixgbe.h | 2 +-
drivers/net/ixgbe/ixgbe_main.c | 4 ++--
drivers/net/ixgbevf/ixgbevf.h | 2 +-
drivers/net/ixgbevf/ixgbevf_main.c | 2 +-
drivers/net/netxen/netxen_nic.h | 2 +-
drivers/net/netxen/netxen_nic_main.c | 2 +-
drivers/net/qlcnic/qlcnic.h | 2 +-
drivers/net/qlcnic/qlcnic_main.c | 2 +-
drivers/net/spider_net.c | 2 +-
drivers/net/vmxnet3/vmxnet3_drv.c | 2 +-
drivers/net/vmxnet3/vmxnet3_int.h | 2 +-
drivers/net/wireless/ipw2x00/ipw2100.c | 2 +-
drivers/net/wireless/ipw2x00/ipw2200.c | 2 +-
drivers/net/wireless/ipw2x00/libipw_module.c | 2 +-
drivers/s390/char/vmlogrdr.c | 4 ++--
drivers/scsi/bnx2i/bnx2i_hwi.c | 6 +++---
drivers/scsi/lpfc/lpfc_init.c | 2 +-
drivers/scsi/megaraid/megaraid_mbox.c | 6 +++---
drivers/serial/suncore.c | 4 ++--
drivers/staging/brcm80211/util/bcmutils.c | 2 +-
drivers/staging/comedi/drivers/comedi_bond.c | 2 +-
drivers/staging/cxt1e1/ossiRelease.c | 2 +-
drivers/staging/go7007/go7007-driver.c | 2 +-
drivers/staging/msm/mdp.c | 2 +-
.../staging/rtl8192e/ieee80211/ieee80211_module.c | 2 +-
.../staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +-
drivers/staging/tidspbridge/rmgr/dbdcd.c | 6 +++---
drivers/usb/atm/ueagle-atm.c | 14 +++++---------
drivers/usb/otg/langwell_otg.c | 2 +-
drivers/video/sh_mipi_dsi.c | 4 ++--
drivers/video/sis/sis_main.c | 10 +++++-----
drivers/video/via/viafbdev.c | 2 +-
net/dsa/dsa.c | 2 +-
net/dsa/dsa_priv.h | 2 +-
net/sunrpc/auth_gss/gss_krb5_mech.c | 2 +-
sound/core/misc.c | 5 ++++-
tools/perf/util/ui/setup.c | 3 ++-
tools/perf/util/ui/util.c | 3 ++-
62 files changed, 98 insertions(+), 98 deletions(-)
--
1.7.3.rc1
next reply other threads:[~2010-09-13 19:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 19:47 Joe Perches [this message]
2010-09-13 19:47 ` [PATCH 02/25] arch/powerpc: Use static const char arrays Joe Perches
2010-09-14 2:02 ` Stephen Rothwell
2010-09-14 2:04 ` Stephen Rothwell
2010-09-13 19:47 ` [PATCH 04/25] drivers/char: " Joe Perches
2010-09-14 2:06 ` Stephen Rothwell
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=cover.1284406638.git.joe@perches.com \
--to=joe@perches$(echo .)com \
--cc=FlorianSchandinat@gmx$(echo .)de \
--cc=James.Bottomley@suse$(echo .)de \
--cc=JosephChan@via$(echo .)com.tw \
--cc=Trond.Myklebust@netapp$(echo .)com \
--cc=a.p.zijlstra@chello$(echo .)nl \
--cc=acme@redhat$(echo .)com \
--cc=alexander.h.duyck@intel$(echo .)com \
--cc=alsa-devel@alsa-project$(echo .)org \
--cc=amit.salecha@qlogic$(echo .)com \
--cc=anirban.chakraborty@qlogic$(echo .)com \
--cc=ben-linux@fluff$(echo .)org \
--cc=bfields@fieldses$(echo .)org \
--cc=bruce.w.allan@intel$(echo .)com \
--cc=brudley@broadcom$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=devel@driverdev$(echo .)osuosl.org \
--cc=e1000-devel@lists$(echo .)sourceforge.net \
--cc=gregkh@suse$(echo .)de \
--cc=heiko.carstens@de$(echo .)ibm.com \
--cc=henryp@broadcom$(echo .)com \
--cc=isdn@linux-pingi$(echo .)de \
--cc=james.smart@emulex$(echo .)com \
--cc=jeffrey.t.kirsher@intel$(echo .)com \
--cc=jesse.brandeburg@intel$(echo .)com \
--cc=john.ronciak@intel$(echo .)com \
--cc=khali@linux-fr$(echo .)org \
--cc=lenb@kernel$(echo .)org \
--cc=linus.walleij@stericsson$(echo .)com \
--cc=linux-acpi@vger$(echo .)kernel.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-driver@qlogic$(echo .)com \
--cc=linux-fbdev@vger$(echo .)kernel.org \
--cc=linux-i2c@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-media@vger$(echo .)kernel.org \
--cc=linux-mips@linux-mips$(echo .)org \
--cc=linux-nfs@vger$(echo .)kernel.org \
--cc=linux-s390@vger$(echo .)kernel.org \
--cc=linux-scsi@vger$(echo .)kernel.org \
--cc=linux-usb@vger$(echo .)kernel.org \
--cc=linux-wireless@vger$(echo .)kernel.org \
--cc=linux390@de$(echo .)ibm.com \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=mchehab@infradead$(echo .)org \
--cc=megaraidlinux@lsi$(echo .)com \
--cc=mingo@elte$(echo .)hu \
--cc=mjpeg-users@lists$(echo .)sourceforge.net \
--cc=neilb@suse$(echo .)de \
--cc=netdev@vger$(echo .)kernel.org \
--cc=noheek@broadcom$(echo .)com \
--cc=paulus@samba$(echo .)org \
--cc=perex@perex$(echo .)cz \
--cc=peter.p.waskiewicz.jr@intel$(echo .)com \
--cc=pv-drivers@vmware$(echo .)com \
--cc=ralf@linux-mips$(echo .)org \
--cc=sbhatewara@vmware$(echo .)com \
--cc=schwidefsky@de$(echo .)ibm.com \
--cc=sparclinux@vger$(echo .)kernel.org \
--cc=thomas@winischhofer$(echo .)net \
--cc=tiwai@suse$(echo .)de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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