Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+60 -61
+2 -2
Documentation/x86/00-INDEX
··· 2 2 - this file 3 3 boot.txt 4 4 - List of boot protocol versions 5 - early-microcode.txt 6 - - How to load microcode from an initrd-CPIO archive early to fix CPU issues. 7 5 earlyprintk.txt 8 6 - Using earlyprintk with a USB2 debug port key. 9 7 entry_64.txt 10 8 - Describe (some of the) kernel entry points for x86. 11 9 exception-tables.txt 12 10 - 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. 13 13 mtrr.txt 14 14 - how to use x86 Memory Type Range Registers to increase performance 15 15 pat.txt
+1 -1
arch/x86/Kconfig
··· 1296 1296 the Linux kernel. 1297 1297 1298 1298 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 1300 1300 CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the 1301 1301 initrd for microcode blobs. 1302 1302
+1 -1
arch/x86/include/asm/atomic64_32.h
··· 123 123 long long r; 124 124 alternative_atomic64(read, "=&A" (r), "c" (v) : "memory"); 125 125 return r; 126 - } 126 + } 127 127 128 128 /** 129 129 * arch_atomic64_add_return - add and return
+1 -1
arch/x86/kernel/cpu/microcode/amd.c
··· 58 58 59 59 /* 60 60 * 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 62 62 */ 63 63 static const char 64 64 ucode_path[] __maybe_unused = "kernel/x86/microcode/AuthenticAMD.bin";
+1 -1
drivers/acpi/custom_method.c
··· 94 94 { 95 95 if (cm_dentry) 96 96 debugfs_remove(cm_dentry); 97 - } 97 + } 98 98 99 99 module_init(acpi_custom_method_init); 100 100 module_exit(acpi_custom_method_exit);
+1 -1
drivers/acpi/fan.c
··· 219 219 return fan_set_state_acpi4(device, state); 220 220 else 221 221 return fan_set_state(device, state); 222 - } 222 + } 223 223 224 224 static const struct thermal_cooling_device_ops fan_cooling_ops = { 225 225 .get_max_state = fan_get_max_state,
+3 -5
drivers/firmware/edd.c
··· 748 748 int rc=0; 749 749 struct edd_device *edev; 750 750 751 + if (!edd_num_devices()) 752 + return -ENODEV; 753 + 751 754 printk(KERN_INFO "BIOS EDD facility v%s %s, %d devices found\n", 752 755 EDD_VERSION, EDD_DATE, edd_num_devices()); 753 - 754 - if (!edd_num_devices()) { 755 - printk(KERN_INFO "EDD information not available.\n"); 756 - return -ENODEV; 757 - } 758 756 759 757 edd_kset = kset_create_and_add("edd", NULL, firmware_kobj); 760 758 if (!edd_kset)
+1 -1
drivers/fmc/fmc-core.c
··· 244 244 if (!fmc->carrier_name || !fmc->carrier_data || 245 245 !fmc->device_id) { 246 246 dev_err(fmc->hwdev, 247 - "deivce nr %i: carrier name, " 247 + "device nr %i: carrier name, " 248 248 "data or dev_id not set\n", i); 249 249 ret = -EINVAL; 250 250 }
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
··· 277 277 else 278 278 return AMDGPU_FW_LOAD_PSP; 279 279 default: 280 - DRM_ERROR("Unknow firmware load type\n"); 280 + DRM_ERROR("Unknown firmware load type\n"); 281 281 } 282 282 283 283 return AMDGPU_FW_LOAD_DIRECT;
+1 -1
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 589 589 ******************************************************************************/ 590 590 591 591 struct dc *dc_create(const struct dc_init_data *init_params) 592 - { 592 + { 593 593 struct dc *dc = kzalloc(sizeof(*dc), GFP_KERNEL); 594 594 unsigned int full_pipe_count; 595 595
+2 -2
drivers/gpu/drm/i915/intel_cdclk.c
··· 1626 1626 1627 1627 /* Timeout 200us */ 1628 1628 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"); 1630 1630 1631 1631 dev_priv->cdclk.hw.vco = 0; 1632 1632 } ··· 1644 1644 1645 1645 /* Timeout 200us */ 1646 1646 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"); 1648 1648 1649 1649 dev_priv->cdclk.hw.vco = vco; 1650 1650 }
+1 -1
drivers/media/i2c/msp3400-kthreads.c
··· 885 885 } 886 886 887 887 static void msp34xxg_set_source(struct i2c_client *client, u16 reg, int in) 888 - { 888 + { 889 889 struct msp_state *state = to_state(i2c_get_clientdata(client)); 890 890 int source, matrix; 891 891
+1 -1
drivers/message/fusion/mptsas.c
··· 2967 2967 mutex_unlock(&ioc->sas_mgmt.mutex); 2968 2968 out: 2969 2969 return ret; 2970 - } 2970 + } 2971 2971 2972 2972 static void 2973 2973 mptsas_parse_device_info(struct sas_identify *identify,
+2 -2
drivers/misc/genwqe/card_utils.c
··· 453 453 s += 8; /* continue 8 elements further */ 454 454 } 455 455 fixup: 456 - if (j == 1) { /* combining happend on last entry! */ 456 + if (j == 1) { /* combining happened on last entry! */ 457 457 s -= 8; /* full shift needed on previous sgl block */ 458 458 j = 7; /* shift all elements */ 459 459 } ··· 471 471 * genwqe_free_sync_sgl() - Free memory for sgl and overlapping pages 472 472 * 473 473 * 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 475 475 * pages into user-space buffers. 476 476 */ 477 477 int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl)
+1 -1
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
··· 603 603 604 604 static int 605 605 netxen_nic_validate_header(struct netxen_adapter *adapter) 606 - { 606 + { 607 607 const u8 *unirom = adapter->fw->data; 608 608 struct uni_table_desc *directory = (struct uni_table_desc *) &unirom[0]; 609 609 u32 fw_file_size = adapter->fw->size;
+1 -1
drivers/net/ethernet/qlogic/qed/qed_int.c
··· 321 321 tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, 322 322 PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL); 323 323 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); 325 325 326 326 tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, 327 327 PGLUE_B_REG_MASTER_ZLR_ERR_DETAILS);
+1 -1
drivers/net/ethernet/ti/tlan.c
··· 1901 1901 * Nothing 1902 1902 * Parms: 1903 1903 * dev The device structure with the list 1904 - * stuctures to be reset. 1904 + * structures to be reset. 1905 1905 * 1906 1906 * This routine sets the variables associated with managing 1907 1907 * the TLAN lists to their initial values.
+1 -1
drivers/net/wireless/ath/ath9k/xmit.c
··· 252 252 } 253 253 254 254 return skb; 255 - } 255 + } 256 256 257 257 258 258 static bool ath_tid_has_buffered(struct ath_atx_tid *tid)
+1 -1
drivers/net/wireless/atmel/atmel.c
··· 3861 3861 3862 3862 set all the Mib values which matter in the card to match 3863 3863 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) 3865 3865 can only be changed by tearing down the world and coming back through 3866 3866 here. 3867 3867
+1 -1
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
··· 4431 4431 timeout = page_thresh; 4432 4432 else if (rtl8xxxu_dma_agg_pages <= 6) 4433 4433 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", 4435 4435 __func__, rtl8xxxu_dma_agg_pages); 4436 4436 else 4437 4437 dev_err(&priv->udev->dev,
+1 -1
drivers/platform/x86/eeepc-laptop.c
··· 492 492 * potentially bad time, such as a timer interrupt. 493 493 */ 494 494 static void tpd_led_update(struct work_struct *work) 495 - { 495 + { 496 496 struct eeepc_laptop *eeepc; 497 497 498 498 eeepc = container_of(work, struct eeepc_laptop, tpd_led_work);
+1 -1
drivers/rtc/rtc-ab-b5ze-s3.c
··· 648 648 ret); 649 649 650 650 return ret; 651 - } 651 + } 652 652 653 653 /* Enable or disable battery low irq generation */ 654 654 static inline int _abb5zes3_rtc_battery_low_irq_enable(struct regmap *regmap,
+2 -2
drivers/scsi/aacraid/src.c
··· 786 786 if (!is_ctrl_up) 787 787 dev_err(&dev->pdev->dev, "IOP reset failed\n"); 788 788 else { 789 - dev_info(&dev->pdev->dev, "IOP reset succeded\n"); 789 + dev_info(&dev->pdev->dev, "IOP reset succeeded\n"); 790 790 goto set_startup; 791 791 } 792 792 } ··· 808 808 ret = -ENODEV; 809 809 goto out; 810 810 } else 811 - dev_info(&dev->pdev->dev, "SOFT reset succeded\n"); 811 + dev_info(&dev->pdev->dev, "SOFT reset succeeded\n"); 812 812 } 813 813 814 814 set_startup:
+1 -1
drivers/scsi/dpt_i2o.c
··· 3524 3524 #endif 3525 3525 3526 3526 return ret; 3527 - } 3527 + } 3528 3528 3529 3529 3530 3530 /*============================================================================
+1 -1
drivers/scsi/qedi/qedi_fw.c
··· 1882 1882 bd[bd_count].sge_len = (u16)sg_len; 1883 1883 1884 1884 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", 1886 1886 sg_count, addr, sg_len); 1887 1887 1888 1888 return ++bd_count;
+1 -1
drivers/scsi/sym53c8xx_2/sym_glue.c
··· 1393 1393 scsi_host_put(shost); 1394 1394 1395 1395 return NULL; 1396 - } 1396 + } 1397 1397 1398 1398 1399 1399 /*
+1 -1
fs/locks.c
··· 559 559 * Initialize a lease, use the default lock manager operations 560 560 */ 561 561 static int lease_init(struct file *filp, long type, struct file_lock *fl) 562 - { 562 + { 563 563 if (assign_type(fl, type) != 0) 564 564 return -EINVAL; 565 565
+1 -1
fs/ocfs2/stack_user.c
··· 398 398 399 399 static int ocfs2_control_do_setversion_msg(struct file *file, 400 400 struct ocfs2_control_message_setv *msg) 401 - { 401 + { 402 402 long major, minor; 403 403 char *ptr = NULL; 404 404 struct ocfs2_control_private *p = file->private_data;
+1 -1
fs/orangefs/orangefs-utils.c
··· 500 500 * server. 501 501 */ 502 502 } else if (error_code > 0) { 503 - gossip_err("orangefs: error status receieved.\n"); 503 + gossip_err("orangefs: error status received.\n"); 504 504 gossip_err("orangefs: assuming error code is inverted.\n"); 505 505 error_code = -error_code; 506 506 }
+1 -1
fs/xfs/xfs_export.c
··· 122 122 struct super_block *sb, 123 123 u64 ino, 124 124 u32 generation) 125 - { 125 + { 126 126 xfs_mount_t *mp = XFS_M(sb); 127 127 xfs_inode_t *ip; 128 128 int error;
+1 -1
include/net/iw_handler.h
··· 364 364 * defined in struct iw_priv_args. 365 365 * 366 366 * 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 368 368 * efficient, but that's another story... 369 369 */ 370 370
+3 -3
kernel/audit.c
··· 443 443 * Drop any references inside the auditd connection tracking struct and free 444 444 * the memory. 445 445 */ 446 - static void auditd_conn_free(struct rcu_head *rcu) 447 - { 446 + static void auditd_conn_free(struct rcu_head *rcu) 447 + { 448 448 struct auditd_connection *ac; 449 449 450 450 ac = container_of(rcu, struct auditd_connection, rcu); 451 451 put_pid(ac->pid); 452 452 put_net(ac->net); 453 453 kfree(ac); 454 - } 454 + } 455 455 456 456 /** 457 457 * auditd_set - Set/Reset the auditd connection state
+1 -1
kernel/trace/trace.c
··· 2380 2380 * trace_buffer_unlock_commit_regs() 2381 2381 * trace_event_buffer_commit() 2382 2382 * trace_event_raw_event_xxx() 2383 - */ 2383 + */ 2384 2384 # define STACK_SKIP 3 2385 2385 2386 2386 void trace_buffer_unlock_commit_regs(struct trace_array *tr,
+2 -2
kernel/trace/trace_printk.c
··· 196 196 }; 197 197 198 198 int __trace_bprintk(unsigned long ip, const char *fmt, ...) 199 - { 199 + { 200 200 int ret; 201 201 va_list ap; 202 202 ··· 214 214 EXPORT_SYMBOL_GPL(__trace_bprintk); 215 215 216 216 int __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap) 217 - { 217 + { 218 218 if (unlikely(!fmt)) 219 219 return 0; 220 220
+1 -1
lib/kfifo.c
··· 39 39 size_t esize, gfp_t gfp_mask) 40 40 { 41 41 /* 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 43 43 * wrap' technique works only in this case. 44 44 */ 45 45 size = roundup_pow_of_two(size);
+7 -7
lib/raid6/sse2.c
··· 91 91 92 92 static void raid6_sse21_xor_syndrome(int disks, int start, int stop, 93 93 size_t bytes, void **ptrs) 94 - { 94 + { 95 95 u8 **dptr = (u8 **)ptrs; 96 96 u8 *p, *q; 97 97 int d, z, z0; ··· 200 200 kernel_fpu_end(); 201 201 } 202 202 203 - static void raid6_sse22_xor_syndrome(int disks, int start, int stop, 203 + static void raid6_sse22_xor_syndrome(int disks, int start, int stop, 204 204 size_t bytes, void **ptrs) 205 - { 205 + { 206 206 u8 **dptr = (u8 **)ptrs; 207 207 u8 *p, *q; 208 208 int d, z, z0; ··· 265 265 266 266 asm volatile("sfence" : : : "memory"); 267 267 kernel_fpu_end(); 268 - } 268 + } 269 269 270 270 const struct raid6_calls raid6_sse2x2 = { 271 271 raid6_sse22_gen_syndrome, ··· 366 366 kernel_fpu_end(); 367 367 } 368 368 369 - static void raid6_sse24_xor_syndrome(int disks, int start, int stop, 369 + static void raid6_sse24_xor_syndrome(int disks, int start, int stop, 370 370 size_t bytes, void **ptrs) 371 - { 371 + { 372 372 u8 **dptr = (u8 **)ptrs; 373 373 u8 *p, *q; 374 374 int d, z, z0; ··· 471 471 } 472 472 asm volatile("sfence" : : : "memory"); 473 473 kernel_fpu_end(); 474 - } 474 + } 475 475 476 476 477 477 const struct raid6_calls raid6_sse2x4 = {
+1 -1
net/socket.c
··· 1536 1536 * 1537 1537 * 1003.1g adds the ability to recvmsg() to query connection pending 1538 1538 * status to recvmsg. We need to add that support in a way thats 1539 - * clean when we restucture accept also. 1539 + * clean when we restructure accept also. 1540 1540 */ 1541 1541 1542 1542 int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr,
+1 -1
sound/soc/fsl/fsl_dma.c
··· 886 886 }; 887 887 888 888 static int fsl_soc_dma_probe(struct platform_device *pdev) 889 - { 889 + { 890 890 struct dma_object *dma; 891 891 struct device_node *np = pdev->dev.of_node; 892 892 struct device_node *ssi_np;
+7 -5
tools/thermal/tmon/sysfs.c
··· 486 486 int update_thermal_data() 487 487 { 488 488 int i; 489 + int next_thermal_record = cur_thermal_record + 1; 489 490 char tz_name[256]; 490 491 static unsigned long samples; 491 492 ··· 496 495 } 497 496 498 497 /* circular buffer for keeping historic data */ 499 - if (cur_thermal_record >= NR_THERMAL_RECORDS) 500 - cur_thermal_record = 0; 501 - gettimeofday(&trec[cur_thermal_record].tv, NULL); 498 + if (next_thermal_record >= NR_THERMAL_RECORDS) 499 + next_thermal_record = 0; 500 + gettimeofday(&trec[next_thermal_record].tv, NULL); 502 501 if (tmon_log) { 503 502 fprintf(tmon_log, "%lu ", ++samples); 504 503 fprintf(tmon_log, "%3.1f ", p_param.t_target); ··· 508 507 snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, 509 508 ptdata.tzi[i].instance); 510 509 sysfs_get_ulong(tz_name, "temp", 511 - &trec[cur_thermal_record].temp[i]); 510 + &trec[next_thermal_record].temp[i]); 512 511 if (tmon_log) 513 512 fprintf(tmon_log, "%lu ", 514 - trec[cur_thermal_record].temp[i]/1000); 513 + trec[next_thermal_record].temp[i] / 1000); 515 514 } 515 + cur_thermal_record = next_thermal_record; 516 516 for (i = 0; i < ptdata.nr_cooling_dev; i++) { 517 517 char cdev_name[256]; 518 518 unsigned long val;
-1
tools/thermal/tmon/tmon.c
··· 336 336 show_data_w(); 337 337 show_cooling_device(); 338 338 } 339 - cur_thermal_record++; 340 339 time_elapsed += ticktime; 341 340 controller_handler(trec[0].temp[target_tz_index] / 1000, 342 341 &yk);