treewide-next: Use static const char arrays
Status from this message: NAK.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | arch/mips: Use static const char arraysarch/ | +2 | 2 replies | |
| 2/25 | arch/powerpc: Use static const char arraysarch/ arch/ arch/ | +5 | 2 replies | |
| 3/25 | drivers/acpi: Use static const char arraysdrivers/ | +2 | 0 replies | |
| 4/25 | drivers/char: Use static const char arraysdrivers/ | +1 | 1 reply | |
| 5/25 | drivers/i2c: Use static const char arraysdrivers/ | +2 | 7 replies | |
| 6/25 | drivers/isdn: Use static const char arraysdrivers/ drivers/ | +2 | 0 replies | |
| 7/25 | drivers/media: Use static const char arraysdrivers/ | +2 | 1 reply | |
| 7/25 | drivers/media/video/zoran: Don't use initialized char arraydrivers/ | +4 | 0 replies | |
| 8/25 | drivers/net/atl1c: Use static const char arraysdrivers/ drivers/ | +4 | 0 replies | |
| 9/25 | drivers/net/atl1e: Use static const char arraysdrivers/ drivers/ | +4 | 0 replies | |
| 10/25 | drivers/net/(intel): Use static const char arraysdrivers/ drivers/ drivers/ +11 more | +18 | 0 replies | |
| 11/25 | drivers/net/netxen: Use static const char arraysdrivers/ drivers/ | +2 | 0 replies | |
| 12/25 | drivers/net/qlcnic: Use static const char arraysdrivers/ drivers/ | +2 | 0 replies | |
| 13/25 | drivers/net/spider_net.c: Use static const char arraysdrivers/ | +1 | 0 replies | |
| 14/25 | drivers/net/vnxnet3: Use static const char arraysdrivers/ drivers/ | +2 | 2 replies | |
| 15/25 | drivers/net/wireless/ipw2x00: Use static const char arraysdrivers/ drivers/ drivers/ | +3 | 1 reply | |
| 16/25 | drivers/s390/char: Use static const char arraysdrivers/ | +2 | 0 replies | |
| 17/25 | drivers/scsi: Use static const char arraysdrivers/ drivers/ drivers/ | +7 | 0 replies | |
| 18/25 | drivers/serial/suncore.c: Use static const char arraysdrivers/ | +2 | 4 replies | |
| 19/25 | drivers/staging: Use static const char arraysdrivers/ drivers/ drivers/ +5 more | +10 | 0 replies | |
| 20/25 | drivers/usb: Use static const char arraysdrivers/ drivers/ | +6 | 1 reply | |
| 21/25 | drivers/video: Use static const char arraysdrivers/ drivers/ drivers/ | +8 | 1 reply | |
| 22/25 | net/dsa: Use static const char arraysnet/ net/ | +2 | 0 replies | |
| 23/25 | net/sunrpc: Use static const char arraysnet/ | +1 | 0 replies | |
| 24/25 | sound: Use static const char arrayssound/ | +4 | 3 replies | |
| 25/25 | tools/perf/util: Use static const char arraystools/ tools/ | +4 | 0 replies |
Reviews trailers per patch
5 of 26 patches have a Reviewed-by or Acked-by.
| Patch | Shreyas Bhatewara | Stephen Rothwell | John W. Linville | James Simmons |
|---|---|---|---|---|
| 1/25 | ||||
| 2/25 | R-b | |||
| 3/25 | ||||
| 4/25 | R-b | |||
| 5/25 | ||||
| 6/25 | ||||
| 7/25 | ||||
| 7/25 | ||||
| 8/25 | ||||
| 9/25 | ||||
| 10/25 | ||||
| 11/25 | ||||
| 12/25 | ||||
| 13/25 | ||||
| 14/25 | A-b | |||
| 15/25 | A-b | |||
| 16/25 | ||||
| 17/25 | ||||
| 18/25 | ||||
| 19/25 | ||||
| 20/25 | ||||
| 21/25 | A-b | |||
| 22/25 | ||||
| 23/25 | ||||
| 24/25 | ||||
| 25/25 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 00/25] treewide-next: Use static const char arrays
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(-)
Signature · 1 line
1.7.3.rc1