[PATCH] phy: mark lan88xx_suspend() static

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/net/phy/microchip.c:58:5: warning: no previous prototype for 'lan88xx_suspend' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this

[PATCH] net: hns: add function declarations in hns_dsaf_mac.h

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:246:6: warning: no previous prototype for 'hns_dsaf_srst_chns' [-Wmissing-prototypes] drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:276:6: warning: no previous prototype for

Re: [PATCH 1/2] mtd: nand: mxc: Test CONFIG_OF instead of CONFIG_OF_MTD

2016-09-18 Thread Richard Weinberger
On 17.09.2016 19:57, Boris Brezillon wrote: > We are about to drop the OF_MTD Kconfig option. Test CONFIG_OF > activation instead of CONFIG_OF_MTD. > > Signed-off-by: Boris Brezillon Reviewed-by: Richard Weinberger Thanks, //richard

[PATCH] net: mvneta: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/net/ethernet/marvell/mvneta.c:639:27: warning: no previous prototype for 'mvneta_get_stats64' [-Wmissing-prototypes] drivers/net/ethernet/marvell/mvneta.c:3529:5: warning: no previous prototype for 'mvneta_ethtool_set_link_ksettings'

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-18 Thread Guoqing Jiang
On 09/14/2016 04:39 PM, Marion & Christophe JAILLET wrote: I don't share your feeling. bitmap_create() can return ERR_PTR(-ENOMEM) or ERR_PTR(-EINVAL). In such cases 'if (!bitmap)' will not be helpful. Maybe it should be turned into 'if (IS_ERR_OR_NULL(bitmap))' to handle errors returned

Re: Possible code defects: macros and precedence

2016-09-18 Thread Joe Perches
On Sun, 2016-09-18 at 06:57 +0200, Julia Lawall wrote: > You did say that checkpatch was giving a lot of noise.  In the end, is it > actually just that there are a lot of changes to make Actually, the first attempt used just the checkpatch $Operators pattern match which also matches a comma so

Re: [PATCH v16 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-09-18 Thread Baolin Wang
Hi Neil, Sorry for late reply due yo my holiday. On 10 September 2016 at 05:19, NeilBrown wrote: > On Fri, Sep 09 2016, Baolin Wang wrote: > >>> >>> In practice, the USB PHY and the Power manager will often be in the same >>> IC (the PMIC) so the driver for one could look at the

Re: [PATCH 2/4] carl9170: fix debugfs crashes

2016-09-18 Thread Greg KH
On Sun, Sep 18, 2016 at 10:54:18AM +0300, Kalle Valo wrote: > Greg KH writes: > > > On Sat, Sep 17, 2016 at 09:43:02PM +0200, Christian Lamparter wrote: > >> Ben Greear reported: > >> > I see lots of instability as soon as I load up the carl9710 NIC. > >> > My

Re: genirq: Setting trigger mode 0 for irq 11 failed (txx9_irq_set_type+0x0/0xb8)

2016-09-18 Thread Geert Uytterhoeven
Hi Marc, On Fri, Sep 16, 2016 at 9:51 AM, Marc Zyngier wrote: > On 16/09/16 00:02, Alban Browaeys wrote: >> Le mercredi 14 septembre 2016 à 21:25 +0200, Geert Uytterhoeven a >> écrit : >>> JFYI, with v4.8-rc6 I'm seeing >>> >>> genirq: Setting trigger mode 0 for irq 11

Re: [PATCH] avr32: fix 'undefined reference to `___copy_from_user'

2016-09-18 Thread Hans-Christian Noren Egtvedt
Around Sat 17 Sep 2016 13:09:17 -0700 or thereabout, Guenter Roeck wrote: > On 09/17/2016 09:52 AM, Håvard Skinnemoen wrote: >>On Sat, Sep 17, 2016 at 7:56 AM, Guenter Roeck wrote: >>>avr32 builds fail with: >>> >>>arch/avr32/kernel/built-in.o: In function `arch_ptrace':

Re: [PATCH 2/3] iio: adc: men_z188_adc: constify iio_info structures

2016-09-18 Thread Jonathan Cameron
On 16/09/16 11:55, Julia Lawall wrote: > Check for iio_info structures that are only stored in the info field of a > iio_dev structure. This field is declared const, so iio_info structures > that have this property can be declared as const also. > > The semantic patch that makes this change is

Re: [PATCH 1/3] iio: common: ssp_sensors: accel: constify iio_info structures

2016-09-18 Thread Jonathan Cameron
On 16/09/16 11:55, Julia Lawall wrote: > Check for iio_info structures that are only stored in the info field of a > iio_dev structure. This field is declared const, so iio_info structures > that have this property can be declared as const also. > > The semantic patch that makes this change is

Re: [PATCH] gpio: f7188x: use gpiochip_get_data instead of container_of

2016-09-18 Thread Linus Walleij
On Fri, Sep 16, 2016 at 6:58 PM, Amitesh Singh wrote: > gpiochip_add_data is already used to add data pointer and chip. > Lets rely on gpiochip_get_data which is getting used in other > gpio_chip functions. > > Signed-off-by: Amitesh Singh

Re: [Intel-gfx] Skylake graphics regression: projector failure with 4.8-rc3

2016-09-18 Thread Thorsten Leemhuis
Hi! James & Paulo: What's the current status of this? Was this issue discussed elsewhere or even fixed in between? Just asking, because this issue is on the list of regressions for 4.8. Ciao, Thorsten On 01.09.2016 00:25, James Bottomley wrote: > On Wed, 2016-08-31 at 21:51 +, Zanoni, Paulo R

Re: [PATCH] x86/apic: Fix suspicious RCU usage in smp_trace_call_function_interrupt

2016-09-18 Thread Wanpeng Li
2016-09-15 16:58 GMT+08:00 Thomas Gleixner : > On Thu, 15 Sep 2016, Wanpeng Li wrote: >> --- >> arch/x86/include/asm/apic.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h >> index

[PATCH v2] x86/apic: Fix suspicious RCU usage

2016-09-18 Thread Wanpeng Li
From: Wanpeng Li === [ INFO: suspicious RCU usage. ] 4.8.0-rc6+ #5 Not tainted --- ./arch/x86/include/asm/msr-trace.h:47 suspicious rcu_dereference_check() usage! other info that might help us debug this: RCU used

[PATCH] f2fs: fix to avoid slowing down background gc

2016-09-18 Thread Chao Yu
Previously, we will choose to speed up background gc when the below conditions are both satisfied: a. There are a number of invalid blocks b. There is not enough free space But, when space utilization is high (utilization > 60%), there will be not enough invalid blocks, result in slowing down

Re: [RFC/RFT][PATCH v2 0/7] Functional dependencies between devices

2016-09-18 Thread Lukas Wunner
On Wed, Sep 14, 2016 at 01:18:16AM +0200, Rafael J. Wysocki wrote: > On Tuesday, September 13, 2016 07:57:31 PM Lukas Wunner wrote: > > To name a different use case: On hybrid graphics laptops, the discrete > > GPU usually includes an HDA controller for external HDMI displays. > > The GPU and the

[PATCH] drm/amdgpu: add missing header dependencies

2016-09-18 Thread Baoyou Xie
We get 6 warnings when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/dce_v8_0.c:629:6: warning: no previous prototype for 'dce_v8_0_disable_dce' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/dce_v10_0.c:730:6: warning: no previous prototype for 'dce_v10_0_disable_dce'

[PATCH 03/14] block: Get rid of unused request_queue::nr_queues member

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 2 -- include/linux/blkdev.h | 1 - 2 files changed, 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 7fa58fe..276ec7b 100644 --- a/block/blk-mq.c +++

[PATCH 00/14] blk-mq: Minor fixes and cleanups

2016-09-18 Thread Alexander Gordeev
Hi Jens! The series is against: git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-4.9/block-irq Thanks! CC: linux-bl...@vger.kernel.org Alexander Gordeev (14): blk-mq: Fix memory leaks on queue cleanup blk-mq: Fix a potential NULL pointer assignment to hctx tags

[PATCH 01/14] blk-mq: Fix memory leaks on queue cleanup

2016-09-18 Thread Alexander Gordeev
Some data are leaked when blk_cleanup_queue() interface is called. CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index

[PATCH 04/14] blk-mq: Do not limit number of queues to 'nr_cpu_ids' in allocations

2016-09-18 Thread Alexander Gordeev
Currently maximum number of used hardware queues is limited to number of CPUs in the system. However, using 'nr_cpu_ids' as the limit for (de-)allocations of data structures instead of existing data structures' counters (a) worsens readability and (b) leads to unused memory when number of hardware

[PATCH 02/14] blk-mq: Fix a potential NULL pointer assignment to hctx tags

2016-09-18 Thread Alexander Gordeev
If number of used hardware queues is dynamically decreased then tags corresponding to the newly unused queues are freed. If previously unused hardware queues are then reused again they will start referring the previously freed tags. CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander

[GIT pull] irq fixes for 4.8

2016-09-18 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus Two patches from Boris which address a potential deadlock in the atmel irq chip driver. Thanks, tglx --> Boris

[GIT pull] smp fix for 4.8

2016-09-18 Thread Thomas Gleixner
Linus, please pull the latest smp-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp-urgent-for-linus Add a missing include in cpuhotplug.h. Thanks, tglx --> Paul Burton (1): cpu/hotplug: Include linux/types.h in

[PATCH] be2net: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get 4 warnings when building kernel with W=1: drivers/net/ethernet/emulex/benet/be_main.c:4368:6: warning: no previous prototype for 'be_calculate_pf_pool_rss_tables' [-Wmissing-prototypes] drivers/net/ethernet/emulex/benet/be_cmds.c:4385:5: warning: no previous prototype for

[PATCH] ARM: tegra: nyan: Mark all USB ports as host

2016-09-18 Thread Paul Kocialkowski
Nyan boards only have host USB ports (2 external, 1 internal), there is no OTG-enabled connector. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/tegra124-nyan.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi

[PATCH] crypto: sun4i-ss: mark sun4i_hash() static

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/crypto/sunxi-ss/sun4i-ss-hash.c:168:5: warning: no previous prototype for 'sun4i_hash' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So

[PATCH 2/6] firmware-qemu_fw_cfg: Improve a size determination in fw_cfg_register_file()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 10:43:27 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

usb device to ether is not identification in 64bit Windows OS

2016-09-18 Thread Lipengcheng
Hi, kernel version:4.8.0 file:Documentation / usb / linux.inf problem:PC windows is 32bit OS, using Ethernet gadget driver, it can be correct identification. But PC windows is 64bit OS, while modifying linux.inf file LinuxDevice parameters, it can not correct identification, the serial port can

[PATCH 04/10] firewire-net: Rename jump labels in fwnet_probe()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:17:12 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 10 +- 1 file changed, 5

[PATCH 03/10] firewire-net: Rename jump labels in fwnet_init()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:11:25 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 8 1 file changed, 4

[PATCH 02/10] firewire-net: Rename a jump label in fwnet_broadcast_start()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 17 Sep 2016 22:02:44 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firewire/net.c | 13 ++--- 1 file changed, 6

[PATCH v2] clocksource/fsl: Fix errata A-007728 for flextimer

2016-09-18 Thread Meng Yi
If the FTM counter reaches the FTM_MOD value between the reading of the TOF bit and the writing of 0 to the TOF bit, the process of clearing the TOF bit does not work as expected when FTMx_CONF[NUMTOF] != 0 and the current TOF count is less than FTMx_CONF[NUMTOF]. If the above condition is met,

Re: [PATCH 2/4] carl9170: fix debugfs crashes

2016-09-18 Thread Kalle Valo
Greg KH writes: > On Sat, Sep 17, 2016 at 09:43:02PM +0200, Christian Lamparter wrote: >> Ben Greear reported: >> > I see lots of instability as soon as I load up the carl9710 NIC. >> > My application is going to be poking at it's debugfs files... >> > >> > BUG:

[PATCH] net/mlx5: clean function declarations in eswitch.c up

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:463:5: warning: no previous prototype for 'esw_offloads_init' [-Wmissing-prototypes] drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:521:6: warning: no previous prototype for

Re: Possible code defects: macros and precedence

2016-09-18 Thread Joe Perches
On Sun, 2016-09-18 at 07:09 +0200, Julia Lawall wrote: > On Sat, 17 Sep 2016, Joe Perches wrote: > > I also submitted a similar checkpatch addition that looks > > for non-comma operators used macro arguments in function > > definitions. > > > > The checkpatch test has the same weakness as the

Re: [PATCH] net/mlx5: clean function declarations in eswitch.c up

2016-09-18 Thread Leon Romanovsky
On Sun, Sep 18, 2016 at 04:44:22PM +0800, Baoyou Xie wrote: > We get 2 warnings when building kernel with W=1: > drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:463:5: warning: no > previous prototype for 'esw_offloads_init' [-Wmissing-prototypes] >

Payment noticeu

2016-09-18 Thread Heidi Mendoza
Attn: Beneficiary My name is Ms. Heidi Mendoza, Head Of United Nations Under-Secretary- General For Internal Oversight Services. Meanwhile, I wish to inform you were among the scam victims listed to be released their overdue funds by the UNITED NATIONS in conjunction with the International

[PATCH] staging: lustre: lmv: add missing function declaration

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/staging/lustre/lustre/lmv/lmv_obd.c:2774:5: warning: no previous prototype for 'lmv_pack_md' [-Wmissing-prototypes] In fact, this function is not declared in any file,but should be declared in a header file, thus can be recognized in other

Re: [PATCH net-next 11/11] rxrpc: Add config to inject packet loss

2016-09-18 Thread Sergei Shtylyov
Hello. On 9/18/2016 2:22 AM, David Howells wrote: Add a configuration option to inject packet loss by discarding approximately every 8th packet received and approximately every 8th DATA packet transmitted. Note that no locking is used, but it shouldn't really matter. Signed-off-by: David

[PATCH] megaraid_sas: clean function declarations in megaraid_sas_base.c up

2016-09-18 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/scsi/megaraid/megaraid_sas_fusion.c:281:1: warning: no previous prototype for 'megasas_free_cmds_fusion' [-Wmissing-prototypes] drivers/scsi/megaraid/megaraid_sas_fusion.c:714:1: warning: no previous prototype for

Re: [PATCH 2/4] carl9170: fix debugfs crashes

2016-09-18 Thread Christian Lamparter
On Sunday, September 18, 2016 12:14:55 PM CEST Greg KH wrote: > On Sun, Sep 18, 2016 at 10:54:18AM +0300, Kalle Valo wrote: > > Greg KH writes: > > > > > On Sat, Sep 17, 2016 at 09:43:02PM +0200, Christian Lamparter wrote: > > >> Ben Greear reported: > > >> > I see

[PATCH] dma-buf/sw_sync: mark sync_timeline_create() static

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/dma-buf/sw_sync.c:87:23: warning: no previous prototype for 'sync_timeline_create' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this

[PATCH 1/6] firmware-qemu_fw_cfg: Use kmalloc_array() in fw_cfg_register_dir_entries()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 09:39:31 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was

[PATCH 6/6] firmware-qemu_fw_cfg: Move a variable assignment in fw_cfg_sysfs_probe()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 14:25:55 +0200 One local variable was set to an error code before a concrete error situation was detected. Thus move the corresponding assignment into two if branches to indicate a software failure there. Signed-off-by:

[PATCH] drm/nouveau/core: add missing header dependencies

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/core/firmware.c:34:1: warning: no previous prototype for 'nvkm_firmware_get' [-Wmissing-prototypes] drivers/gpu/drm/nouveau/nvkm/core/firmware.c:58:1: warning: no previous prototype for 'nvkm_firmware_put'

Re: [PATCH 3/5] u64_stats: Introduce IRQs disabled helpers

2016-09-18 Thread Frederic Weisbecker
On Fri, Sep 02, 2016 at 04:35:54PM +0200, Paolo Bonzini wrote: > > > On 02/09/2016 16:03, Frederic Weisbecker wrote: > > static inline unsigned int u64_stats_fetch_begin(const struct > > u64_stats_sync *syncp) > > { > > -#if BITS_PER_LONG==32 && defined(CONFIG_SMP) > > - return

[PATCH v2] clk: hisilicon: add CRG driver for Hi3798CV200 SoC

2016-09-18 Thread Jiancheng Xue
Add CRG driver for Hi3798CV200 SoC. CRG(Clock and Reset Generator) module generates clock and reset signals used by other module blocks on SoC. Signed-off-by: Jiancheng Xue --- change log v2: - Fixed compiling error when compiled as a module. - Fixed issues pointed by

Re: [PATCH 2/2 v2] x86/e820: Use much less memory for e820/e820_saved, save up to 120k

2016-09-18 Thread Ingo Molnar
* Denys Vlasenko wrote: > On 09/15/2016 09:04 AM, Ingo Molnar wrote: > > > >* Denys Vlasenko wrote: > > > >>The maximum size of e820 map array for EFI systems is defined as > >>E820_X_MAX (E820MAX + 3 * MAX_NUMNODES). > >> > >>In x86_64 defconfig, this

[PATCH] ixgbe: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c:2128:5: warning: no previous prototype for 'ixgbe_led_on_t_x550em' [-Wmissing-prototypes] drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c:2150:5: warning: no previous prototype for

Re: [PATCH 2/2] mtd: Kill the OF_MTD Kconfig option

2016-09-18 Thread Richard Weinberger
On 17.09.2016 19:57, Boris Brezillon wrote: > Commit d48f62b9a0a0 ("mtd: nand: move of_get_nand_xxx() helpers into > nand_base.c") removed the drivers/of/of_mtd.c file but did not remove > the associated OF_MTD Kconfig option. > > Signed-off-by: Boris Brezillon

Re: [RFC PATCH 00/10] ARM: dts: exynos: Fix invalid GIC interrupt flags

2016-09-18 Thread Marc Zyngier
On Sat, 17 Sep 2016 19:55:53 +0200 Krzysztof Kozlowski wrote: > On Sat, Sep 17, 2016 at 11:05:39PM +0530, Alim Akhtar wrote: > > Hi Krzysztof, > > > > On Sat, Sep 17, 2016 at 1:12 AM, Krzysztof Kozlowski > > wrote: > > > Hi, > > > > > > Marek (internally),

Re: [PATCH 3/3] iio: common: ssp_sensors: gyro: constify iio_info structures

2016-09-18 Thread Jonathan Cameron
On 16/09/16 11:55, Julia Lawall wrote: > Check for iio_info structures that are only stored in the info field of a > iio_dev structure. This field is declared const, so iio_info structures > that have this property can be declared as const also. > > The semantic patch that makes this change is

[PATCH] staging: ks7010: clean function declaration in ks_hostif.c up

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/staging/ks7010/ks_wlan_net.c:3392:6: warning: no previous prototype for 'send_packet_complete' [-Wmissing-prototypes] In fact, this function is declared in drivers/staging/ks7010/ks_hostif.c, but should be declared in a header file. thus

Re: Crashing 'kzm' target in next-20160913 due to 'gpio: mxc: shift gpio_mxc_init() to subsys_initcall level'

2016-09-18 Thread Linus Walleij
On Sun, Sep 18, 2016 at 2:59 AM, Guenter Roeck wrote: > On 09/17/2016 05:08 PM, Shawn Guo wrote: >> >> Hi Guenter, >> >> On Thu, Sep 15, 2016 at 04:35:04PM +0300, Vladimir Zapolskiy wrote: >>> >>> The proper fix in this particular case should be like this one: >>> >> >> Does

Re: [PATCH] net: mvneta: mark symbols static where possible

2016-09-18 Thread Thomas Petazzoni
Hello, On Sun, 18 Sep 2016 17:20:45 +0800, Baoyou Xie wrote: > We get 2 warnings when building kernel with W=1: > drivers/net/ethernet/marvell/mvneta.c:639:27: warning: no previous prototype > for 'mvneta_get_stats64' [-Wmissing-prototypes] > drivers/net/ethernet/marvell/mvneta.c:3529:5:

[PATCH] vme: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get 4 warnings when building kernel with W=1: drivers/vme/bridges/vme_fake.c:374:6: warning: no previous prototype for 'fake_lm_check' [-Wmissing-prototypes] drivers/vme/bridges/vme_fake.c:609:6: warning: no previous prototype for 'fake_vmewrite8' [-Wmissing-prototypes]

[PATCH] drm/msm: add missing header dependencies

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/gpu/drm/msm/msm_debugfs.c:141:5: warning: no previous prototype for 'msm_debugfs_init' [-Wmissing-prototypes] drivers/gpu/drm/msm/msm_debugfs.c:158:6: warning: no previous prototype for 'msm_debugfs_cleanup' [-Wmissing-prototypes] In

Linux 4.8: Reported regressions as of Sunday, 2016-09-18

2016-09-18 Thread Thorsten Leemhuis
Hi! Here is my fourth regression report for Linux 4.8. It lists 14 regressions I'm aware of. 5 of them are new; 1 mentioned in last weeks report got fixed. As always: Are you aware of any other regressions? Then please let me know (simply CC regressi...@leemhuis.info). And pls tell me if there

Re: [PATCH] sysfs print name of undiscoverable attribute group as well

2016-09-18 Thread Greg KH
On Thu, Sep 15, 2016 at 09:44:06PM +0200, Johannes Thumshirn wrote: > Print the name of an undiscoverable attribute group as well, not just > the pointer's address. Shouldn't we just drop the pointer address and use the name? It's bad form to be printing kernel addresses to the syslog these days

[PATCH 14/14] blk-mq: Set flush_start_tag to BLK_MQ_MAX_DEPTH

2016-09-18 Thread Alexander Gordeev
We need flush tags unique across hardware contexts and do not overlap with normal tags. BLK_MQ_MAX_DEPTH as a base number seems better choice than a queue's depth. CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 7 ++- 1 file

[PATCH 13/14] blk-mq: Pair blk_mq_hctx_kobj_init() with blk_mq_hctx_kobj_put()

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq-sysfs.c | 5 + block/blk-mq.c | 2 +- block/blk-mq.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/block/blk-mq-sysfs.c b/block/blk-mq-sysfs.c index

[GIT pull] perf fixes for 4.8

2016-09-18 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus A couple of small fixes to x86 perf drivers: - Measure L2 for HW_CACHE* events on AMD - Fix the address filter handling in the intel/pt

Re: [PATCH] x86/apic: Fix suspicious RCU usage in smp_trace_call_function_interrupt

2016-09-18 Thread Wanpeng Li
2016-09-15 16:58 GMT+08:00 Thomas Gleixner : > On Thu, 15 Sep 2016, Wanpeng Li wrote: >> --- >> arch/x86/include/asm/apic.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h >> index

[PATCH] igb: mark igb_rxnfc_write_vlan_prio_filter() static

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/net/ethernet/intel/igb/igb_ethtool.c:2707:5: warning: no previous prototype for 'igb_rxnfc_write_vlan_prio_filter' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration,

Re: [RFC PATCH 00/10] ARM: dts: exynos: Fix invalid GIC interrupt flags

2016-09-18 Thread Geert Uytterhoeven
Hi Krzysztof, On Fri, Sep 16, 2016 at 9:42 PM, Krzysztof Kozlowski wrote: > Marek (internally), Geert and Alban reported errors like: > genirq: Setting trigger mode 0 for irq 16 failed > (gic_set_type+0x0/0x68) I didn't report these on Exynos, though, so I think you

[PATCH] net: hns: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/net/ethernet/hisilicon/hisi_femac.c:943:5: warning: no previous prototype for 'hisi_femac_drv_suspend' [-Wmissing-prototypes] drivers/net/ethernet/hisilicon/hisi_femac.c:960:5: warning: no previous prototype for 'hisi_femac_drv_resume'

Re: [PATCH] mlxsw: spectrum: mark symbols static where possible

2016-09-18 Thread Ido Schimmel
Hi, On Sun, Sep 18, 2016 at 04:39:47PM +0800, Baoyou Xie wrote: > We get 3 warnings when building kernel with W=1: > drivers/net/ethernet/mellanox/mlxsw/spectrum.c:251:29: warning: no previous > prototype for 'mlxsw_sp_span_entry_find' [-Wmissing-prototypes] >

Re: [PATCH] perf, tools: Handle events including .c and .o

2016-09-18 Thread Wangnan (F)
On 2016/9/18 9:02, Andi Kleen wrote: From: Andi Kleen This is a generic bug fix, but it helps with Sukadev's JSON event tree where such events can happen. Any event inclduing a .c/.o/.bpf currently triggers BPF compilation or loading and then an error. This can happen

Re: [PATCH 1/2] gpiolib: Add possibility to mask which GPIOs are added to IRQ domain

2016-09-18 Thread Linus Walleij
On Thu, Sep 15, 2016 at 5:52 PM, Mika Westerberg wrote: > When using GPIO irqchip helpers to setup irqchip for a gpiolib based > driver, it is not possible to select which GPIOs to add to the IRQ domain. > Instead it just adds all GPIOs which is not always

[PATCH] staging: ks7010: clean function declarations in ks_hostif.c up

2016-09-18 Thread Baoyou Xie
We get 2 warnings when building kernel with W=1: drivers/staging/ks7010/ks7010_sdio.c:152:6: warning: no previous prototype for 'ks_wlan_hw_wakeup_request' [-Wmissing-prototypes] drivers/staging/ks7010/ks7010_sdio.c:255:5: warning: no previous prototype for 'ks_wlan_hw_power_save'

[PATCH] mm/mempolicy.c: forbid static or relative flags for local NUMA mode

2016-09-18 Thread Piotr Kwapulinski
The MPOL_F_STATIC_NODES and MPOL_F_RELATIVE_NODES flags are irrelevant when setting them for MPOL_LOCAL NUMA memory policy via set_mempolicy. Return the "invalid argument" from set_mempolicy whenever any of these flags is passed along with MPOL_LOCAL. It is consistent with MPOL_PREFERRED passed

[PATCH] staging: ks7010: move ks_wlan_hw_tx() declaration to header file

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/staging/ks7010/ks7010_sdio.c:363:5: warning: no previous prototype for 'ks_wlan_hw_tx' [-Wmissing-prototypes] In fact, this function is declared in drivers/staging/ks7010/ks_wlan_net.c and drivers/staging/ks7010/ks_hostif.c, but should be

Re: [PATCH] net: mvneta: mark symbols static where possible

2016-09-18 Thread Sergei Shtylyov
Hello. On 9/18/2016 12:20 PM, Baoyou Xie wrote: We get 2 warnings when building kernel with W=1: drivers/net/ethernet/marvell/mvneta.c:639:27: warning: no previous prototype for 'mvneta_get_stats64' [-Wmissing-prototypes] drivers/net/ethernet/marvell/mvneta.c:3529:5: warning: no previous

[PATCH 0/6] firmware-qemu_fw_cfg: Fine-tuning for four function implementations

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 14:43:21 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): Use kmalloc_array() in fw_cfg_register_dir_entries() Improve a size determination in

[PATCH 10/14] blk-mq: Uninit hardware context in order reverse to init

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index cd32a08..c589096 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2013,12

[PATCH 11/14] blk-mq: Move hardware context init code into single location

2016-09-18 Thread Alexander Gordeev
Move scattered hardware context initialization code into a single function destined to do that, blk_mq_init_hctx() CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 81 +- 1 file

[PATCH 05/14] blk-mq: Remove a redundant assignment

2016-09-18 Thread Alexander Gordeev
blk_mq_hw_ctx::queue_num is initialized in blk_mq_init_hctx() function. CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 2c77b68..a38fd2e 100644 ---

[PATCH 09/14] blk-mq: Move duplicating code to blk_mq_exit_hctx()

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 3efb700..cd32a08 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@

[PATCH 06/14] blk-mq: Fix hardware context data node selection

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index a38fd2e..9fbfe31 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@

[PATCH 07/14] blk-mq: Cleanup a loop exit condition

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 9fbfe31..b2ef8f5 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@

[PATCH 08/14] blk-mq: Get rid of unnecessary blk_mq_free_hw_queues()

2016-09-18 Thread Alexander Gordeev
CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index b2ef8f5..3efb700 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@

[PATCH 12/14] blk-mq: Rework blk_mq_init_hctx() function

2016-09-18 Thread Alexander Gordeev
Rework blk_mq_init_hctx() function so all memory allocations are done before data initialization and callbacks invocation. As result, the latter is avoided in tight memory conditions. CC: linux-bl...@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 50

[PATCH] mlxsw: spectrum: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get 3 warnings when building kernel with W=1: drivers/net/ethernet/mellanox/mlxsw/spectrum.c:251:29: warning: no previous prototype for 'mlxsw_sp_span_entry_find' [-Wmissing-prototypes] drivers/net/ethernet/mellanox/mlxsw/spectrum.c:265:29: warning: no previous prototype for

Re: [PATCH/RFC v2 3/7] spi: core: Add support for registering SPI slave controllers

2016-09-18 Thread Geert Uytterhoeven
On Mon, Sep 12, 2016 at 10:50 PM, Geert Uytterhoeven wrote: > --- a/drivers/spi/spi.c > +++ b/drivers/spi/spi.c > @@ -1477,15 +1477,6 @@ static int of_spi_parse_dt(struct spi_master *master, > struct spi_device *spi, > @@ -1799,7 +1908,6 @@ struct spi_master

Re: [PATCH] perf, tools: Handle events including .c and .o

2016-09-18 Thread Jiri Olsa
On Sat, Sep 17, 2016 at 06:02:46PM -0700, Andi Kleen wrote: > From: Andi Kleen > > This is a generic bug fix, but it helps with Sukadev's JSON event tree > where such events can happen. > > Any event inclduing a .c/.o/.bpf currently triggers BPF compilation or loading >

[PATCH] cxgb4: mark symbols static where possible

2016-09-18 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c:178:5: warning: no previous prototype for 'setup_sge_queues_uld' [-Wmissing-prototypes] drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c:205:6: warning: no previous prototype for

Re: [PATCH v6 2/3] ARM: dts: add TOPEET itop elite based board

2016-09-18 Thread ayaka
On 09/17/2016 02:09 AM, Javier Martinez Canillas wrote: Hello Randy, On 09/16/2016 01:21 PM, Krzysztof Kozlowski wrote: [snip] + + beep { + compatible = "pwm-beeper"; + pwms = < 0 400 PWM_POLARITY_INVERTED>; I have serious doubts that you run

[GIT PULL] USB driver fixes for 4.8-rc7

2016-09-18 Thread Greg KH
The following changes since commit 9395452b4aab7bc2475ef8935b4a4fb99d778d70: Linux 4.8-rc6 (2016-09-11 20:02:25 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.8-rc7 for you to fetch changes up to

Re: [RFC/RFT][PATCH v2 0/7] Functional dependencies between devices

2016-09-18 Thread Lukas Wunner
On Wed, Sep 14, 2016 at 12:41:33AM +0200, Rafael J. Wysocki wrote: > On Tuesday, September 13, 2016 11:58:56 AM Marek Szyprowski wrote: > > Rafael, BTW, didn't you plan to change the name of the device_link_add() > > function to device_dependency_add() to avoid confusion with network device > >

Re: [PATCH net-next 00/14] rxrpc: Fixes & miscellany

2016-09-18 Thread David Miller
David, could you please stop submitting two sets of series at the same time? I want people to have a single, reasonably sized, patch series in flight at one time for a given subsystem/driver/whatever. But if you send both an 14 and an 11 patch series at the same time, that defeats this

Re: [PATCH 1/2] pinctrl: pm8994: add pad voltage regulator defines

2016-09-18 Thread Linus Walleij
On Fri, Sep 16, 2016 at 7:41 PM, Srinivas Kandagatla wrote: > This patch adds defines for internal voltage regulators used > to switch voltage levels on gpio/mpp pads. > > Signed-off-by: Srinivas Kandagatla Acked-by: Linus Walleij

[PATCH 3/6] firmware-qemu_fw_cfg: Rename jump labels in fw_cfg_register_file()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 11:23:46 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firmware/qemu_fw_cfg.c | 9 - 1 file changed, 4

[PATCH 4/6] firmware-qemu_fw_cfg: Improve a size determination in fw_cfg_build_symlink()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 14:02:02 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

[PATCH 5/6] firmware-qemu_fw_cfg: Rename jump labels in fw_cfg_sysfs_probe()

2016-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 18 Sep 2016 14:04:48 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/firmware/qemu_fw_cfg.c | 21 ++--- 1

[PATCH] drm/amdgpu: amend amdgpu_gfx_parse_disable_cu() declaration

2016-09-18 Thread Baoyou Xie
In amdgpu_gfx.h, the declaration of amdgpu_gfx_parse_disable_cu() is incorrect. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 4 +++- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 5 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH v7 0/3] Add a new board TOPEET iTOP for Exynos 4412

2016-09-18 Thread Randy Li
Changelog: - v7: add a missing header file add a rootdelay to bootargs or it can't mount root filesystem fix the memory node - v6: move pwms pinctrl to pwms node fix the order of the dtb file in Makefile - v5: - correct the mail format - v4: - re-order some nodes in

[PATCH v7 2/3] ARM: dts: add TOPEET itop elite based board

2016-09-18 Thread Randy Li
The TOPEET itop exynos 4412 have three versions base board. The Elite version is the cheap one without too much peripheral devices on it. Currently supported are serial console, wired networking(USB), USB OTG in peripheral mode, USB host, SD storage, GPIO buttons, PWM beeper, ADC and LEDs. The

  1   2   3   4   5   6   7   8   9   10   >