Skip to content

treewide: Replace strnicmp with strncasecmp

Rasmus Villemoes alsa-devel batman linux-acpi linux-arm-kernel linux-cifs linux-fbdev linux-input linux-pm linux-rdma linux-s390 linux-samsung-soc linux-scsi lkml netdev netfilter-devel ocfs2-devel platform-driver-x86 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/22ARM: Replace strnicmp with strncasecmparch/arm/mach-pxa/lpd270.c+6 -60 replies
2/22block: Replace strnicmp with strncasecmpblock/partitions/mac.c+4 -40 replies
3/22netfilter: Replace strnicmp with strncasecmpnet/netfilter/ipvs/ip_vs_ftp.c net/netfilter/nf_conntrack_ftp.c net/netfilter/nf_conntrack_sip.c +2 more+18 -182 replies
4/22video: fbdev: Replace strnicmp with strncasecmpdrivers/video/fbdev/pvr2fb.c drivers/video/fbdev/s3c2410fb.c drivers/video/fbdev/sis/sis_main.c +1 more+40 -400 replies
5/22cifs: Replace strnicmp with strncasecmpfs/cifs/cifs_dfs_ref.c fs/cifs/connect.c+5 -50 replies
6/22ocfs2: Replace strnicmp with strncasecmpfs/ocfs2/cluster/heartbeat.c fs/ocfs2/cluster/masklog.c+4 -40 replies
7/22isofs: Replace strnicmp with strncasecmpfs/isofs/inode.c+1 -11 reply
8/22ALSA: hda - Replace strnicmp with strncasecmpsound/pci/hda/hda_sysfs.c+1 -11 reply
9/22batman-adv: Replace strnicmp with strncasecmpnet/batman-adv/gateway_common.c+4 -41 reply
10/22ACPI / battery: Replace strnicmp with strncasecmpdrivers/acpi/battery.c+1 -11 reply
11/22cpufreq: Replace strnicmp with strncasecmpdrivers/cpufreq/cpufreq.c+3 -32 replies
12/22cpuidle: Replace strnicmp with strncasecmpdrivers/cpuidle/governor.c+1 -11 reply
13/22scsi: Replace strnicmp with strncasecmpdrivers/scsi/ips.c drivers/scsi/scsi_debug.c+2 -20 replies
14/22ib_srpt: Replace strnicmp with strncasecmpdrivers/infiniband/ulp/srpt/ib_srpt.c+1 -10 replies
15/22Input: edt-ft5x06 - Replace strnicmp with strncasecmpdrivers/input/touchscreen/edt-ft5x06.c+1 -11 reply
16/22altera-stapl: Replace strnicmp with strncasecmpdrivers/misc/altera-stapl/altera.c+2 -20 replies
17/22thinkpad_acpi: Replace strnicmp with strncasecmpdrivers/platform/x86/thinkpad_acpi.c+2 -22 replies
18/22PNP: Replace strnicmp with strncasecmpdrivers/pnp/interface.c+12 -120 replies
19/22s390/cio: Replace strnicmp with strncasecmpdrivers/s390/cio/chp.c+2 -20 replies
20/22staging: r8188eu: Replace strnicmp with strncasecmpdrivers/staging/rtl8188eu/os_dep/rtw_android.c+1 -10 replies
21/22Thermal: Replace strnicmp with strncasecmpdrivers/thermal/thermal_core.c+4 -41 reply
22/22kdb: Replace strnicmp with strncasecmpkernel/debug/kdb/kdb_bp.c+3 -30 replies

Reviews trailers per patch

4 of 22 patches have a Reviewed-by or Acked-by.

PatchJan KaraViresh KumarAntonio QuartulliZhang Rui
1/22
2/22
3/22
4/22
5/22
6/22
7/22R-b
8/22
9/22A-b
10/22
11/22A-b
12/22
13/22
14/22
15/22
16/22
17/22
18/22
19/22
20/22
21/22A-b
22/22

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.

Read the v1 thread

Cover letter [PATCH 00/22] treewide: Replace strnicmp with strncasecmp

The kernel used to contain two functions for length-delimited, case-insensitive string comparison, strnicmp with correct semantics and a slightly buggy strncasecmp. The latter is the POSIX name, so strnicmp was renamed to strncasecmp, and strnicmp made into a wrapper for the new strncasecmp to avoid breaking existing users.

To allow the compat wrapper strnicmp to be removed at some point in the future, and to avoid the extra indirection cost, do s/strnicmp/strncasecmp/g.

Sorry for the unimaginative and identical commit messages.

Rasmus Villemoes (22):
ARM: Replace strnicmp with strncasecmp
block: Replace strnicmp with strncasecmp
netfilter: Replace strnicmp with strncasecmp
video: fbdev: Replace strnicmp with strncasecmp
cifs: Replace strnicmp with strncasecmp
ocfs2: Replace strnicmp with strncasecmp
isofs: Replace strnicmp with strncasecmp
ALSA: hda - Replace strnicmp with strncasecmp
batman-adv: Replace strnicmp with strncasecmp ACPI / battery: Replace strnicmp with strncasecmp
cpufreq: Replace strnicmp with strncasecmp
cpuidle: Replace strnicmp with strncasecmp
scsi: Replace strnicmp with strncasecmp
ib_srpt: Replace strnicmp with strncasecmp
Input: edt-ft5x06 - Replace strnicmp with strncasecmp
altera-stapl: Replace strnicmp with strncasecmp
thinkpad_acpi: Replace strnicmp with strncasecmp
PNP: Replace strnicmp with strncasecmp s390/cio: Replace strnicmp with strncasecmp
staging: r8188eu: Replace strnicmp with strncasecmp
Thermal: Replace strnicmp with strncasecmp
kdb: Replace strnicmp with strncasecmp

 arch/arm/mach-pxa/lpd270.c                     | 12 ++---
 block/partitions/mac.c                         |  8 ++--
 drivers/acpi/battery.c                         |  2 +-
 drivers/cpufreq/cpufreq.c                      |  6 +--
 drivers/cpuidle/governor.c                     |  2 +-
 drivers/infiniband/ulp/srpt/ib_srpt.c          |  2 +-
 drivers/input/touchscreen/edt-ft5x06.c         |  2 +-
 drivers/misc/altera-stapl/altera.c             |  4 +-
 drivers/platform/x86/thinkpad_acpi.c           |  4 +-
 drivers/pnp/interface.c                        | 24 +++++-----
 drivers/s390/cio/chp.c                         |  4 +-
 drivers/scsi/ips.c                             |  2 +-
 drivers/scsi/scsi_debug.c                      |  2 +-
 drivers/staging/rtl8188eu/os_dep/rtw_android.c |  2 +-
 drivers/thermal/thermal_core.c                 |  8 ++--
 drivers/video/fbdev/pvr2fb.c                   |  2 +-
 drivers/video/fbdev/s3c2410fb.c                |  8 ++--
 drivers/video/fbdev/sis/sis_main.c             | 66 +++++++++++++-------------
 drivers/video/fbdev/sm501fb.c                  |  4 +-
 fs/cifs/cifs_dfs_ref.c                         |  6 +--
 fs/cifs/connect.c                              |  4 +-
 fs/isofs/inode.c                               |  2 +-
 fs/ocfs2/cluster/heartbeat.c                   |  2 +-
 fs/ocfs2/cluster/masklog.c                     |  6 +--
 kernel/debug/kdb/kdb_bp.c                      |  6 +--
 net/batman-adv/gateway_common.c                |  8 ++--
 net/netfilter/ipvs/ip_vs_ftp.c                 |  6 +--
 net/netfilter/nf_conntrack_ftp.c               |  4 +-
 net/netfilter/nf_conntrack_sip.c               | 22 ++++-----
 net/netfilter/nf_log.c                         |  2 +-
 net/netfilter/nf_nat_sip.c                     |  2 +-
 sound/pci/hda/hda_sysfs.c                      |  2 +-
 32 files changed, 118 insertions(+), 118 deletions(-)
Signature · 1 line
2.0.4