Commit 158c1294 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial

Pull trivial tree changes from Jiri Kosina:
 "Summer edition of trivial tree updates"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits)
  doc: fix two typos in watchdog-api.txt
  irq-gic: remove file name from heading comment
  MAINTAINERS: Add miscdevice.h to file list for char/misc drivers.
  scsi: mvsas: mv_sas.c: Fix for possible null pointer dereference
  doc: replace "practise" with "practice" in Documentation
  befs: remove check for CONFIG_BEFS_RW
  scsi: doc: fix 'SCSI_NCR_SETUP_MASTER_PARITY'
  drivers/usb/phy/phy.c: remove a leading space
  mfd: fix comment
  cpuidle: fix comment
  doc: hpfall.c: fix missing null-terminate after strncpy call
  usb: doc: hotplug.txt code typos
  kbuild: fix comment in Makefile.modinst
  SH: add proper prompt to SH_MAGIC_PANEL_R2_VERSION
  ARM: msm: Remove MSM_SCM
  crypto: Remove MPILIB_EXTRA
  doc: CN: remove dead link, kerneltrap.org no longer works
  media: update reference, kerneltrap.org no longer works
  hexagon: update reference, kerneltrap.org no longer works
  doc: LSM: update reference, kerneltrap.org no longer works
  ...
parents 172bfe09 51a70974
...@@ -576,7 +576,7 @@ Some devices are known to have faulty MSI implementations. Usually this ...@@ -576,7 +576,7 @@ Some devices are known to have faulty MSI implementations. Usually this
is handled in the individual device driver, but occasionally it's necessary is handled in the individual device driver, but occasionally it's necessary
to handle this with a quirk. Some drivers have an option to disable use to handle this with a quirk. Some drivers have an option to disable use
of MSI. While this is a convenient workaround for the driver author, of MSI. While this is a convenient workaround for the driver author,
it is not good practise, and should not be emulated. it is not good practice, and should not be emulated.
5.4. Finding why MSIs are disabled on a device 5.4. Finding why MSIs are disabled on a device
......
...@@ -146,10 +146,6 @@ LWN.net: ...@@ -146,10 +146,6 @@ LWN.net:
Porting drivers from prior kernels to 2.6: Porting drivers from prior kernels to 2.6:
http://lwn.net/Articles/driver-porting/ http://lwn.net/Articles/driver-porting/
KernelTrap:
Occasional Linux kernel articles and developer interviews
http://kerneltrap.org/
KernelNewbies: KernelNewbies:
Documentation and assistance for new kernel programmers Documentation and assistance for new kernel programmers
http://kernelnewbies.org/ http://kernelnewbies.org/
......
...@@ -396,13 +396,13 @@ you are responsible for last-minute changes. Example : ...@@ -396,13 +396,13 @@ you are responsible for last-minute changes. Example :
[lucky@maintainer.example.org: struct foo moved from foo.c to foo.h] [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h]
Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org> Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org>
This practise is particularly helpful if you maintain a stable branch and This practice is particularly helpful if you maintain a stable branch and
want at the same time to credit the author, track changes, merge the fix, want at the same time to credit the author, track changes, merge the fix,
and protect the submitter from complaints. Note that under no circumstances and protect the submitter from complaints. Note that under no circumstances
can you change the author's identity (the From header), as it is the one can you change the author's identity (the From header), as it is the one
which appears in the changelog. which appears in the changelog.
Special note to back-porters: It seems to be a common and useful practise Special note to back-porters: It seems to be a common and useful practice
to insert an indication of the origin of a patch at the top of the commit to insert an indication of the origin of a patch at the top of the commit
message (just after the subject line) to facilitate tracking. For instance, message (just after the subject line) to facilitate tracking. For instance,
here's what we see in 2.6-stable : here's what we see in 2.6-stable :
......
...@@ -34,6 +34,7 @@ static int set_unload_heads_path(char *device) ...@@ -34,6 +34,7 @@ static int set_unload_heads_path(char *device)
if (strlen(device) <= 5 || strncmp(device, "/dev/", 5) != 0) if (strlen(device) <= 5 || strncmp(device, "/dev/", 5) != 0)
return -EINVAL; return -EINVAL;
strncpy(devname, device + 5, sizeof(devname) - 1); strncpy(devname, device + 5, sizeof(devname) - 1);
devname[sizeof(devname) - 1] = '\0';
strncpy(device_path, device, sizeof(device_path) - 1); strncpy(device_path, device, sizeof(device_path) - 1);
snprintf(unload_heads_path, sizeof(unload_heads_path) - 1, snprintf(unload_heads_path, sizeof(unload_heads_path) - 1,
......
...@@ -1095,7 +1095,7 @@ SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not defined) ...@@ -1095,7 +1095,7 @@ SCSI_NCR_SETUP_FORCE_SYNC_NEGO (default: not defined)
SCSI_NCR_SETUP_MASTER_PARITY (default: defined) SCSI_NCR_SETUP_MASTER_PARITY (default: defined)
If defined, master parity checking is enabled. If defined, master parity checking is enabled.
SCSI_NCR_SETUP_MASTER_PARITY (default: defined) SCSI_NCR_SETUP_SCSI_PARITY (default: defined)
If defined, SCSI parity checking is enabled. If defined, SCSI parity checking is enabled.
SCSI_NCR_PROFILE_SUPPORT (default: not defined) SCSI_NCR_PROFILE_SUPPORT (default: not defined)
......
...@@ -22,7 +22,7 @@ system, building their checks on top of the defined capability hooks. ...@@ -22,7 +22,7 @@ system, building their checks on top of the defined capability hooks.
For more details on capabilities, see capabilities(7) in the Linux For more details on capabilities, see capabilities(7) in the Linux
man-pages project. man-pages project.
Based on http://kerneltrap.org/Linux/Documenting_Security_Module_Intent, Based on https://lkml.org/lkml/2007/10/26/215,
a new LSM is accepted into the kernel when its intent (a description of a new LSM is accepted into the kernel when its intent (a description of
what it tries to protect against and in what cases one would expect to what it tries to protect against and in what cases one would expect to
use it) has been appropriately documented in Documentation/security/. use it) has been appropriately documented in Documentation/security/.
......
...@@ -150,10 +150,6 @@ LWN.net: ...@@ -150,10 +150,6 @@ LWN.net:
将旧版内核的驱动程序移植到 2.6 版: 将旧版内核的驱动程序移植到 2.6 版:
http://lwn.net/Articles/driver-porting/ http://lwn.net/Articles/driver-porting/
KernelTrap:
Linux 内核的最新动态以及开发者访谈
http://kerneltrap.org/
内核新手(KernelNewbies): 内核新手(KernelNewbies):
为新的内核开发者提供文档和帮助 为新的内核开发者提供文档和帮助
http://kernelnewbies.org/ http://kernelnewbies.org/
......
...@@ -106,7 +106,4 @@ config MSM_GPIOMUX ...@@ -106,7 +106,4 @@ config MSM_GPIOMUX
help help
Support for MSM V1 TLMM GPIOMUX architecture. Support for MSM V1 TLMM GPIOMUX architecture.
config MSM_SCM
bool
endif endif
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#define __cacheline_aligned __aligned(L1_CACHE_BYTES) #define __cacheline_aligned __aligned(L1_CACHE_BYTES)
#define ____cacheline_aligned __aligned(L1_CACHE_BYTES) #define ____cacheline_aligned __aligned(L1_CACHE_BYTES)
/* See http://kerneltrap.org/node/15100 */ /* See http://lwn.net/Articles/262554/ */
#define __read_mostly #define __read_mostly
#endif #endif
...@@ -371,7 +371,7 @@ if SH_MAGIC_PANEL_R2 ...@@ -371,7 +371,7 @@ if SH_MAGIC_PANEL_R2
menu "Magic Panel R2 options" menu "Magic Panel R2 options"
config SH_MAGIC_PANEL_R2_VERSION config SH_MAGIC_PANEL_R2_VERSION
int SH_MAGIC_PANEL_R2_VERSION int "Magic Panel R2 Version"
default "3" default "3"
help help
Set the version of the Magic Panel R2 Set the version of the Magic Panel R2
......
...@@ -398,7 +398,7 @@ static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) ...@@ -398,7 +398,7 @@ static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev)
* *
* Any measured amount of time will include the exit latency. * Any measured amount of time will include the exit latency.
* Since we are interested in when the wakeup begun, not when it * Since we are interested in when the wakeup begun, not when it
* was completed, we must substract the exit latency. However, if * was completed, we must subtract the exit latency. However, if
* the measured amount of time is less than the exit latency, * the measured amount of time is less than the exit latency,
* assume the state was never reached and the exit latency is 0. * assume the state was never reached and the exit latency is 0.
*/ */
......
...@@ -39,7 +39,6 @@ static void mid_get_fuse_settings(struct drm_device *dev) ...@@ -39,7 +39,6 @@ static void mid_get_fuse_settings(struct drm_device *dev)
#define FB_REG06 0xD0810600 #define FB_REG06 0xD0810600
#define FB_MIPI_DISABLE (1 << 11) #define FB_MIPI_DISABLE (1 << 11)
#define FB_REG09 0xD0810900 #define FB_REG09 0xD0810900
#define FB_REG09 0xD0810900
#define FB_SKU_MASK 0x7000 #define FB_SKU_MASK 0x7000
#define FB_SKU_SHIFT 12 #define FB_SKU_SHIFT 12
#define FB_SKU_100 0 #define FB_SKU_100 0
......
/* /*
* linux/arch/arm/common/gic.c
*
* Copyright (C) 2002 ARM Limited, All Rights Reserved. * Copyright (C) 2002 ARM Limited, All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
/* /*
* MSIC interrupt tree is readable from SRAM at INTEL_MSIC_IRQ_PHYS_BASE. * MSIC interrupt tree is readable from SRAM at INTEL_MSIC_IRQ_PHYS_BASE.
* Since IRQ block starts from address 0x002 we need to substract that from * Since IRQ block starts from address 0x002 we need to subtract that from
* the actual IRQ status register address. * the actual IRQ status register address.
*/ */
#define MSIC_IRQ_STATUS(x) (INTEL_MSIC_IRQ_PHYS_BASE + ((x) - 2)) #define MSIC_IRQ_STATUS(x) (INTEL_MSIC_IRQ_PHYS_BASE + ((x) - 2))
......
...@@ -1344,19 +1344,23 @@ void mvs_dev_gone_notify(struct domain_device *dev) ...@@ -1344,19 +1344,23 @@ void mvs_dev_gone_notify(struct domain_device *dev)
{ {
unsigned long flags = 0; unsigned long flags = 0;
struct mvs_device *mvi_dev = dev->lldd_dev; struct mvs_device *mvi_dev = dev->lldd_dev;
struct mvs_info *mvi = mvi_dev->mvi_info; struct mvs_info *mvi;
spin_lock_irqsave(&mvi->lock, flags);
if (mvi_dev) { if (!mvi_dev) {
mv_dprintk("found dev[%d:%x] is gone.\n",
mvi_dev->device_id, mvi_dev->dev_type);
mvs_release_task(mvi, dev);
mvs_free_reg_set(mvi, mvi_dev);
mvs_free_dev(mvi_dev);
} else {
mv_dprintk("found dev has gone.\n"); mv_dprintk("found dev has gone.\n");
return;
} }
mvi = mvi_dev->mvi_info;
spin_lock_irqsave(&mvi->lock, flags);
mv_dprintk("found dev[%d:%x] is gone.\n",
mvi_dev->device_id, mvi_dev->dev_type);
mvs_release_task(mvi, dev);
mvs_free_reg_set(mvi, mvi_dev);
mvs_free_dev(mvi_dev);
dev->lldd_dev = NULL; dev->lldd_dev = NULL;
mvi_dev->sas_device = NULL; mvi_dev->sas_device = NULL;
......
...@@ -147,7 +147,7 @@ struct usb_phy *usb_get_phy(enum usb_phy_type type) ...@@ -147,7 +147,7 @@ struct usb_phy *usb_get_phy(enum usb_phy_type type)
} }
EXPORT_SYMBOL_GPL(usb_get_phy); EXPORT_SYMBOL_GPL(usb_get_phy);
/** /**
* devm_usb_get_phy_by_phandle - find the USB PHY by phandle * devm_usb_get_phy_by_phandle - find the USB PHY by phandle
* @dev - device that requests this phy * @dev - device that requests this phy
* @phandle - name of the property holding the phy phandle value * @phandle - name of the property holding the phy phandle value
......
...@@ -799,13 +799,11 @@ befs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -799,13 +799,11 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
befs_debug(sb, "---> %s", __func__); befs_debug(sb, "---> %s", __func__);
#ifndef CONFIG_BEFS_RW
if (!(sb->s_flags & MS_RDONLY)) { if (!(sb->s_flags & MS_RDONLY)) {
befs_warning(sb, befs_warning(sb,
"No write support. Marking filesystem read-only"); "No write support. Marking filesystem read-only");
sb->s_flags |= MS_RDONLY; sb->s_flags |= MS_RDONLY;
} }
#endif /* CONFIG_BEFS_RW */
/* /*
* Set dummy blocksize to read super block. * Set dummy blocksize to read super block.
......
...@@ -31,6 +31,6 @@ $(modules): ...@@ -31,6 +31,6 @@ $(modules):
# Declare the contents of the .PHONY variable as phony. We keep that # Declare the contents of the .PHONY variable as phony. We keep that
# information in a variable se we can use it in if_changed and friends. # information in a variable so we can use it in if_changed and friends.
.PHONY: $(PHONY) .PHONY: $(PHONY)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment