Skip to content

treewide: Use static const char * const where possible

Joe Perches alsa-devel dri-devel kvm linux-alpha linux-fsdevel linux-ia64 linux-scsi linux-watchdog linux-wireless lkml netdev 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/16arch/alpha: Use static const char * const where possiblearch/alpha/kernel/err_ev6.c arch/alpha/kernel/err_marvel.c arch/alpha/kernel/err_titan.c +1 more+46 -382 replies
2/16arch/ia64: Use static const char * const where possiblearch/ia64/kernel/palinfo.c+1 -10 replies
3/16arch/microblaze: Use static const char * const where possiblearch/microblaze/kernel/heartbeat.c arch/microblaze/kernel/timer.c+11 -111 reply
4/16arch/x86: Use static const char * const where possiblearch/x86/kernel/smpboot.c arch/x86/kvm/mmu.c+2 -20 replies
5/16drivers/gpu: Use static const char * const where possibledrivers/gpu/drm/ttm/ttm_page_alloc.c+3 -10 replies
6/16drivers/isdn: Use static const char * const where possibledrivers/isdn/pcbit/edss1.c drivers/isdn/pcbit/edss1.h+2 -20 replies
7/16drivers/net: Use static const char * const where possibledrivers/net/3c515.c drivers/net/eth16i.c+6 -20 replies
8/16drivers/net/pcmcia: Use static const char * const where possibledrivers/net/pcmcia/3c589_cs.c+1 -10 replies
9/16drivers/net/wireless: Use static const char * const where possibledrivers/net/wireless/rt2x00/rt2x00debug.c+1 -11 reply
10/16drivers/scsi: Use static const char * const where possibledrivers/scsi/bfa/rport.c drivers/scsi/pcmcia/nsp_debug.c drivers/scsi/qla2xxx/qla_nx.c +1 more+7 -50 replies
11/16drivers/staging: Use static const char * const where possibledrivers/staging/ath6kl/os/linux/ar6000_drv.c drivers/staging/bcm/Debug.c+10 -90 replies
12/16drivers/usb: Use static const char * const where possibledrivers/usb/host/oxu210hp-hcd.c+1 -10 replies
13/16drivers/watchdog: Use static const char * const where possibledrivers/watchdog/machzwd.c+1 -10 replies
14/16fs: Use static const char * const where possiblefs/binfmt_flat.c+3 -10 replies
15/16net/irda: Use static const char * const where possibleinclude/net/irda/irlan_event.h net/irda/irlan/irlan_event.c+2 -20 replies
16/16sound: Use static const char * const where possiblesound/core/misc.c sound/core/pcm_native.c+2 -51 reply

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchIvo van DoornRichard Henderson
1/16A-b
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16A-b
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH next 00/16] treewide: Use static const char * const where possible

Convert the uses that should be const of

	char *foo[] = {"bar", "baz"};
to
	const char * const foo[] = {"bar", "baz"};
or
	static const char * const foo[] = {"bar", "baz"};

Joe Perches (16):
arch/alpha: Use static const char * const where possible arch/ia64: Use static const char * const where possible arch/microblaze: Use static const char * const where possible arch/x86: Use static const char * const where possible drivers/gpu: Use static const char * const where possible drivers/isdn: Use static const char * const where possible drivers/net: Use static const char * const where possible drivers/net/pcmcia: Use static const char * const where possible drivers/net/wireless: Use static const char * const where possible drivers/scsi: Use static const char * const where possible drivers/staging: Use static const char * const where possible drivers/usb: Use static const char * const where possible drivers/watchdog: Use static const char * const where possible
fs: Use static const char * const where possible net/irda: Use static const char * const where possible
sound: Use static const char * const where possible

 arch/alpha/kernel/err_ev6.c                  |   12 +++++---
 arch/alpha/kernel/err_marvel.c               |   33 ++++++++++++------------
 arch/alpha/kernel/err_titan.c                |   35 ++++++++++++++-----------
 arch/alpha/kernel/osf_sys.c                  |    4 +-
 arch/ia64/kernel/palinfo.c                   |    2 +-
 arch/microblaze/kernel/heartbeat.c           |   10 +++---
 arch/microblaze/kernel/timer.c               |   12 ++++----
 arch/x86/kernel/smpboot.c                    |    2 +-
 arch/x86/kvm/mmu.c                           |    2 +-
 drivers/gpu/drm/ttm/ttm_page_alloc.c         |    4 ++-
 drivers/isdn/pcbit/edss1.c                   |    2 +-
 drivers/isdn/pcbit/edss1.h                   |    2 +-
 drivers/net/3c515.c                          |    4 ++-
 drivers/net/eth16i.c                         |    4 ++-
 drivers/net/pcmcia/3c589_cs.c                |    2 +-
 drivers/net/wireless/rt2x00/rt2x00debug.c    |    2 +-
 drivers/scsi/bfa/rport.c                     |    4 ++-
 drivers/scsi/pcmcia/nsp_debug.c              |    2 +-
 drivers/scsi/qla2xxx/qla_nx.c                |    4 +-
 drivers/scsi/qla4xxx/ql4_nx.c                |    2 +-
 drivers/staging/ath6kl/os/linux/ar6000_drv.c |   14 +++++-----
 drivers/staging/bcm/Debug.c                  |    5 ++-
 drivers/usb/host/oxu210hp-hcd.c              |    2 +-
 drivers/watchdog/machzwd.c                   |    2 +-
 fs/binfmt_flat.c                             |    4 ++-
 include/net/irda/irlan_event.h               |    2 +-
 net/irda/irlan/irlan_event.c                 |    2 +-
 sound/core/misc.c                            |    5 +---
 sound/core/pcm_native.c                      |    2 +-
 29 files changed, 99 insertions(+), 83 deletions(-)
Signature · 1 line
1.7.3.rc1