treewide: fix typos and repeated words in comments
Subsystems (13)
cover treewide: fix typos and repeated words in comments
This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (2):
treewide: fix typos in comments
treewide: fix repeated words in comments
drivers/cdrom/cdrom.c | 4 ++-- drivers/cdrom/gdrom.c | 2 +- drivers/comedi/drivers/comedi_parport.c | 8 ++++---- drivers/comedi/drivers/pcl812.c | 4 ++-- drivers/firmware/memmap.c | 2 +- drivers/parport/parport_pc.c | 2 +- drivers/w1/masters/ds2482.c | 2 +- drivers/w1/w1.c | 2 +- fs/qnx4/namei.c | 2 +- fs/qnx6/inode.c | 2 +- fs/qnx6/qnx6.h | 2 +- fs/squashfs/cache.c | 2 +- fs/udf/inode.c | 4 ++-- fs/udf/super.c | 2 +- include/clocksource/timer-ti-dm.h | 2 +- include/linux/amba/pl022.h | 4 ++-- include/linux/amba/pl08x.h | 2 +- include/linux/average.h | 2 +- include/linux/backing-dev-defs.h | 2 +- include/linux/folio_queue.h | 2 +- include/linux/iov_iter.h | 4 ++-- include/linux/journal-head.h | 2 +- include/linux/most.h | 2 +- include/linux/msi.h | 4 ++-- include/linux/platform_data/emif_plat.h | 2 +- include/linux/platform_data/pxa_sdhci.h | 6 +++--- include/linux/prime_numbers.h | 4 ++-- include/linux/rmi.h | 2 +- include/linux/rseq.h | 2 +- include/linux/rseq_entry.h | 2 +- include/linux/sxgbe_platform.h | 2 +- include/linux/ti_wilink_st.h | 2 +- include/uapi/linux/acrn.h | 2 +- include/uapi/linux/chio.h | 2 +- include/uapi/linux/genwqe/genwqe_card.h | 2 +- include/uapi/linux/magic.h | 2 +- include/uapi/linux/pmu.h | 2 +- include/uapi/linux/serial_reg.h | 4 ++-- include/uapi/linux/um_timetravel.h | 6 +++--- kernel/acct.c | 2 +- kernel/async.c | 2 +- kernel/compat.c | 2 +- kernel/context_tracking.c | 2 +- kernel/exit.c | 2 +- kernel/latencytop.c | 2 +- kernel/panic.c | 2 +- kernel/pid.c | 2 +- kernel/ptrace.c | 2 +- kernel/relay.c | 2 +- kernel/signal.c | 6 +++--- kernel/user_namespace.c | 2 +- samples/trace_events/trace_custom_sched.h | 2 +- scripts/check_extable.sh | 6 +++--- tools/arch/x86/include/asm/cmpxchg.h | 2 +- tools/arch/x86/include/uapi/asm/kvm.h | 2 +- tools/include/linux/filter.h | 2 +- tools/include/uapi/asm-generic/mman-common.h | 2 +- tools/include/uapi/linux/elf.h | 2 +- tools/include/uapi/linux/fs.h | 2 +- tools/include/uapi/linux/seccomp.h | 2 +- 60 files changed, 79 insertions(+), 79 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 treewide: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/cdrom/cdrom.c | 4 ++-- drivers/cdrom/gdrom.c | 2 +- drivers/comedi/drivers/comedi_parport.c | 8 ++++---- drivers/comedi/drivers/pcl812.c | 4 ++-- drivers/firmware/memmap.c | 2 +- drivers/parport/parport_pc.c | 2 +- drivers/w1/masters/ds2482.c | 2 +- drivers/w1/w1.c | 2 +- fs/qnx4/namei.c | 2 +- fs/qnx6/inode.c | 2 +- fs/qnx6/qnx6.h | 2 +- fs/udf/inode.c | 4 ++-- fs/udf/super.c | 2 +- include/clocksource/timer-ti-dm.h | 2 +- include/linux/amba/pl022.h | 4 ++-- include/linux/amba/pl08x.h | 2 +- include/linux/average.h | 2 +- include/linux/backing-dev-defs.h | 2 +- include/linux/iov_iter.h | 4 ++-- include/linux/journal-head.h | 2 +- include/linux/most.h | 2 +- include/linux/msi.h | 4 ++-- include/linux/platform_data/pxa_sdhci.h | 6 +++--- include/linux/prime_numbers.h | 4 ++-- include/linux/rmi.h | 2 +- include/linux/rseq.h | 2 +- include/linux/rseq_entry.h | 2 +- include/linux/sxgbe_platform.h | 2 +- include/linux/ti_wilink_st.h | 2 +- include/uapi/linux/acrn.h | 2 +- include/uapi/linux/chio.h | 2 +- include/uapi/linux/genwqe/genwqe_card.h | 2 +- include/uapi/linux/magic.h | 2 +- include/uapi/linux/pmu.h | 2 +- include/uapi/linux/serial_reg.h | 4 ++-- include/uapi/linux/um_timetravel.h | 4 ++-- kernel/acct.c | 2 +- kernel/async.c | 2 +- kernel/compat.c | 2 +- kernel/context_tracking.c | 2 +- kernel/exit.c | 2 +- kernel/latencytop.c | 2 +- kernel/panic.c | 2 +- kernel/pid.c | 2 +- kernel/ptrace.c | 2 +- kernel/relay.c | 2 +- kernel/signal.c | 6 +++--- kernel/user_namespace.c | 2 +- samples/trace_events/trace_custom_sched.h | 2 +- scripts/check_extable.sh | 6 +++--- tools/arch/x86/include/asm/cmpxchg.h | 2 +- tools/arch/x86/include/uapi/asm/kvm.h | 2 +- tools/include/linux/filter.h | 2 +- tools/include/uapi/asm-generic/mman-common.h | 2 +- tools/include/uapi/linux/elf.h | 2 +- tools/include/uapi/linux/fs.h | 2 +- tools/include/uapi/linux/seccomp.h | 2 +- 57 files changed, 75 insertions(+), 75 deletions(-)
drivers/cdrom/cdrom.c +2 -2
@@ -1810,7 +1810,7 @@ static int dvd_read_physical(struct cdrom_device_info *cdi, dvd_struct *s,/* * place the data... really ugly, but at least we won't have to -* worry about endianess in userspace. +* worry about endianness in userspace. */ memset (layer,0 ,sizeof (*layer)); layer->book_version = base[0 ] &0xf ;
@@ -3141,7 +3141,7 @@ static noinline int mmc_ioctl_cdrom_volume(struct cdrom_device_info *cdi,/* originally the code depended on buffer[1] to determine how much data is available for transfer. buffer[1] is -unfortunately ambigious and the only reliable way seem +unfortunately ambiguous and the only reliable way seem to be to simply skip over the block descriptor... */ offset =8 +be16_to_cpu (*(__be16 *)(buffer +6 ));
drivers/cdrom/gdrom.c +1 -1
@@ -443,7 +443,7 @@ static int gdrom_getsense(short *bufstring)pr_info ("%s\n" , sense_texts[sense_key].text); else pr_err("Unknown sense key: %d\n", sense_key); -if (bufstring)/* return addional sense data */ +if (bufstring)/* return additional sense data */ memcpy (bufstring, &sense[4 ],2 );if (sense_key <2 ) err =0 ;
drivers/comedi/drivers/comedi_parport.c +4 -4
@@ -254,7 +254,7 @@ static int parport_attach(struct comedi_device *dev,if (ret)return ret; -/* Digial I/O subdevice - Parallel port DATA register */ +/* Digital I/O subdevice - Parallel port DATA register */ s = &dev->subdevices[0 ]; s->type =COMEDI_SUBD_DIO ; s->subdev_flags =SDF_READABLE |SDF_WRITABLE ;
@@ -264,7 +264,7 @@ static int parport_attach(struct comedi_device *dev, s->insn_bits = parport_data_reg_insn_bits; s->insn_config = parport_data_reg_insn_config; -/* Digial Input subdevice - Parallel port STATUS register */ +/* Digital Input subdevice - Parallel port STATUS register */ s = &dev->subdevices[1 ]; s->type =COMEDI_SUBD_DI ; s->subdev_flags =SDF_READABLE ;
@@ -273,7 +273,7 @@ static int parport_attach(struct comedi_device *dev, s->range_table = &range_digital; s->insn_bits = parport_status_reg_insn_bits; -/* Digial Output subdevice - Parallel port CONTROL register */ +/* Digital Output subdevice - Parallel port CONTROL register */ s = &dev->subdevices[2 ]; s->type =COMEDI_SUBD_DO ; s->subdev_flags =SDF_WRITABLE ;
@@ -283,7 +283,7 @@ static int parport_attach(struct comedi_device *dev, s->insn_bits = parport_ctrl_reg_insn_bits;if (dev->irq) { -/* Digial Input subdevice - Interrupt support */ +/* Digital Input subdevice - Interrupt support */ s = &dev->subdevices[3 ]; dev->read_subdev = s; s->type =COMEDI_SUBD_DI ;
drivers/comedi/drivers/pcl812.c +2 -2
@@ -32,7 +32,7 @@* A-823PGH (a823pgh), A-823PGL (a823pgl), A-826PG (a826pg) * Updated: Mon, 06 Aug 2007 12:03:15 +0100 * Status: works (I hope. My board fire up under my hands -* and I cann't test all features.) +* and I can't test all features.) * * This driver supports insn and cmd interfaces. Some boards support only insn * because their hardware don't allow more (PCL-813/B, ACL-8113, ISO-813).
@@ -732,7 +732,7 @@ static int pcl812_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) devpriv->ai_dma =1 ;for (i =1 ; i < cmd->chanlist_len; i++)if (cmd->chanlist[0 ] != cmd->chanlist[i]) { -/* we cann't use DMA :-( */ +/* we can't use DMA :-( */ devpriv->ai_dma =0 ;break ; }
drivers/firmware/memmap.c +1 -1
@@ -275,7 +275,7 @@ firmware_map_find_entry_bootmem(u64 start, u64 end, const char *type)* * Adds a firmware mapping entry. This function is for memory hotplug, it is * similar to function firmware_map_add_early(). The only difference is that -* it will create the syfs entry dynamically. +* it will create the sysfs entry dynamically. * * Return: 0 on success, or -ENOMEM if no memory could be allocated. */
drivers/parport/parport_pc.c +1 -1
@@ -1722,7 +1722,7 @@ static int intel_bug_present_check_epp(struct parport *pb)break ; } } -/* return ECR into the inital state */ +/* return ECR into the initial state */ ECR_WRITE (pb, ecr); }
drivers/w1/masters/ds2482.c +1 -1
@@ -425,7 +425,7 @@ static u8 ds2482_w1_set_pullup(void *data, int delay)/* if delay is non-zero activate the pullup, * the strong pullup will be automatically deactivated -* by the master, so do not explicitly deactive it +* by the master, so do not explicitly deactivate it */ if (delay) {/* both waits are crucial, otherwise devices might not be
drivers/w1/w1.c +1 -1
@@ -1182,7 +1182,7 @@ int w1_process(void *data)__set_current_state (TASK_INTERRUPTIBLE ); -/* hold list_mutex until after interruptible to prevent loosing +/* hold list_mutex until after interruptible to prevent losing * the wakeup signal when async_cmd is added. */ mutex_unlock (&dev->list_mutex);
fs/qnx4/namei.c +1 -1
@@ -21,7 +21,7 @@* check if the filename is correct. For some obscure reason, qnx writes a * new file twice in the directory entry, first with all possible options at 0 * and for a second time the way it is, they want us not to access the qnx -* filesystem when whe are using linux. +* filesystem when we are using linux. */ static int qnx4_match (int len,const char *name,struct buffer_head *bh,unsigned long *offset)
fs/qnx6/inode.c +1 -1
@@ -107,7 +107,7 @@ static void qnx6_readahead(struct readahead_control *rac)/* * returns the block number for the no-th element in the tree -* inodebits requred as there are multiple inodes in one inode block +* inodebits required as there are multiple inodes in one inode block */ static unsigned qnx6_block_map (struct inode *inode,unsigned no) {
fs/qnx6/qnx6.h +1 -1
@@ -32,7 +32,7 @@ struct qnx6_sb_info {int s_blks_off;/* blkoffset fs-startpoint */ int s_ptrbits;/* indirect pointer bitfield */ unsigned long s_mount_opt;/* all mount options */ -int s_bytesex;/* holds endianess info */ +int s_bytesex;/* holds endianness info */ struct inode * inodes;struct inode * longfile; };
fs/udf/inode.c +2 -2
@@ -915,7 +915,7 @@ static int inode_getblk(struct inode *inode, struct udf_map_rq *map) iinfo->i_lenExtents += inode->i_sb->s_blocksize; } -/* if the extent the requsted block is located in contains multiple +/* if the extent the requested block is located in contains multiple * blocks, split the extent into at most three extents. blocks prior * to requested block, requested block, and blocks after requested * block */
@@ -2210,7 +2210,7 @@ void udf_write_aext(struct inode *inode, struct extent_position *epos, }/* -* Only 1 indirect extent in a row really makes sense but allow upto 16 in case +* Only 1 indirect extent in a row really makes sense but allow up to 16 in case * someone does some weird stuff. */ #define UDF_MAX_INDIR_EXTS 16
fs/udf/super.c +1 -1
@@ -1341,7 +1341,7 @@ static int udf_load_partdesc(struct super_block *sb, sector_t block)* PHYSICAL partitions are already set up */ type1_idx = i; - map =NULL ;/* supress 'maybe used uninitialized' warning */ + map =NULL ;/* suppress 'maybe used uninitialized' warning */ for (i =0 ; i < sbi->s_partitions; i++) { map = &sbi->s_partmaps[i];
include/clocksource/timer-ti-dm.h +1 -1
@@ -9,7 +9,7 @@* * Copyright (C) 2005 Nokia Corporation * Author: Lauri Leukkunen <[email protected]> -* PWM and clock framwork support by Timo Teras. +* PWM and clock framework support by Timo Teras. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the
include/linux/amba/pl022.h +2 -2
@@ -62,7 +62,7 @@ struct ssp_clock_params { };/** -* enum ssp_rx_endian - endianess of Rx FIFO Data +* enum ssp_rx_endian - endianness of Rx FIFO Data * this feature is only available in ST versionf of PL022 */ enum ssp_rx_endian {
@@ -71,7 +71,7 @@ enum ssp_rx_endian { };/** -* enum ssp_tx_endian - endianess of Tx FIFO Data +* enum ssp_tx_endian - endianness of Tx FIFO Data */ enum ssp_tx_endian {SSP_TX_MSB ,
include/linux/amba/pl08x.h +1 -1
@@ -42,7 +42,7 @@ enum {* @max_signal: the maximum DMA signal number to be muxed in for * the channel. Set to the same as min_signal for * devices with static assignments -* @muxval: a number usually used to poke into some mux regiser to +* @muxval: a number usually used to poke into some mux register to * mux in the signal to this channel * @addr: source/target address in physical memory for this DMA channel, * can be the address of a FIFO register for burst requests for example.
include/linux/average.h +1 -1
@@ -11,7 +11,7 @@* * This implements a fixed-precision EWMA algorithm, with both the * precision and fall-off coefficient determined at compile-time -* and built into the generated helper funtions. +* and built into the generated helper functions. * * The first argument to the macro is the name that will be used * for the struct and helper functions.
include/linux/backing-dev-defs.h +1 -1
@@ -93,7 +93,7 @@ struct wb_completion {* using memcg's page ownership for attributing writeback IOs, and every * memcg - blkcg combination can be served by its own wb by assigning a * dedicated wb to each memcg, which enables isolation across different -* cgroups and propagation of IO back pressure down from the IO layer upto +* cgroups and propagation of IO back pressure down from the IO layer up to * the tasks which are generating the dirty pages to be written back. * * A cgroup wb is indexed on its bdi by the ID of the associated memcg,
include/linux/iov_iter.h +2 -2
@@ -284,7 +284,7 @@ size_t iterate_discard(struct iov_iter *iter, size_t len, void *priv, void *priv* @priv2 and the amount of data so far iterated over (which can, for example, * be added to @priv to point to the right part of a second buffer). The step * functions should return the amount of the segment they didn't process (ie. 0 -* indicates complete processsing). +* indicates complete processing). * * This function returns the amount of data processed (ie. 0 means nothing was * processed and the value of @len means processes to completion).
@@ -353,7 +353,7 @@ size_t iterate_and_advance(struct iov_iter *iter, size_t len, void *priv,* @priv2 and the amount of data so far iterated over (which can, for example, * be added to @priv to point to the right part of a second buffer). The step * functions should return the amount of the segment they didn't process (ie. 0 -* indicates complete processsing). +* indicates complete processing). * * This function returns the amount of data processed (ie. 0 means nothing was * processed and the value of @len means processes to completion).
include/linux/journal-head.h +1 -1
@@ -40,7 +40,7 @@ struct journal_head {* Journalling list for this buffer [b_state_lock] * NOTE: We *cannot* combine this with b_modified into a bitfield * as gcc would then (which the C standard allows but which is -* very unuseful) make 64-bit accesses to the bitfield and clobber +* very useless) make 64-bit accesses to the bitfield and clobber * b_jcount if its update races with bitfield modification. */ unsigned b_jlist;
include/linux/most.h +1 -1
@@ -300,7 +300,7 @@ void most_deregister_interface(struct most_interface *iface);void most_submit_mbo (struct mbo *mbo);/** -* most_stop_enqueue - prevents core from enqueing MBOs +* most_stop_enqueue - prevents core from enqueuing MBOs * @iface: pointer to interface * @channel_idx: channel index */
include/linux/msi.h +2 -2
@@ -132,7 +132,7 @@ struct pci_msi_desc {* @iobase: Domain specific IOmem pointer * * The content of this data is implementation defined and used by the MSI -* domain to store domain specific information which is requried for +* domain to store domain specific information which is required for * interrupt chip callbacks. */ union msi_domain_cookie {
@@ -373,7 +373,7 @@ static inline void msi_free_msi_descs(struct device *dev)/* * The arch hooks to setup up msi irqs. Default functions are implemented -* as weak symbols so that they /can/ be overriden by architecture specific +* as weak symbols so that they /can/ be overridden by architecture specific * code if needed. These hooks can only be enabled by the architecture. * * If CONFIG_PCI_MSI_ARCH_FALLBACKS is not selected they are replaced by
include/linux/platform_data/pxa_sdhci.h +3 -3
@@ -32,9 +32,9 @@* @clk_delay_enable: enable clk_delay or not, used on pxa910 * @max_speed: the maximum speed supported * @host_caps: Standard MMC host capabilities bit field. -* @quirks: quirks of platfrom -* @quirks2: quirks2 of platfrom -* @pm_caps: pm_caps of platfrom +* @quirks: quirks of platform +* @quirks2: quirks2 of platform +* @pm_caps: pm_caps of platform */ struct sdhci_pxa_platdata {unsigned int flags;
include/linux/prime_numbers.h +2 -2
@@ -8,7 +8,7 @@ bool is_prime_number(unsigned long x);unsigned long next_prime_number (unsigned long x);/** -* for_each_prime_number - iterate over each prime upto a value +* for_each_prime_number - iterate over each prime up to a value * @prime: the current prime number in this iteration * @max: the upper limit *
@@ -22,7 +22,7 @@ unsigned long next_prime_number(unsigned long x);for_each_prime_number_from ((prime),2 , (max))/** -* for_each_prime_number_from - iterate over each prime upto a value +* for_each_prime_number_from - iterate over each prime up to a value * @prime: the current prime number in this iteration * @from: the initial value * @max: the upper limit
include/linux/rmi.h +1 -1
@@ -75,7 +75,7 @@ enum rmi_sensor_type {* (touchscreen). This is useful when F11_2D_QUERY14 register is not * available. * @disable_report_mask - Force data to not be reported even if it is supported -* by the firware. +* by the firmware. * @topbuttonpad - Used with the "5 buttons touchpads" found on the Lenovo 40 * series * @kernel_tracking - most moderns RMI f11 firmwares implement Multifinger
include/linux/rseq.h +1 -1
@@ -57,7 +57,7 @@ static __always_inline void rseq_sched_switch_event(struct task_struct *t)/* * Only apply the user_irq optimization for RSEQ ABI V2 registrations. * Legacy users like TCMalloc rely on the original ABI V1 behaviour -* which updates IDs on every context swtich. +* which updates IDs on every context switch. */ if (rseq_v2 (t)) {/*
include/linux/rseq_entry.h +1 -1
@@ -165,7 +165,7 @@ static __always_inline bool __rseq_grant_slice_extension(bool work_pending)if (likely (!(usr_ctrl.request)))return false; -/* Grant the slice extention */ +/* Grant the slice extension */ usr_ctrl.request =0 ; usr_ctrl.granted =1 ;unsafe_put_user (usr_ctrl.all, &rseq->slice_ctrl.all, efault);
include/linux/sxgbe_platform.h +1 -1
@@ -20,7 +20,7 @@#define SXGBE_CSR_350_400M 0x4/* MDC = clk_scr_i/162 */ #define SXGBE_CSR_400_500M 0x5/* MDC = clk_scr_i/202 */ -/* Platfrom data for platform device structure's +/* Platform data for platform device structure's * platform_data field */ struct sxgbe_mdio_bus_data {
include/linux/ti_wilink_st.h +1 -1
@@ -108,7 +108,7 @@ extern long st_unregister(struct st_proto_s *);* @list: the list of protocols registered, only MAX can exist, one protocol * can register only once. * @rx_state: states to be maintained inside st's tty receive -* @rx_count: count to be maintained inside st's tty receieve +* @rx_count: count to be maintained inside st's tty receive * @rx_skb: the skb where all data for a protocol gets accumulated, * since tty might not call receive when a complete event packet * is received, the states, count and the skb needs to be maintained.
include/uapi/linux/acrn.h +1 -1
@@ -264,7 +264,7 @@ struct acrn_descriptor_ptr {* @cr4: Value of register CR4 * @cr3: Value of register CR3 * @ia32_efer: Value of IA32_EFER MSR -* @rflags: Value of regsiter RFLAGS +* @rflags: Value of register RFLAGS * @reserved_64: Reserved and must be 0 * @cs_ar: Attribute field of code segment selector * @cs_limit: Limit field of code segment selector
include/uapi/linux/chio.h +1 -1
@@ -24,7 +24,7 @@* CHIOVGPARAMS * query vendor-specific element types * -* accessing elements works by specifing type and unit of the element. +* accessing elements works by specifying type and unit of the element. * for example, storage elements are addressed with type = CHET_ST and * unit = 0 .. cp_nslots-1 *
include/uapi/linux/genwqe/genwqe_card.h +1 -1
@@ -487,7 +487,7 @@ struct genwqe_mem {* -EINVAL: Invalid parameters (ASIV_LEN, ASV_LEN, illegal fixups * no mappings found/could not create mappings * -EFAULT: illegal addresses in fixups, purging failed -* -EBADMSG: enqueing failed, retc != DDCB_RETC_COMPLETE +* -EBADMSG: enqueuing failed, retc != DDCB_RETC_COMPLETE */ #define GENWQE_EXECUTE_DDCB \ _IOWR(GENWQE_IOC_CODE, 50, struct genwqe_ddcb_cmd)
include/uapi/linux/magic.h +1 -1
@@ -9,7 +9,7 @@#define CEPH_SUPER_MAGIC 0x00c36400#define CODA_SUPER_MAGIC 0x73757245#define CRAMFS_MAGIC 0x28cd3d45/* some random number */ -#define CRAMFS_MAGIC_WEND 0x453dcd28/* magic number with the wrong endianess */ +#define CRAMFS_MAGIC_WEND 0x453dcd28/* magic number with the wrong endianness */ #define DEBUGFS_MAGIC 0x64626720#define SECURITYFS_MAGIC 0x73636673#define SELINUX_MAGIC 0xf97cff8c
include/uapi/linux/pmu.h +1 -1
@@ -70,7 +70,7 @@#define PMU_INT_WAITING_CHARGER 0x01/* ??? */ #define PMU_INT_AUTO_SRQ_POLL 0x02/* ??? */ -/* Bits in the environement message (either obtained via PMU_GET_COVER, +/* Bits in the environment message (either obtained via PMU_GET_COVER, * or via PMU_INT_ENVIRONMENT on core99 */ #define PMU_ENV_LID_CLOSED 0x01/* The lid is closed */
include/uapi/linux/serial_reg.h +2 -2
@@ -122,8 +122,8 @@* Access to some registers depends on register access / configuration * mode. */ -#define UART_LCR_CONF_MODE_A UART_LCR_DLAB/* Configutation mode A */ -#define UART_LCR_CONF_MODE_B 0xBF/* Configutation mode B */ +#define UART_LCR_CONF_MODE_A UART_LCR_DLAB/* Configuration mode A */ +#define UART_LCR_CONF_MODE_B 0xBF/* Configuration mode B */ #define UART_MCR 4/* Out: Modem Control Register */ #define UART_MCR_CLKSEL 0x80/* Divide clock by 4 (TI16C752, EFR[4]=1) */
include/uapi/linux/um_timetravel.h +2 -2
@@ -151,8 +151,8 @@ enum um_timetravel_ops {/** * @UM_TIMETRAVEL_BROADCAST: Send/Receive a broadcast message. * This message can be used to sync all components in the system -* with a single message, if the calender gets the message, the -* calender broadcast the message to all components, and if a +* with a single message, if the calendar gets the message, the +* calendar broadcast the message to all components, and if a * component receives it it should act based on it e.g print a * message to it's log system. * (calendar <-> host)
kernel/acct.c +1 -1
@@ -26,7 +26,7 @@* XTerms and EMACS are manifestations of pure evil. 21/10/98, AV. * * Fixed a nasty interaction with sys_umount(). If the accounting -* was suspeneded we failed to stop it on umount(). Messy. +* was suspended we failed to stop it on umount(). Messy. * Another one: remount to readonly didn't stop accounting. * Question: what should we do if we have CAP_SYS_ADMIN but not * CAP_SYS_PACCT? Current code does the following: umount returns -EBUSY
kernel/async.c +1 -1
@@ -351,7 +351,7 @@ void __init async_init(void) {/* * Async can schedule a number of interdependent work items. However, -* unbound workqueues can handle only upto min_active interdependent +* unbound workqueues can handle only up to min_active interdependent * work items. The default min_active of 8 isn't sufficient for async * and can lead to stalls. Let's use a dedicated workqueue with raised * min_active.
kernel/compat.c +1 -1
@@ -2,7 +2,7 @@/* * linux/kernel/compat.c * -* Kernel compatibililty routines for e.g. 32 bit syscall support +* Kernel compatibility routines for e.g. 32 bit syscall support * on 64 bit kernels. * * Copyright (C) 2002-2003 Stephen Rothwell, IBM Corporation
kernel/context_tracking.c +1 -1
@@ -538,7 +538,7 @@ void ct_user_enter(enum ctx_state state)unsigned long flags;/* -* Some contexts may involve an exception occuring in an irq, +* Some contexts may involve an exception occurring in an irq, * leading to that nesting: * ct_irq_enter() rcu_eqs_exit(true) rcu_eqs_enter(true) ct_irq_exit() * This would mess up the dyntick_nesting count though. And rcu_irq_*()
kernel/exit.c +1 -1
@@ -212,7 +212,7 @@ static void __exit_signal(struct release_task_post *post, struct task_struct *tswrite_sequnlock (&sig->stats_lock);/* -* Ensure that all preceeding state is visible. Pairs with +* Ensure that all preceding state is visible. Pairs with * the smp_acquire__after_ctrl_dep() in the sighand == NULL * path of lock_task_sighand(). */
kernel/latencytop.c +1 -1
@@ -152,7 +152,7 @@ account_global_scheduler_latency(struct task_struct *tsk,if (i >=MAXLR )return ; -/* Allocted a new one: */ +/* Allocated a new one: */ memcpy (&latency_record[i], lat,sizeof (struct latency_record )); }
kernel/panic.c +1 -1
@@ -704,7 +704,7 @@ void vpanic(const char *fmt, va_list args)* buffer. Try to acquire the lock then release it regardless of the * result. The release will also print the buffers out. Locks debug * should be disabled to avoid reporting bad unlock balance when -* panic() is not being callled from OOPS. +* panic() is not being called from OOPS. */ debug_locks_off ();console_flush_on_panic (CONSOLE_FLUSH_PENDING );
kernel/pid.c +1 -1
@@ -241,7 +241,7 @@ struct pid *alloc_pid(struct pid_namespace *ns, pid_t *arg_set_tid, tid + 1, GFP_ATOMIC);/* * If ENOSPC is returned it means that the PID is -* alreay in use. Return EEXIST in that case. +* already in use. Return EEXIST in that case. */ if (nr == -ENOSPC )
kernel/ptrace.c +1 -1
@@ -533,7 +533,7 @@ static int ptrace_traceme(void) }/* -* Called with irqs disabled, returns true if childs should reap themselves. +* Called with irqs disabled, returns true if children should reap themselves. */ static int ignoring_children (struct sighand_struct *sigh) {
kernel/relay.c +1 -1
@@ -765,7 +765,7 @@ static int relay_file_mmap_prepare(struct vm_area_desc *desc)* @filp: the file * @wait: poll table * -* Poll implemention. +* Poll implementation. */ static __poll_t relay_file_poll (struct file *filp,poll_table *wait) {
kernel/signal.c +3 -3
@@ -1359,7 +1359,7 @@ struct sighand_struct *lock_task_sighand(struct task_struct *tsk,/* * Pairs with the smp_store_release() in * __exit_signal(). It ensures that all state -* modifications to the task preceeding the store are +* modifications to the task preceding the store are * visible to the callers of lock_task_sighand(). */ smp_acquire__after_ctrl_dep ();
@@ -2409,7 +2409,7 @@ static int ptrace_stop(int exit_code, int why, unsigned long message,/* * If @why is CLD_STOPPED, we're trapping to participate in a group -* stop. Do the bookkeeping. Note that if SIGCONT was delievered +* stop. Do the bookkeeping. Note that if SIGCONT was delivered * across siglock relocks since INTERRUPT was scheduled, PENDING * could be clear now. We act as if SIGCONT is received after * TASK_TRACED is entered - ignore it.
@@ -3557,7 +3557,7 @@ int copy_siginfo_from_user(kernel_siginfo_t *to, const siginfo_t __user *from)* * Note: This function does not work properly for the SIGCHLD on x32, but * fortunately it doesn't have to. The only valid callers for this function are -* copy_siginfo_to_user32, which is overriden for x32 and the coredump code. +* copy_siginfo_to_user32, which is overridden for x32 and the coredump code. * The latter does not care because SIGCHLD will never cause a coredump. */ void copy_siginfo_to_external32(struct compat_siginfo *to,
kernel/user_namespace.c +1 -1
@@ -911,7 +911,7 @@ static bool verify_root_map(const struct file *file,if (map_ns == file_ns) {/* The process unshared its ns and is writing to its own -* /proc/self/uid_map. User already has full capabilites in +* /proc/self/uid_map. User already has full capabilities in * the new namespace. Verify that the parent had CAP_SETFCAP * when it unshared. * */
samples/trace_events/trace_custom_sched.h +1 -1
@@ -89,7 +89,7 @@ TRACE_CUSTOM_EVENT(sched_waking,#define TRACE_INCLUDE_PATH ./* -* It is requred that the TRACE_INCLUDE_FILE be the same +* It is required that the TRACE_INCLUDE_FILE be the same * as this file without the ".h". */ #define TRACE_INCLUDE_FILE trace_custom_sched
scripts/check_extable.sh +3 -3
@@ -41,7 +41,7 @@ function find_symbol_and_offset_from_reloc() # Extract symbol and offset from the objdump output eval $(echo $reloc | sed 's/\([^+]\+\)+\?\(0x[0-9a-f]\+\)\?/symbol="\1"; symbol_offset="\2"/') - # When the relocation points to the begining of a symbol or section, it + # When the relocation points to the beginning of a symbol or section, it # won't print the offset since it is zero. if [ -z "${symbol_offset}" ]; then symbol_offset=0x0
@@ -77,7 +77,7 @@ function handle_suspicious_generic_reloc() { if is_executable_section ${section}; then # We've got a relocation to a non white listed _executable_ - # section, print a warning so the developper adds the section to + # section, print a warning so the developer adds the section to # the white list or fix his code. We try to pretty-print the file # and line number where that relocation was added. echo "Warning: found a reference to section \"${section}\" in __ex_table:"
@@ -114,7 +114,7 @@ function diagnose() # When there's a global symbol at the place of the relocation, # objdump will use it instead of giving us a section+offset, so # let's find out which section is this symbol in and the total - # offset withing that section. + # offset within that section. find_section_offset_from_symbol ${symbol} ${symbol_offset} # In this case objdump was presenting us with a reloc to a symbol
tools/arch/x86/include/asm/cmpxchg.h +1 -1
@@ -5,7 +5,7 @@#include <linux/compiler.h> /* -* Non-existant functions to indicate usage errors at link time +* Non-existent functions to indicate usage errors at link time * (or compile-time if the compiler implements __compiletime_error(). */ extern void __cmpxchg_wrong_size (void )
tools/arch/x86/include/uapi/asm/kvm.h +1 -1
@@ -551,7 +551,7 @@ struct kvm_nested_state { } hdr;/* -* Define data region as 0 bytes to preserve backwards-compatability +* Define data region as 0 bytes to preserve backwards-compatibility * to old definition of kvm_nested_state in order to avoid changing * KVM_{GET,PUT}_NESTED_STATE ioctl values. */
tools/include/linux/filter.h +1 -1
@@ -66,7 +66,7 @@ .off = 0, \ .imm = IMM }) -/* Endianess conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */ +/* Endianness conversion, cpu_to_{l,b}e(), {l,b}e_to_cpu() */ #define BPF_ENDIAN (TYPE ,DST ,LEN ) \ ((struct bpf_insn) { \
tools/include/uapi/asm-generic/mman-common.h +1 -1
@@ -62,7 +62,7 @@#define MADV_HUGEPAGE 14/* Worth backing with hugepages */ #define MADV_NOHUGEPAGE 15/* Not worth backing with hugepages */ -#define MADV_DONTDUMP 16/* Explicity exclude from the core dump, +#define MADV_DONTDUMP 16/* Explicitly exclude from the core dump, overrides the coredump filter bits */ #define MADV_DODUMP 17/* Clear the MADV_DONTDUMP flag */
tools/include/uapi/linux/elf.h +1 -1
@@ -390,7 +390,7 @@ typedef struct elf64_shdr {#define NT_AUXV 6/* * Note to userspace developers: size of NT_SIGINFO note may increase -* in the future to accomodate more fields, don't assume it is fixed! +* in the future to accommodate more fields, don't assume it is fixed! */ #define NT_SIGINFO 0x53494749#define NT_FILE 0x46494c45
tools/include/uapi/linux/fs.h +1 -1
@@ -77,7 +77,7 @@ struct fstrim_range {* We include a length field because some filesystems (vfat) have an identifier * that we do want to expose as a UUID, but doesn't have the standard length. * -* We use a fixed size buffer beacuse this interface will, by fiat, never +* We use a fixed size buffer because this interface will, by fiat, never * support "UUIDs" longer than 16 bytes; we don't want to force all downstream * users to have to deal with that. */
tools/include/uapi/linux/seccomp.h +1 -1
@@ -104,7 +104,7 @@ struct seccomp_notif {* SECCOMP_IOCTL_NOTIF_SEND from earlier filters, essentially allowing all * such filtered syscalls to be executed by sending the response * SECCOMP_USER_NOTIF_FLAG_CONTINUE. Note that SECCOMP_RET_TRACE can equally -* be overriden by SECCOMP_USER_NOTIF_FLAG_CONTINUE. +* be overridden by SECCOMP_USER_NOTIF_FLAG_CONTINUE. */ #define SECCOMP_USER_NOTIF_FLAG_CONTINUE (1UL << 0)
Signature · 1 line
2.48.1
PATCH 2/2 treewide: fix repeated words in comments
In reply to Hemanth SelamDrop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
--- fs/squashfs/cache.c | 2 +- include/linux/folio_queue.h | 2 +- include/linux/platform_data/emif_plat.h | 2 +- include/uapi/linux/um_timetravel.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
fs/squashfs/cache.c +1 -1
@@ -22,7 +22,7 @@* It should be noted that the cache is not used for file datablocks, these * are decompressed and cached in the page-cache in the normal way. The * cache is only used to temporarily cache fragment and metadata blocks -* which have been read as as a result of a metadata (i.e. inode or +* which have been read as a result of a metadata (i.e. inode or * directory) or fragment access. Because metadata and fragments are packed * together into blocks (to gain greater compression) the read of a particular * piece of metadata or fragment will retrieve other metadata/fragments which
include/linux/folio_queue.h +1 -1
@@ -206,7 +206,7 @@ static inline unsigned int folioq_append(struct folio_queue *folioq, struct foli* Add a folio to the tail of the sequence in a folio queue segment, increasing * the occupancy count and returning the slot number for the folio just added. * The folio size is extracted and stored in the queue, the first mark is set -* and and the second and third marks are left unmodified. +* and the second and third marks are left unmodified. * * Note that it's left up to the caller to check that the segment capacity will * not be exceeded and to extend the queue.
include/linux/platform_data/emif_plat.h +1 -1
@@ -98,7 +98,7 @@ struct emif_custom_configs {* as type, bus width, density etc * @timings: Timings information from device datasheet passed * as an array of 'struct lpddr2_timings'. Can be NULL -* if if default timings are ok +* if default timings are ok * @timings_arr_size: Size of the timings array. Depends on the number * of different frequencies for which timings data * is provided
include/uapi/linux/um_timetravel.h +1 -1
@@ -153,7 +153,7 @@ enum um_timetravel_ops {* This message can be used to sync all components in the system * with a single message, if the calendar gets the message, the * calendar broadcast the message to all components, and if a -* component receives it it should act based on it e.g print a +* component receives it should act based on it e.g print a * message to it's log system. * (calendar <-> host) */
Signature · 1 line
2.48.1
Re: [PATCH 2/2] treewide: fix repeated words in comments
Please drop the include/uapi/linux/um_timetravel.h hunk of this patch; it is wrong.
"the calender broadcast the message to all components, and if a
component receives it it should act based on it"
The two "it"s sit on either side of a clause boundary - "if a component receives it" then "it should act". Both are needed.
I can resend the remainder of the patch without that hunk if it is still of interest.