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
This commit is contained in:
Linus Torvalds 2018-04-05 11:56:35 -07:00
commit 672a9c1069
40 changed files with 60 additions and 61 deletions

View file

@ -2,14 +2,14 @@
- this file - this file
boot.txt boot.txt
- List of boot protocol versions - List of boot protocol versions
early-microcode.txt
- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
earlyprintk.txt earlyprintk.txt
- Using earlyprintk with a USB2 debug port key. - Using earlyprintk with a USB2 debug port key.
entry_64.txt entry_64.txt
- Describe (some of the) kernel entry points for x86. - Describe (some of the) kernel entry points for x86.
exception-tables.txt exception-tables.txt
- why and how Linux kernel uses exception tables on x86 - why and how Linux kernel uses exception tables on x86
microcode.txt
- How to load microcode from an initrd-CPIO archive early to fix CPU issues.
mtrr.txt mtrr.txt
- how to use x86 Memory Type Range Registers to increase performance - how to use x86 Memory Type Range Registers to increase performance
pat.txt pat.txt

View file

@ -1296,7 +1296,7 @@ config MICROCODE
the Linux kernel. the Linux kernel.
The preferred method to load microcode from a detached initrd is described The preferred method to load microcode from a detached initrd is described
in Documentation/x86/early-microcode.txt. For that you need to enable in Documentation/x86/microcode.txt. For that you need to enable
CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the
initrd for microcode blobs. initrd for microcode blobs.

View file

@ -58,7 +58,7 @@ static u8 amd_ucode_patch[PATCH_MAX_SIZE];
/* /*
* Microcode patch container file is prepended to the initrd in cpio * Microcode patch container file is prepended to the initrd in cpio
* format. See Documentation/x86/early-microcode.txt * format. See Documentation/x86/microcode.txt
*/ */
static const char static const char
ucode_path[] __maybe_unused = "kernel/x86/microcode/AuthenticAMD.bin"; ucode_path[] __maybe_unused = "kernel/x86/microcode/AuthenticAMD.bin";

View file

@ -748,14 +748,12 @@ edd_init(void)
int rc=0; int rc=0;
struct edd_device *edev; struct edd_device *edev;
if (!edd_num_devices())
return -ENODEV;
printk(KERN_INFO "BIOS EDD facility v%s %s, %d devices found\n", printk(KERN_INFO "BIOS EDD facility v%s %s, %d devices found\n",
EDD_VERSION, EDD_DATE, edd_num_devices()); EDD_VERSION, EDD_DATE, edd_num_devices());
if (!edd_num_devices()) {
printk(KERN_INFO "EDD information not available.\n");
return -ENODEV;
}
edd_kset = kset_create_and_add("edd", NULL, firmware_kobj); edd_kset = kset_create_and_add("edd", NULL, firmware_kobj);
if (!edd_kset) if (!edd_kset)
return -ENOMEM; return -ENOMEM;

View file

@ -244,7 +244,7 @@ int fmc_device_register_n_gw(struct fmc_device **devs, int n,
if (!fmc->carrier_name || !fmc->carrier_data || if (!fmc->carrier_name || !fmc->carrier_data ||
!fmc->device_id) { !fmc->device_id) {
dev_err(fmc->hwdev, dev_err(fmc->hwdev,
"deivce nr %i: carrier name, " "device nr %i: carrier name, "
"data or dev_id not set\n", i); "data or dev_id not set\n", i);
ret = -EINVAL; ret = -EINVAL;
} }

View file

@ -277,7 +277,7 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
else else
return AMDGPU_FW_LOAD_PSP; return AMDGPU_FW_LOAD_PSP;
default: default:
DRM_ERROR("Unknow firmware load type\n"); DRM_ERROR("Unknown firmware load type\n");
} }
return AMDGPU_FW_LOAD_DIRECT; return AMDGPU_FW_LOAD_DIRECT;

View file

@ -1626,7 +1626,7 @@ static void cnl_cdclk_pll_disable(struct drm_i915_private *dev_priv)
/* Timeout 200us */ /* Timeout 200us */
if (wait_for((I915_READ(BXT_DE_PLL_ENABLE) & BXT_DE_PLL_LOCK) == 0, 1)) if (wait_for((I915_READ(BXT_DE_PLL_ENABLE) & BXT_DE_PLL_LOCK) == 0, 1))
DRM_ERROR("timout waiting for CDCLK PLL unlock\n"); DRM_ERROR("timeout waiting for CDCLK PLL unlock\n");
dev_priv->cdclk.hw.vco = 0; dev_priv->cdclk.hw.vco = 0;
} }
@ -1644,7 +1644,7 @@ static void cnl_cdclk_pll_enable(struct drm_i915_private *dev_priv, int vco)
/* Timeout 200us */ /* Timeout 200us */
if (wait_for((I915_READ(BXT_DE_PLL_ENABLE) & BXT_DE_PLL_LOCK) != 0, 1)) if (wait_for((I915_READ(BXT_DE_PLL_ENABLE) & BXT_DE_PLL_LOCK) != 0, 1))
DRM_ERROR("timout waiting for CDCLK PLL lock\n"); DRM_ERROR("timeout waiting for CDCLK PLL lock\n");
dev_priv->cdclk.hw.vco = vco; dev_priv->cdclk.hw.vco = vco;
} }

View file

@ -453,7 +453,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,
s += 8; /* continue 8 elements further */ s += 8; /* continue 8 elements further */
} }
fixup: fixup:
if (j == 1) { /* combining happend on last entry! */ if (j == 1) { /* combining happened on last entry! */
s -= 8; /* full shift needed on previous sgl block */ s -= 8; /* full shift needed on previous sgl block */
j = 7; /* shift all elements */ j = 7; /* shift all elements */
} }
@ -471,7 +471,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl,
* genwqe_free_sync_sgl() - Free memory for sgl and overlapping pages * genwqe_free_sync_sgl() - Free memory for sgl and overlapping pages
* *
* After the DMA transfer has been completed we free the memory for * After the DMA transfer has been completed we free the memory for
* the sgl and the cached pages. Data is being transfered from cached * the sgl and the cached pages. Data is being transferred from cached
* pages into user-space buffers. * pages into user-space buffers.
*/ */
int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl)

View file

@ -321,7 +321,7 @@ static int qed_pglub_rbc_attn_cb(struct qed_hwfn *p_hwfn)
tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt,
PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL); PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL);
if (tmp & PGLUE_ATTENTION_ICPL_VALID) if (tmp & PGLUE_ATTENTION_ICPL_VALID)
DP_INFO(p_hwfn, "ICPL eror - %08x\n", tmp); DP_INFO(p_hwfn, "ICPL error - %08x\n", tmp);
tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt,
PGLUE_B_REG_MASTER_ZLR_ERR_DETAILS); PGLUE_B_REG_MASTER_ZLR_ERR_DETAILS);

View file

@ -1901,7 +1901,7 @@ ThunderLAN driver adapter related routines
* Nothing * Nothing
* Parms: * Parms:
* dev The device structure with the list * dev The device structure with the list
* stuctures to be reset. * structures to be reset.
* *
* This routine sets the variables associated with managing * This routine sets the variables associated with managing
* the TLAN lists to their initial values. * the TLAN lists to their initial values.

View file

@ -3861,7 +3861,7 @@ static int reset_atmel_card(struct net_device *dev)
set all the Mib values which matter in the card to match set all the Mib values which matter in the card to match
their settings in the atmel_private structure. Some of these their settings in the atmel_private structure. Some of these
can be altered on the fly, but many (WEP, infrastucture or ad-hoc) can be altered on the fly, but many (WEP, infrastructure or ad-hoc)
can only be changed by tearing down the world and coming back through can only be changed by tearing down the world and coming back through
here. here.

View file

@ -4431,7 +4431,7 @@ void rtl8xxxu_gen1_init_aggregation(struct rtl8xxxu_priv *priv)
timeout = page_thresh; timeout = page_thresh;
else if (rtl8xxxu_dma_agg_pages <= 6) else if (rtl8xxxu_dma_agg_pages <= 6)
dev_err(&priv->udev->dev, dev_err(&priv->udev->dev,
"%s: dma_agg_pages=%i too small, minium is 6\n", "%s: dma_agg_pages=%i too small, minimum is 6\n",
__func__, rtl8xxxu_dma_agg_pages); __func__, rtl8xxxu_dma_agg_pages);
else else
dev_err(&priv->udev->dev, dev_err(&priv->udev->dev,

View file

@ -786,7 +786,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type)
if (!is_ctrl_up) if (!is_ctrl_up)
dev_err(&dev->pdev->dev, "IOP reset failed\n"); dev_err(&dev->pdev->dev, "IOP reset failed\n");
else { else {
dev_info(&dev->pdev->dev, "IOP reset succeded\n"); dev_info(&dev->pdev->dev, "IOP reset succeeded\n");
goto set_startup; goto set_startup;
} }
} }
@ -808,7 +808,7 @@ static int aac_src_restart_adapter(struct aac_dev *dev, int bled, u8 reset_type)
ret = -ENODEV; ret = -ENODEV;
goto out; goto out;
} else } else
dev_info(&dev->pdev->dev, "SOFT reset succeded\n"); dev_info(&dev->pdev->dev, "SOFT reset succeeded\n");
} }
set_startup: set_startup:

View file

@ -1882,7 +1882,7 @@ static int qedi_map_scsi_sg(struct qedi_ctx *qedi, struct qedi_cmd *cmd)
bd[bd_count].sge_len = (u16)sg_len; bd[bd_count].sge_len = (u16)sg_len;
QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_IO, QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_IO,
"single-cashed-sgl: bd_count:%d addr=%llx, len=%x", "single-cached-sgl: bd_count:%d addr=%llx, len=%x",
sg_count, addr, sg_len); sg_count, addr, sg_len);
return ++bd_count; return ++bd_count;

View file

@ -500,7 +500,7 @@ int orangefs_normalize_to_errno(__s32 error_code)
* server. * server.
*/ */
} else if (error_code > 0) { } else if (error_code > 0) {
gossip_err("orangefs: error status receieved.\n"); gossip_err("orangefs: error status received.\n");
gossip_err("orangefs: assuming error code is inverted.\n"); gossip_err("orangefs: assuming error code is inverted.\n");
error_code = -error_code; error_code = -error_code;
} }

View file

@ -364,7 +364,7 @@ struct iw_handler_def {
* defined in struct iw_priv_args. * defined in struct iw_priv_args.
* *
* For standard IOCTLs, things are quite different and we need to * For standard IOCTLs, things are quite different and we need to
* use the stuctures below. Actually, this struct is also more * use the structures below. Actually, this struct is also more
* efficient, but that's another story... * efficient, but that's another story...
*/ */

View file

@ -39,7 +39,7 @@ int __kfifo_alloc(struct __kfifo *fifo, unsigned int size,
size_t esize, gfp_t gfp_mask) size_t esize, gfp_t gfp_mask)
{ {
/* /*
* round down to the next power of 2, since our 'let the indices * round up to the next power of 2, since our 'let the indices
* wrap' technique works only in this case. * wrap' technique works only in this case.
*/ */
size = roundup_pow_of_two(size); size = roundup_pow_of_two(size);

View file

@ -1536,7 +1536,7 @@ SYSCALL_DEFINE2(listen, int, fd, int, backlog)
* *
* 1003.1g adds the ability to recvmsg() to query connection pending * 1003.1g adds the ability to recvmsg() to query connection pending
* status to recvmsg. We need to add that support in a way thats * status to recvmsg. We need to add that support in a way thats
* clean when we restucture accept also. * clean when we restructure accept also.
*/ */
int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr,

View file

@ -486,6 +486,7 @@ int zone_instance_to_index(int zone_inst)
int update_thermal_data() int update_thermal_data()
{ {
int i; int i;
int next_thermal_record = cur_thermal_record + 1;
char tz_name[256]; char tz_name[256];
static unsigned long samples; static unsigned long samples;
@ -495,9 +496,9 @@ int update_thermal_data()
} }
/* circular buffer for keeping historic data */ /* circular buffer for keeping historic data */
if (cur_thermal_record >= NR_THERMAL_RECORDS) if (next_thermal_record >= NR_THERMAL_RECORDS)
cur_thermal_record = 0; next_thermal_record = 0;
gettimeofday(&trec[cur_thermal_record].tv, NULL); gettimeofday(&trec[next_thermal_record].tv, NULL);
if (tmon_log) { if (tmon_log) {
fprintf(tmon_log, "%lu ", ++samples); fprintf(tmon_log, "%lu ", ++samples);
fprintf(tmon_log, "%3.1f ", p_param.t_target); fprintf(tmon_log, "%3.1f ", p_param.t_target);
@ -507,11 +508,12 @@ int update_thermal_data()
snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE, snprintf(tz_name, 256, "%s/%s%d", THERMAL_SYSFS, TZONE,
ptdata.tzi[i].instance); ptdata.tzi[i].instance);
sysfs_get_ulong(tz_name, "temp", sysfs_get_ulong(tz_name, "temp",
&trec[cur_thermal_record].temp[i]); &trec[next_thermal_record].temp[i]);
if (tmon_log) if (tmon_log)
fprintf(tmon_log, "%lu ", fprintf(tmon_log, "%lu ",
trec[cur_thermal_record].temp[i]/1000); trec[next_thermal_record].temp[i] / 1000);
} }
cur_thermal_record = next_thermal_record;
for (i = 0; i < ptdata.nr_cooling_dev; i++) { for (i = 0; i < ptdata.nr_cooling_dev; i++) {
char cdev_name[256]; char cdev_name[256];
unsigned long val; unsigned long val;

View file

@ -336,7 +336,6 @@ int main(int argc, char **argv)
show_data_w(); show_data_w();
show_cooling_device(); show_cooling_device();
} }
cur_thermal_record++;
time_elapsed += ticktime; time_elapsed += ticktime;
controller_handler(trec[0].temp[target_tz_index] / 1000, controller_handler(trec[0].temp[target_tz_index] / 1000,
&yk); &yk);