Skip to content

Commit 672a9c1

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree updates from Jiri Kosina. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: kfifo: fix inaccurate comment tools/thermal: tmon: fix for segfault net: Spelling s/stucture/structure/ edd: don't spam log if no EDD information is present Documentation: Fix early-microcode.txt references after file rename tracing: Block comments should align the * on each line treewide: Fix typos in printk GenWQE: Fix a typo in two comments treewide: Align function definition open/close braces
2 parents e8403b4 + 75a24b8 commit 672a9c1

File tree

40 files changed

+60
-61
lines changed

40 files changed

+60
-61
lines changed

Documentation/x86/00-INDEX

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
- this file
33
boot.txt
44
- List of boot protocol versions
5-
early-microcode.txt
6-
- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
75
earlyprintk.txt
86
- Using earlyprintk with a USB2 debug port key.
97
entry_64.txt
108
- Describe (some of the) kernel entry points for x86.
119
exception-tables.txt
1210
- why and how Linux kernel uses exception tables on x86
11+
microcode.txt
12+
- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
1313
mtrr.txt
1414
- how to use x86 Memory Type Range Registers to increase performance
1515
pat.txt

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ config MICROCODE
12961296
the Linux kernel.
12971297

12981298
The preferred method to load microcode from a detached initrd is described
1299-
in Documentation/x86/early-microcode.txt. For that you need to enable
1299+
in Documentation/x86/microcode.txt. For that you need to enable
13001300
CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the
13011301
initrd for microcode blobs.
13021302

arch/x86/include/asm/atomic64_32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static inline long long arch_atomic64_read(const atomic64_t *v)
123123
long long r;
124124
alternative_atomic64(read, "=&A" (r), "c" (v) : "memory");
125125
return r;
126-
}
126+
}
127127

128128
/**
129129
* arch_atomic64_add_return - add and return

arch/x86/kernel/cpu/microcode/amd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static u8 amd_ucode_patch[PATCH_MAX_SIZE];
5858

5959
/*
6060
* Microcode patch container file is prepended to the initrd in cpio
61-
* format. See Documentation/x86/early-microcode.txt
61+
* format. See Documentation/x86/microcode.txt
6262
*/
6363
static const char
6464
ucode_path[] __maybe_unused = "kernel/x86/microcode/AuthenticAMD.bin";

drivers/acpi/custom_method.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void __exit acpi_custom_method_exit(void)
9494
{
9595
if (cm_dentry)
9696
debugfs_remove(cm_dentry);
97-
}
97+
}
9898

9999
module_init(acpi_custom_method_init);
100100
module_exit(acpi_custom_method_exit);

drivers/acpi/fan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state)
219219
return fan_set_state_acpi4(device, state);
220220
else
221221
return fan_set_state(device, state);
222-
}
222+
}
223223

224224
static const struct thermal_cooling_device_ops fan_cooling_ops = {
225225
.get_max_state = fan_get_max_state,

drivers/firmware/edd.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,14 +748,12 @@ edd_init(void)
748748
int rc=0;
749749
struct edd_device *edev;
750750

751+
if (!edd_num_devices())
752+
return -ENODEV;
753+
751754
printk(KERN_INFO "BIOS EDD facility v%s %s, %d devices found\n",
752755
EDD_VERSION, EDD_DATE, edd_num_devices());
753756

754-
if (!edd_num_devices()) {
755-
printk(KERN_INFO "EDD information not available.\n");
756-
return -ENODEV;
757-
}
758-
759757
edd_kset = kset_create_and_add("edd", NULL, firmware_kobj);
760758
if (!edd_kset)
761759
return -ENOMEM;

drivers/fmc/fmc-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ int fmc_device_register_n_gw(struct fmc_device **devs, int n,
244244
if (!fmc->carrier_name || !fmc->carrier_data ||
245245
!fmc->device_id) {
246246
dev_err(fmc->hwdev,
247-
"deivce nr %i: carrier name, "
247+
"device nr %i: carrier name, "
248248
"data or dev_id not set\n", i);
249249
ret = -EINVAL;
250250
}

drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
277277
else
278278
return AMDGPU_FW_LOAD_PSP;
279279
default:
280-
DRM_ERROR("Unknow firmware load type\n");
280+
DRM_ERROR("Unknown firmware load type\n");
281281
}
282282

283283
return AMDGPU_FW_LOAD_DIRECT;

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ static void disable_dangling_plane(struct dc *dc, struct dc_state *context)
589589
******************************************************************************/
590590

591591
struct dc *dc_create(const struct dc_init_data *init_params)
592-
{
592+
{
593593
struct dc *dc = kzalloc(sizeof(*dc), GFP_KERNEL);
594594
unsigned int full_pipe_count;
595595

drivers/gpu/drm/i915/intel_cdclk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ static void cnl_cdclk_pll_disable(struct drm_i915_private *dev_priv)
16261626

16271627
/* Timeout 200us */
16281628
if (wait_for((I915_READ(BXT_DE_PLL_ENABLE) & BXT_DE_PLL_LOCK) == 0, 1))
1629-
DRM_ERROR("timout waiting for CDCLK PLL unlock\n");
1629+
DRM_ERROR("timeout waiting for CDCLK PLL unlock\n");
16301630

16311631
dev_priv->cdclk.hw.vco = 0;
16321632
}
@@ -1644,7 +1644,7 @@ static void cnl_cdclk_pll_enable(struct drm_i915_private *dev_priv, int vco)
16441644

16451645
/* Timeout 200us */
16461646
if (wait_for((I915_READ(BXT_DE_PLL_ENABLE) & BXT_DE_PLL_LOCK) != 0, 1))
1647-
DRM_ERROR("timout waiting for CDCLK PLL lock\n");
1647+
DRM_ERROR("timeout waiting for CDCLK PLL lock\n");
16481648

16491649
dev_priv->cdclk.hw.vco = vco;
16501650
}

drivers/media/i2c/msp3400-kthreads.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ static int msp34xxg_modus(struct i2c_client *client)
885885
}
886886

887887
static void msp34xxg_set_source(struct i2c_client *client, u16 reg, int in)
888-
{
888+
{
889889
struct msp_state *state = to_state(i2c_get_clientdata(client));
890890
int source, matrix;
891891

drivers/message/fusion/mptsas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2967,7 +2967,7 @@ mptsas_exp_repmanufacture_info(MPT_ADAPTER *ioc,
29672967
mutex_unlock(&ioc->sas_mgmt.mutex);
29682968
out:
29692969
return ret;
2970-
}
2970+
}
29712971

29722972
static void
29732973
mptsas_parse_device_info(struct sas_identify *identify,

drivers/misc/genwqe/card_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,
453453
s += 8; /* continue 8 elements further */
454454
}
455455
fixup:
456-
if (j == 1) { /* combining happend on last entry! */
456+
if (j == 1) { /* combining happened on last entry! */
457457
s -= 8; /* full shift needed on previous sgl block */
458458
j = 7; /* shift all elements */
459459
}
@@ -471,7 +471,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,
471471
* genwqe_free_sync_sgl() - Free memory for sgl and overlapping pages
472472
*
473473
* After the DMA transfer has been completed we free the memory for
474-
* the sgl and the cached pages. Data is being transfered from cached
474+
* the sgl and the cached pages. Data is being transferred from cached
475475
* pages into user-space buffers.
476476
*/
477477
int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl)

drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ static struct uni_table_desc *nx_get_table_desc(const u8 *unirom, int section)
603603

604604
static int
605605
netxen_nic_validate_header(struct netxen_adapter *adapter)
606-
{
606+
{
607607
const u8 *unirom = adapter->fw->data;
608608
struct uni_table_desc *directory = (struct uni_table_desc *) &unirom[0];
609609
u32 fw_file_size = adapter->fw->size;

drivers/net/ethernet/qlogic/qed/qed_int.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static int qed_pglub_rbc_attn_cb(struct qed_hwfn *p_hwfn)
321321
tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt,
322322
PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL);
323323
if (tmp & PGLUE_ATTENTION_ICPL_VALID)
324-
DP_INFO(p_hwfn, "ICPL eror - %08x\n", tmp);
324+
DP_INFO(p_hwfn, "ICPL error - %08x\n", tmp);
325325

326326
tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt,
327327
PGLUE_B_REG_MASTER_ZLR_ERR_DETAILS);

drivers/net/ethernet/ti/tlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ ThunderLAN driver adapter related routines
19011901
* Nothing
19021902
* Parms:
19031903
* dev The device structure with the list
1904-
* stuctures to be reset.
1904+
* structures to be reset.
19051905
*
19061906
* This routine sets the variables associated with managing
19071907
* the TLAN lists to their initial values.

drivers/net/wireless/ath/ath9k/xmit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ ath_tid_pull(struct ath_atx_tid *tid)
252252
}
253253

254254
return skb;
255-
}
255+
}
256256

257257

258258
static bool ath_tid_has_buffered(struct ath_atx_tid *tid)

drivers/net/wireless/atmel/atmel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3861,7 +3861,7 @@ static int reset_atmel_card(struct net_device *dev)
38613861
38623862
set all the Mib values which matter in the card to match
38633863
their settings in the atmel_private structure. Some of these
3864-
can be altered on the fly, but many (WEP, infrastucture or ad-hoc)
3864+
can be altered on the fly, but many (WEP, infrastructure or ad-hoc)
38653865
can only be changed by tearing down the world and coming back through
38663866
here.
38673867

drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4431,7 +4431,7 @@ void rtl8xxxu_gen1_init_aggregation(struct rtl8xxxu_priv *priv)
44314431
timeout = page_thresh;
44324432
else if (rtl8xxxu_dma_agg_pages <= 6)
44334433
dev_err(&priv->udev->dev,
4434-
"%s: dma_agg_pages=%i too small, minium is 6\n",
4434+
"%s: dma_agg_pages=%i too small, minimum is 6\n",
44354435
__func__, rtl8xxxu_dma_agg_pages);
44364436
else
44374437
dev_err(&priv->udev->dev,

drivers/platform/x86/eeepc-laptop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ static void eeepc_platform_exit(struct eeepc_laptop *eeepc)
492492
* potentially bad time, such as a timer interrupt.
493493
*/
494494
static void tpd_led_update(struct work_struct *work)
495-
{
495+
{
496496
struct eeepc_laptop *eeepc;
497497

498498
eeepc = container_of(work, struct eeepc_laptop, tpd_led_work);

drivers/rtc/rtc-ab-b5ze-s3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ static int abb5zes3_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
648648
ret);
649649

650650
return ret;
651-
}
651+
}
652652

653653
/* Enable or disable battery low irq generation */
654654
static inline int _abb5zes3_rtc_battery_low_irq_enable(struct regmap *regmap,

drivers/scsi/aacraid/src.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type)
786786
if (!is_ctrl_up)
787787
dev_err(&dev->pdev->dev, "IOP reset failed\n");
788788
else {
789-
dev_info(&dev->pdev->dev, "IOP reset succeded\n");
789+
dev_info(&dev->pdev->dev, "IOP reset succeeded\n");
790790
goto set_startup;
791791
}
792792
}
@@ -808,7 +808,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type)
808808
ret = -ENODEV;
809809
goto out;
810810
} else
811-
dev_info(&dev->pdev->dev, "SOFT reset succeded\n");
811+
dev_info(&dev->pdev->dev, "SOFT reset succeeded\n");
812812
}
813813

814814
set_startup:

drivers/scsi/dpt_i2o.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3524,7 +3524,7 @@ static int adpt_i2o_systab_send(adpt_hba* pHba)
35243524
#endif
35253525

35263526
return ret;
3527-
}
3527+
}
35283528

35293529

35303530
/*============================================================================

drivers/scsi/qedi/qedi_fw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ static int qedi_map_scsi_sg(struct qedi_ctx *qedi, struct qedi_cmd *cmd)
18821882
bd[bd_count].sge_len = (u16)sg_len;
18831883

18841884
QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_IO,
1885-
"single-cashed-sgl: bd_count:%d addr=%llx, len=%x",
1885+
"single-cached-sgl: bd_count:%d addr=%llx, len=%x",
18861886
sg_count, addr, sg_len);
18871887

18881888
return ++bd_count;

drivers/scsi/sym53c8xx_2/sym_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit,
13931393
scsi_host_put(shost);
13941394

13951395
return NULL;
1396-
}
1396+
}
13971397

13981398

13991399
/*

fs/locks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static const struct lock_manager_operations lease_manager_ops = {
559559
* Initialize a lease, use the default lock manager operations
560560
*/
561561
static int lease_init(struct file *filp, long type, struct file_lock *fl)
562-
{
562+
{
563563
if (assign_type(fl, type) != 0)
564564
return -EINVAL;
565565

fs/ocfs2/stack_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static int ocfs2_control_do_setnode_msg(struct file *file,
398398

399399
static int ocfs2_control_do_setversion_msg(struct file *file,
400400
struct ocfs2_control_message_setv *msg)
401-
{
401+
{
402402
long major, minor;
403403
char *ptr = NULL;
404404
struct ocfs2_control_private *p = file->private_data;

fs/orangefs/orangefs-utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ int orangefs_normalize_to_errno(__s32 error_code)
500500
* server.
501501
*/
502502
} else if (error_code > 0) {
503-
gossip_err("orangefs: error status receieved.\n");
503+
gossip_err("orangefs: error status received.\n");
504504
gossip_err("orangefs: assuming error code is inverted.\n");
505505
error_code = -error_code;
506506
}

fs/xfs/xfs_export.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ xfs_nfs_get_inode(
122122
struct super_block *sb,
123123
u64 ino,
124124
u32 generation)
125-
{
125+
{
126126
xfs_mount_t *mp = XFS_M(sb);
127127
xfs_inode_t *ip;
128128
int error;

include/net/iw_handler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ struct iw_handler_def {
364364
* defined in struct iw_priv_args.
365365
*
366366
* For standard IOCTLs, things are quite different and we need to
367-
* use the stuctures below. Actually, this struct is also more
367+
* use the structures below. Actually, this struct is also more
368368
* efficient, but that's another story...
369369
*/
370370

kernel/audit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,15 +443,15 @@ static int audit_set_failure(u32 state)
443443
* Drop any references inside the auditd connection tracking struct and free
444444
* the memory.
445445
*/
446-
static void auditd_conn_free(struct rcu_head *rcu)
447-
{
446+
static void auditd_conn_free(struct rcu_head *rcu)
447+
{
448448
struct auditd_connection *ac;
449449

450450
ac = container_of(rcu, struct auditd_connection, rcu);
451451
put_pid(ac->pid);
452452
put_net(ac->net);
453453
kfree(ac);
454-
}
454+
}
455455

456456
/**
457457
* auditd_set - Set/Reset the auditd connection state

kernel/trace/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,7 @@ EXPORT_SYMBOL_GPL(trace_event_buffer_commit);
23802380
* trace_buffer_unlock_commit_regs()
23812381
* trace_event_buffer_commit()
23822382
* trace_event_raw_event_xxx()
2383-
*/
2383+
*/
23842384
# define STACK_SKIP 3
23852385

23862386
void trace_buffer_unlock_commit_regs(struct trace_array *tr,

kernel/trace/trace_printk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ struct notifier_block module_trace_bprintk_format_nb = {
196196
};
197197

198198
int __trace_bprintk(unsigned long ip, const char *fmt, ...)
199-
{
199+
{
200200
int ret;
201201
va_list ap;
202202

@@ -214,7 +214,7 @@ int __trace_bprintk(unsigned long ip, const char *fmt, ...)
214214
EXPORT_SYMBOL_GPL(__trace_bprintk);
215215

216216
int __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap)
217-
{
217+
{
218218
if (unlikely(!fmt))
219219
return 0;
220220

lib/kfifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int __kfifo_alloc(struct __kfifo *fifo, unsigned int size,
3939
size_t esize, gfp_t gfp_mask)
4040
{
4141
/*
42-
* round down to the next power of 2, since our 'let the indices
42+
* round up to the next power of 2, since our 'let the indices
4343
* wrap' technique works only in this case.
4444
*/
4545
size = roundup_pow_of_two(size);

0 commit comments

Comments
 (0)