2009-07-06 12:55:37

by Anand Gadiyar

[permalink] [raw]
Subject: [PATCH] Trivial: Fix typo "for for" in multiple files

From: Anand Gadiyar <[email protected]>

Trivial: Fix typo "for for" in multiple files.

Signed-off-by: Anand Gadiyar <[email protected]>
---
After submitting a patch [1] for two instances of this in EHCI code,
I decided to grep the rest of the kernel as well and came up with this.

Let me know if you want me to re-submit with both patches folded
together.

[1] <http://patchwork.kernel.org/patch/34236/>

Documentation/filesystems/nfsroot.txt | 2 +-
Documentation/powerpc/booting-without-of.txt | 2 +-
arch/blackfin/mach-bf538/include/mach/defBF539.h | 2 +-
arch/mips/include/asm/ioctl.h | 2 +-
arch/powerpc/kernel/udbg_16550.c | 2 +-
arch/powerpc/platforms/powermac/udbg_scc.c | 2 +-
drivers/edac/edac_core.h | 2 +-
drivers/infiniband/hw/ipath/ipath_iba6110.c | 2 +-
drivers/isdn/i4l/isdn_common.c | 4 ++--
drivers/media/Kconfig | 2 +-
drivers/net/bnx2x_reg.h | 2 +-
fs/xfs/xfs_fs.h | 2 +-
include/linux/raid/md_k.h | 2 +-
include/linux/usb.h | 2 +-
14 files changed, 15 insertions(+), 15 deletions(-)

Index: linux-omap-2.6/Documentation/filesystems/nfsroot.txt
===================================================================
--- linux-omap-2.6.orig/Documentation/filesystems/nfsroot.txt
+++ linux-omap-2.6/Documentation/filesystems/nfsroot.txt
@@ -105,7 +105,7 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netm
the client address and this parameter is NOT empty only
replies from the specified server are accepted.

- Only required for for NFS root. That is autoconfiguration
+ Only required for NFS root. That is autoconfiguration
will not be triggered if it is missing and NFS root is not
in operation.

Index: linux-omap-2.6/Documentation/powerpc/booting-without-of.txt
===================================================================
--- linux-omap-2.6.orig/Documentation/powerpc/booting-without-of.txt
+++ linux-omap-2.6/Documentation/powerpc/booting-without-of.txt
@@ -1931,7 +1931,7 @@ prefixed with the string "marvell,", for
devices. This field represents the number of cells needed to
represent the address of the memory-mapped registers of devices
within the system controller chip.
- - #size-cells : Size representation for for the memory-mapped
+ - #size-cells : Size representation for the memory-mapped
registers within the system controller chip.
- #interrupt-cells : Defines the width of cells used to represent
interrupts.
Index: linux-omap-2.6/arch/blackfin/mach-bf538/include/mach/defBF539.h
===================================================================
--- linux-omap-2.6.orig/arch/blackfin/mach-bf538/include/mach/defBF539.h
+++ linux-omap-2.6/arch/blackfin/mach-bf538/include/mach/defBF539.h
@@ -2269,7 +2269,7 @@
#define AMBEN_B0_B1 0x0004 /* Enable Asynchronous Memory Banks 0 & 1 only */
#define AMBEN_B0_B1_B2 0x0006 /* Enable Asynchronous Memory Banks 0, 1, and 2 */
#define AMBEN_ALL 0x0008 /* Enable Asynchronous Memory Banks (all) 0, 1, 2, and 3 */
-#define CDPRIO 0x0100 /* DMA has priority over core for for external accesses */
+#define CDPRIO 0x0100 /* DMA has priority over core for external accesses */

/* EBIU_AMGCTL Bit Positions */
#define AMCKEN_P 0x0000 /* Enable CLKOUT */
Index: linux-omap-2.6/arch/mips/include/asm/ioctl.h
===================================================================
--- linux-omap-2.6.orig/arch/mips/include/asm/ioctl.h
+++ linux-omap-2.6/arch/mips/include/asm/ioctl.h
@@ -18,7 +18,7 @@
* the process. I'd like to clean it up for the i386 as well, but
* it's so painful recognizing both the new and the old numbers..
*
- * The same applies for for the MIPS ABI; in fact even the macros
+ * The same applies for the MIPS ABI; in fact even the macros
* from Linux/Alpha fit almost perfectly.
*/

Index: linux-omap-2.6/arch/powerpc/kernel/udbg_16550.c
===================================================================
--- linux-omap-2.6.orig/arch/powerpc/kernel/udbg_16550.c
+++ linux-omap-2.6/arch/powerpc/kernel/udbg_16550.c
@@ -1,5 +1,5 @@
/*
- * udbg for for NS16550 compatable serial ports
+ * udbg for NS16550 compatable serial ports
*
* Copyright (C) 2001-2005 PPC 64 Team, IBM Corp
*
Index: linux-omap-2.6/arch/powerpc/platforms/powermac/udbg_scc.c
===================================================================
--- linux-omap-2.6.orig/arch/powerpc/platforms/powermac/udbg_scc.c
+++ linux-omap-2.6/arch/powerpc/platforms/powermac/udbg_scc.c
@@ -1,5 +1,5 @@
/*
- * udbg for for zilog scc ports as found on Apple PowerMacs
+ * udbg for zilog scc ports as found on Apple PowerMacs
*
* Copyright (C) 2001-2005 PPC 64 Team, IBM Corp
*
Index: linux-omap-2.6/drivers/edac/edac_core.h
===================================================================
--- linux-omap-2.6.orig/drivers/edac/edac_core.h
+++ linux-omap-2.6/drivers/edac/edac_core.h
@@ -268,7 +268,7 @@ enum scrub_type {
* is irrespective of the memory devices being mounted
* on both sides of the memory stick.
*
- * Socket set: All of the memory sticks that are required for for
+ * Socket set: All of the memory sticks that are required for
* a single memory access or all of the memory sticks
* spanned by a chip-select row. A single socket set
* has two chip-select rows and if double-sided sticks
Index: linux-omap-2.6/drivers/infiniband/hw/ipath/ipath_iba6110.c
===================================================================
--- linux-omap-2.6.orig/drivers/infiniband/hw/ipath/ipath_iba6110.c
+++ linux-omap-2.6/drivers/infiniband/hw/ipath/ipath_iba6110.c
@@ -809,7 +809,7 @@ static int ipath_setup_ht_reset(struct i
* errors. We only bother to do this at load time, because it's OK if
* it happened before we were loaded (first time after boot/reset),
* but any time after that, it's fatal anyway. Also need to not check
- * for for upper byte errors if we are in 8 bit mode, so figure out
+ * for upper byte errors if we are in 8 bit mode, so figure out
* our width. For now, at least, also complain if it's 8 bit.
*/
static void slave_or_pri_blk(struct ipath_devdata *dd, struct pci_dev *pdev,
Index: linux-omap-2.6/drivers/isdn/i4l/isdn_common.c
===================================================================
--- linux-omap-2.6.orig/drivers/isdn/i4l/isdn_common.c
+++ linux-omap-2.6/drivers/isdn/i4l/isdn_common.c
@@ -761,7 +761,7 @@ isdn_getnum(char **p)
* Be aware that this is not an atomic operation when sleep != 0, even though
* interrupts are turned off! Well, like that we are currently only called
* on behalf of a read system call on raw device files (which are documented
- * to be dangerous and for for debugging purpose only). The inode semaphore
+ * to be dangerous and for debugging purpose only). The inode semaphore
* takes care that this is not called for the same minor device number while
* we are sleeping, but access is not serialized against simultaneous read()
* from the corresponding ttyI device. Can other ugly events, like changes
@@ -873,7 +873,7 @@ isdn_readbchan(int di, int channel, u_ch
* Be aware that this is not an atomic operation when sleep != 0, even though
* interrupts are turned off! Well, like that we are currently only called
* on behalf of a read system call on raw device files (which are documented
- * to be dangerous and for for debugging purpose only). The inode semaphore
+ * to be dangerous and for debugging purpose only). The inode semaphore
* takes care that this is not called for the same minor device number while
* we are sleeping, but access is not serialized against simultaneous read()
* from the corresponding ttyI device. Can other ugly events, like changes
Index: linux-omap-2.6/drivers/media/Kconfig
===================================================================
--- linux-omap-2.6.orig/drivers/media/Kconfig
+++ linux-omap-2.6/drivers/media/Kconfig
@@ -117,7 +117,7 @@ source "drivers/media/dvb/Kconfig"
config DAB
boolean "DAB adapters"
---help---
- Allow selecting support for for Digital Audio Broadcasting (DAB)
+ Allow selecting support for Digital Audio Broadcasting (DAB)
Receiver adapters.

if DAB
Index: linux-omap-2.6/drivers/net/bnx2x_reg.h
===================================================================
--- linux-omap-2.6.orig/drivers/net/bnx2x_reg.h
+++ linux-omap-2.6/drivers/net/bnx2x_reg.h
@@ -3653,7 +3653,7 @@
The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] -
header pointer. */
#define TCM_REG_XX_TABLE 0x50240
-/* [RW 4] Load value for for cfc ac credit cnt. */
+/* [RW 4] Load value for cfc ac credit cnt. */
#define TM_REG_CFC_AC_CRDCNT_VAL 0x164208
/* [RW 4] Load value for cfc cld credit cnt. */
#define TM_REG_CFC_CLD_CRDCNT_VAL 0x164210
Index: linux-omap-2.6/fs/xfs/xfs_fs.h
===================================================================
--- linux-omap-2.6.orig/fs/xfs/xfs_fs.h
+++ linux-omap-2.6/fs/xfs/xfs_fs.h
@@ -117,7 +117,7 @@ struct getbmapx {
#define BMV_IF_VALID \
(BMV_IF_ATTRFORK|BMV_IF_NO_DMAPI_READ|BMV_IF_PREALLOC|BMV_IF_DELALLOC)

-/* bmv_oflags values - returned for for each non-header segment */
+/* bmv_oflags values - returned for each non-header segment */
#define BMV_OF_PREALLOC 0x1 /* segment = unwritten pre-allocation */
#define BMV_OF_DELALLOC 0x2 /* segment = delayed allocation */
#define BMV_OF_LAST 0x4 /* segment is the last in the file */
Index: linux-omap-2.6/include/linux/raid/md_k.h
===================================================================
--- linux-omap-2.6.orig/include/linux/raid/md_k.h
+++ linux-omap-2.6/include/linux/raid/md_k.h
@@ -201,7 +201,7 @@ struct mddev_s
* INTR: resync needs to be aborted for some reason
* DONE: thread is done and is waiting to be reaped
* REQUEST: user-space has requested a sync (used with SYNC)
- * CHECK: user-space request for for check-only, no repair
+ * CHECK: user-space request for check-only, no repair
* RESHAPE: A reshape is happening
*
* If neither SYNC or RESHAPE are set, then it is a recovery.
Index: linux-omap-2.6/include/linux/usb.h
===================================================================
--- linux-omap-2.6.orig/include/linux/usb.h
+++ linux-omap-2.6/include/linux/usb.h
@@ -1225,7 +1225,7 @@ typedef void (*usb_complete_t)(struct ur
* @start_frame: Returns the initial frame for isochronous transfers.
* @number_of_packets: Lists the number of ISO transfer buffers.
* @interval: Specifies the polling interval for interrupt or isochronous
- * transfers. The units are frames (milliseconds) for for full and low
+ * transfers. The units are frames (milliseconds) for full and low
* speed devices, and microframes (1/8 millisecond) for highspeed ones.
* @error_count: Returns the number of ISO transfers that reported errors.
* @context: For use in completion functions. This normally points to


2009-07-07 08:04:33

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] Trivial: Fix typo "for for" in multiple files

On Mon, 6 Jul 2009, Gadiyar, Anand wrote:

> From: Anand Gadiyar <[email protected]>
>
> Trivial: Fix typo "for for" in multiple files.
>
> Signed-off-by: Anand Gadiyar <[email protected]>
> ---
> After submitting a patch [1] for two instances of this in EHCI code,
> I decided to grep the rest of the kernel as well and came up with this.
>
> Let me know if you want me to re-submit with both patches folded
> together.

Yes, I will prefer that, I would otherwise merge the patches together
anyway, thanks.

While at it, could you please also respin your patch on top of current
Linus' tree, it doesn't apply cleanly in the form you have submitted.

Thanks,

--
Jiri Kosina
SUSE Labs

2009-07-07 10:03:29

by Anand Gadiyar

[permalink] [raw]
Subject: RE: [PATCH] Trivial: Fix typo "for for" in multiple files

On Tue, 7 Jul 2009, Jiri Kosina wrote:
> On Mon, 6 Jul 2009, Gadiyar, Anand wrote:
>
> > From: Anand Gadiyar <[email protected]>
> >
> > Trivial: Fix typo "for for" in multiple files.
> >
> > Signed-off-by: Anand Gadiyar <[email protected]>
> > ---
> > After submitting a patch [1] for two instances of this in EHCI code,
> > I decided to grep the rest of the kernel as well and came up with this.
> >
> > Let me know if you want me to re-submit with both patches folded
> > together.
>
> Yes, I will prefer that, I would otherwise merge the patches together
> anyway, thanks.
>
> While at it, could you please also respin your patch on top of current
> Linus' tree, it doesn't apply cleanly in the form you have submitted.
>

Oops, sorry. I was on an old kernel tree.

Regenerated against current mainline git, and folded both the patches.
I have submitted a fresh patch for this, so please discard patch 1. And
another one for a similar typo "to to".

Thanks,
Anand