[PATCH] ethernet: (niu) fix missing checks of niu_pci_eeprom_read

2018-12-24 Thread Kangjie Lu
niu_pci_eeprom_read() may fail, so we should check its return value before using the read data. Signed-off-by: Kangjie Lu --- drivers/net/ethernet/sun/niu.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sun/niu.c

Re: [PATCH RESEND v8 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-12-24 Thread Liang Yang
Hi Martin, On 2018/12/23 1:07, Martin Blumenstingl wrote: Hi Jianxin, Hi Liang, On Fri, Dec 21, 2018 at 12:45 PM Jianxin Pan wrote: From: Liang Yang Add initial support for the Amlogic NAND flash controller which found in the Meson-GXBB/GXL/AXG SoCs. Signed-off-by: Liang Yang

Re: [PATCH v14 2/5] x86/boot: Introduce efi_get_rsdp_addr() to find RSDP from EFI table

2018-12-24 Thread Chao Fan
On Mon, Dec 17, 2018 at 06:36:05PM +0100, Ingo Molnar wrote: > >* Ingo Molnar wrote: > >> > + if (!(efi_guidcmp(guid, ACPI_TABLE_GUID))) >> > + rsdp_addr = (acpi_physical_address)table; >> > + else if (!(efi_guidcmp(guid, ACPI_20_TABLE_GUID))) >> > +

[PATCH] ethernet: (80003es2lan) fix missing checks for return value of reg write

2018-12-24 Thread Kangjie Lu
e1000_write_kmrn_reg_80003es2lan() may fail. The fix checks its return value and returns with its error code if it fails. Signed-off-by: Kangjie Lu --- drivers/net/ethernet/intel/e1000e/80003es2lan.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] bpf: fix missing checks of the return value of check_reg_arg

2018-12-24 Thread Alexei Starovoitov
On Tue, Dec 25, 2018 at 01:17:10AM -0600, Kangjie Lu wrote: > check_reg_arg() may fail. This fix inserts checks for its return value. > If check_reg_arg() fails, issues an error message. > > Signed-off-by: Kangjie Lu > --- > kernel/bpf/verifier.c | 15 --- > 1 file changed, 12

[PATCH] bpf: fix missing checks of the return value of check_reg_arg

2018-12-24 Thread Kangjie Lu
check_reg_arg() may fail. This fix inserts checks for its return value. If check_reg_arg() fails, issues an error message. Signed-off-by: Kangjie Lu --- kernel/bpf/verifier.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/verifier.c

Re: [PATCH v7 1/2] dmaengine: 8250_mtk_dma: add MediaTek uart DMA support

2018-12-24 Thread Nicolas Boichat
Not a full review, a few comments below. Thanks, On Tue, Dec 25, 2018 at 9:27 AM Long Cheng wrote: > > In DMA engine framework, add 8250 uart dma to support MediaTek uart. > If MediaTek uart enabled(SERIAL_8250_MT6577), and want to improve > the performance, can enable the function. > >

[PATCH] edac: unregister the mci device before free the mci memory

2018-12-24 Thread Liwei Song
this patch can fix the following kmemleak: unreferenced object 0x881022b60ee0 (size 32): comm "udevd", pid 262, jiffies 4294709066 (age 1410.265s) hex dump (first 32 bytes): 00 7c e8 18 10 88 ff ff 00 74 e8 18 10 88 ff ff .|...t.. 00 70 e8 18 10 88 ff ff 00 00 00 00 00 00

Re: [PATCH v2] signal: add procfd_signal() syscall

2018-12-24 Thread Lai Jiangshan
On Tue, Dec 25, 2018 at 1:32 PM Lai Jiangshan wrote: > > Is it possible to avoid adding any syscall? > > Since holding /proc/pid/reg_file can also hold the pid. > With this guarantee, /proc/pid/uuid (universally unique identifier ) can be > introduced to identify tasks, the kernel generates > a

[PATCH] usb: gspca: add a missed return-value check for do_command

2018-12-24 Thread Kangjie Lu
do_command() may fail. The fix adds the missed return value of do_command(). If it fails, returns its error code. Signed-off-by: Kangjie Lu --- drivers/media/usb/gspca/cpia1.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/gspca/cpia1.c

[PATCH] backlight: (adp8870) fix a missing check for adp8870_write

2018-12-24 Thread Kangjie Lu
adp8870_write() may fail. This fix checks if adp8870_write fails, and if so, returns its error code. Signed-off-by: Kangjie Lu --- drivers/video/backlight/adp8870_bl.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/adp8870_bl.c

Re: [PATCH v2] signal: add procfd_signal() syscall

2018-12-24 Thread Lai Jiangshan
Is it possible to avoid adding any syscall? Since holding /proc/pid/reg_file can also hold the pid. With this guarantee, /proc/pid/uuid (universally unique identifier ) can be introduced to identify tasks, the kernel generates a uuid for every task when created.

[PATCH v2] gpu: anx7808: fix a missing check in anx78xx_poweron

2018-12-24 Thread Kangjie Lu
Both anx78xx_set_bits() and anx78xx_clear_bits() in the poweron process may fail. The fix inserts checks for their return values. Signed-off-by: Kangjie Lu --- drivers/gpu/drm/bridge/analogix-anx78xx.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git

[PATCH v2] gpu: anx7808: fix a missing check in anx78xx_poweron

2018-12-24 Thread Kangjie Lu
Both anx78xx_set_bits() and anx78xx_clear_bits() in the poweron process may fail. The fix inserts checks for their return values. Signed-off-by: Kangjie Lu --- drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c

[PATCH] ASoC: rockchip: fix platform_no_drv_owner.cocci warnings

2018-12-24 Thread kbuild test robot
From: kbuild test robot sound/soc/codecs/rk3328_codec.c:508:6-11: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: dc1b33660692 ("ASoC: rockchip: support

[PATCH v2] touchscreen: elants: fix a missing check of return values

2018-12-24 Thread Kangjie Lu
elants_i2c_send() may fail, let's check its return values. The fix does the check and reports an error message upon the failure. Signed-off-by: Kangjie Lu --- drivers/input/touchscreen/elants_i2c.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git

[PATCH] kvm/arm : remove unnecessary local variable

2018-12-24 Thread Peng Hao
Remove unnecessary local variable in vgic_set_common_attr Signed-off-by: Peng Hao --- virt/kvm/arm/vgic/vgic-kvm-device.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/virt/kvm/arm/vgic/vgic-kvm-device.c b/virt/kvm/arm/vgic/vgic-kvm-device.c index 114dce9..53e5df7

[PATCH v3] pinctrl:mediatek:add EINT support to virtual GPIOs

2018-12-24 Thread chuanjia.liu
From: Chuanjia Liu Virtual gpio only used inside SOC and not being exported to outside SOC. Some modules use virtual gpio as eint and doesn't nedd SMT. So this patch add EINT support to virtual GPIOs. Signed-off-by: Chuanjia Liu --- change note: v3 : 1. modify subject and description 2.

Re: [PATCH] infiniband/qedr: Potential null ptr dereference of qp

2018-12-24 Thread Leon Romanovsky
On Mon, Dec 24, 2018 at 12:24:45PM -0600, Aditya Pakki wrote: > idr_find() may fail and return a NULL pointer. The fix checks the > return value of the function and returns an error in case of NULL. > > Signed-off-by: Aditya Pakki > --- > drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 ++ > 1 file

Re: [PATCH 17/18] drm/mediatek: add ovl0/ovl0_2l usecase

2018-12-24 Thread Nicolas Boichat
On Mon, Dec 24, 2018 at 6:52 PM Yongqiang Niu wrote: > > This patch add ovl0/ovl0_2l usecase > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 38 > ++--- > 1 file changed, 35 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH 16/18] drm/mediatek: add function mtk_ddp_comp_get_type

2018-12-24 Thread Nicolas Boichat
On Mon, Dec 24, 2018 at 6:53 PM Yongqiang Niu wrote: > > This patch add function mtk_ddp_comp_get_type > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 10 ++ > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + > 2 files changed, 11 insertions(+)

Re: [PATCH 10/18] drm/mediatek: add gmc_bits for ovl private data

2018-12-24 Thread Nicolas Boichat
On Mon, Dec 24, 2018 at 6:53 PM Yongqiang Niu wrote: > > This patch add gmc_bits for ovl private data > > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 23 +-- > 1 file changed, 21 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH 03/18] drm/mediatek: redefine mtk_ddp_sout_sel

2018-12-24 Thread Nicolas Boichat
On Mon, Dec 24, 2018 at 6:52 PM Yongqiang Niu wrote: > > This patch redefine mtk_ddp_sout_sel Can you describe a bit more why you are making this change? > Signed-off-by: Yongqiang Niu > --- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 32 > 1 file changed, 20

Re: [PATCH v2] pinctrl:mediatek:add judgment conditions

2018-12-24 Thread Chuanjia Liu
On Sun, 2018-12-23 at 02:50 +0800, Sean Wang wrote: > On Mon, Dec 17, 2018 at 6:32 PM wrote: > > > > I thought the subject still is much general, it should be further > improved with something like "add EINT support to virtual GPIOs" and > should say more about what virtual GPIOs means by MTKers

Re: [PATCH] f2fs: fix use-after-free issue with sbi->stat_info

2018-12-24 Thread Chao Yu
On 2018/12/24 21:06, Sahitya Tummala wrote: > iput() on sbi->node_inode can update sbi->stat_info > in the below context, if the f2fs_write_checkpoint() > has failed with error. > > f2fs_balance_fs_bg+0x1ac/0x1ec > f2fs_write_node_pages+0x4c/0x260 > do_writepages+0x80/0xbc >

[PATCH] perfmon: use ARRAY_SIZE() macro

2018-12-24 Thread Gustavo A. R. Silva
Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element or, as in this particular case, sizeof the structure name. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- arch/ia64/kernel/perfmon.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH -next] ACPI/IORT: fix build when CONFIG_IOMMU_API=n

2018-12-24 Thread Hanjun Guo
Hi Qian, Good catch, minor comments below. On 2018/12/25 1:20, Qian Cai wrote: > rivers/acpi/arm64/iort.c:880:1: error: expected identifier or '(' before '{' > token ^^ drivers > { return NULL; } > ^ > drivers/acpi/arm64/iort.c:879:39: warning: 'iort_fwspec_iommu_ops' used but > never

Re: [PATCH] ubifs: Get/put page when changing PG_private

2018-12-24 Thread zhangjun
On 2018/12/21 下午4:56, Richard Weinberger wrote: Am Samstag, 15. Dezember 2018, 16:01:30 CET schrieb Richard Weinberger: The page migration code assumes that a page with PG_private set has its page count elevated by 1. UBIFS never did this and therefore the migration code was unable to migrate

[PATCH -next] powerpc/powernv/npu: Fix debugfs_simple_attr.cocci warnings

2018-12-24 Thread YueHaibing
Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Semantic patch information: Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). Generated by:

Re: [PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region

2018-12-24 Thread Yueyi Li
Hi Ard, On 2018/12/24 17:45, Ard Biesheuvel wrote: > Does the following change fix your issue as well? > > index 9b432d9fcada..9dcf0ff75a11 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -447,7 +447,7 @@ void __init arm64_memblock_init(void) > * memory

[PATCH -next] mailbox: hi6220: fix platform_no_drv_owner.cocci warnings

2018-12-24 Thread YueHaibing
Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing --- drivers/mailbox/hi6220-mailbox.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/hi6220-mailbox.c

[PATCH -next] ASoC: rockchip: fix platform_no_drv_owner.cocci warnings

2018-12-24 Thread YueHaibing
Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: YueHaibing --- sound/soc/codecs/rk3328_codec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/rk3328_codec.c

RE: [PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-12-24 Thread Qiang Zhao
Hi Wen, Will you send another version to resolve the issue described in the comments? BR Qiang > -Original Message- > From: Li Yang > Sent: 2018年12月6日 4:10 > To: wang.y...@zte.com.cn > Cc: Qiang Zhao ; zhong.weid...@zte.com.cn; lkml > ; julia.law...@lip6.fr; linuxppc-dev > ;

[PATCH 1/2 fix] lib/genalloc.c: Use the vzalloc_node to allocate the bitmap.

2018-12-24 Thread Huang Shijie
Some devices may have big memory on chip, such as over 1G. In some cases, the nbytes maybe bigger then 4M which is the bounday of the memory buddy system (4K default). So use vzalloc_node() to allocate the bitmap. Also use vfree to free the it. Signed-off-by: Huang Shijie --- The v1 did not

[PATCH v7 2/2] arm: dts: mt2712: add uart APDMA to device tree

2018-12-24 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 + 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH v7 1/2] dmaengine: 8250_mtk_dma: add MediaTek uart DMA support

2018-12-24 Thread Long Cheng
In DMA engine framework, add 8250 uart dma to support MediaTek uart. If MediaTek uart enabled(SERIAL_8250_MT6577), and want to improve the performance, can enable the function. Signed-off-by: Long Cheng --- drivers/dma/mediatek/8250_mtk_dma.c | 694 +++

[PATCH v7 0/2] add uart DMA function

2018-12-24 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node,

[GIT PULL] x86/platform change for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-platform-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-for-linus # HEAD: c04e55388a4f2184e37827a1d2e733cded52d653 x86/platform/olpc: Do not call of_platform_bus_probe() An OLPC platform support

Re: rfc: bool structure members (was Re: [PATCH V3] net/mlx4: Get rid of page operation after dma_alloc_coherent)

2018-12-24 Thread Jason Gunthorpe
On Sun, Dec 23, 2018 at 06:42:20PM +0200, Gal Pressman wrote: > On 22-Dec-18 01:52, Jason Gunthorpe wrote: > > On Thu, Dec 20, 2018 at 09:12:43PM -0800, Joe Perches wrote: > >> Care to submit a coding_style.rst patch or > >> improve the one below this? > > > > I took yours and revised it a little

Build regressions/improvements in v4.20

2018-12-24 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.20[1] compared to v4.19[2]. Summarized: - build errors: +3/-0 - build warnings: +489/-453 JFYI, when comparing v4.20[1] to v4.20-rc7[3], the summaries are: - build errors: +0/-0 - build warnings: +120/-144 Happy

[GIT PULL] x86/mm changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-mm-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mm-for-linus # HEAD: 6848ac7ca39a226ede5df7af0efcc4ef0611e99c x86/mm/dump_pagetables: Use DEFINE_SHOW_ATTRIBUTE() The main changes in this cycle were: - Update

[GIT PULL] x86/fpu changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-fpu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-fpu-for-linus # HEAD: 12209993e98c5fa1855c467f22a24e3d5b8be205 x86/fpu: Don't export __kernel_fpu_{begin,end}() Misc preparatory changes for an upcoming FPU

[GIT PULL] x86/cpu changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-cpu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-cpu-for-linus # HEAD: aa02ef099cff042c2a9109782ec2bf1bffc955d4 x86/topology: Use total_cpus for max logical packages calculation Misc changes: - Fix nr_cpus=

Re: [GIT PULL] x86/amd-nb changes for v4.21

2018-12-24 Thread Guenter Roeck
On 12/24/18 2:50 PM, Ingo Molnar wrote: Linus, Please pull the latest x86-amd-nb-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-amd-nb-for-linus # HEAD: 210ba1201ff950b3d05bfd8fa5d47540cea393c0 hwmon/k10temp: Add support for AMD family 17h,

[GIT PULL] x86/cleanups for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-cleanups-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-cleanups-for-linus # HEAD: 4b1bacab61aa252d15dde99cd0440a965bd863e5 x86/kprobes: Remove trampoline_handler() prototype Misc cleanups. out-of-topic

[GIT PULL] x86/amd-nb changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-amd-nb-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-amd-nb-for-linus # HEAD: 210ba1201ff950b3d05bfd8fa5d47540cea393c0 hwmon/k10temp: Add support for AMD family 17h, model 30h CPUs Update DF/SMN access and

[GIT PULL] x86/build changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-build-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-build-for-linus # HEAD: e4f752dda0de351efd198f438b68e743029da68a x86/um/vdso: Drop implicit common-page-size linker flag - resolve LLVM build bug by removing

[GIT PULL] x86/boot changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-boot-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-boot-for-linus # HEAD: 69be4efeb959147ff86f22e35aea9526f9b86715 x86/boot: Add missing va_end() to die() Two cleanups. Thanks, Ingo

[GIT PULL] x86/asm changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest x86-asm-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-for-linus # HEAD: 29434801e7e9c6d05fbea4533b3c0bd6be612f62 x86/vdso: Remove a stale/misleading comment from the linker script Two changes: - Remove (some)

Re: [PATCH][V2] drivers/net: appletalk/cops: remove redundant if statement and mask

2018-12-24 Thread David Miller
From: Colin King Date: Mon, 24 Dec 2018 19:41:46 + > From: Colin Ian King > > The two different assignments for pkt_len are actually the same and > so the if statement is redundant and can be removed. Masking a u8 > return value from inb() with 0xFF is also redundant and can also be >

Re: [PATCH v2] bnx2x: Fix NULL pointer dereference in bnx2x_del_all_vlans() on some hw

2018-12-24 Thread David Miller
From: Ivan Mironov Date: Mon, 24 Dec 2018 20:13:05 +0500 > This happened when I tried to boot normal Fedora 29 system with latest > available kernel (from fedora rawhide, plus some unrelated custom > patches): ... > After some investigation I figured out that recently added cleanup code > tries

Re: [PATCH] net/net_namespace: Check the return value of register_pernet_subsys()

2018-12-24 Thread David Miller
From: Aditya Pakki Date: Sun, 23 Dec 2018 19:42:38 -0600 > In net_ns_init(), register_pernet_subsys() could fail while registering > network namespace subsystems. The fix checks the return value and > sends a panic() on failure. > > Signed-off-by: Aditya Pakki Applied.

[GIT PULL] scheduler changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest sched-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-for-linus # HEAD: 732cd75b8c920d3727e69957b14faa7c2d7c3b75 sched/fair: Select an energy-efficient CPU on task wake-up The main changes in this cycle

Re: [PATCH] net/netlink_compat: Fix a missing check of nla_parse_nested

2018-12-24 Thread David Miller
From: Aditya Pakki Date: Sun, 23 Dec 2018 18:54:53 -0600 > In tipc_nl_compat_sk_dump(), if nla_parse_nested() fails, it could return > an error. To be consistent with other invocations of the function call, > on error, the fix passes the return value upstream. > > Signed-off-by: Aditya Pakki

Re: [BUG] net: sungem: device driver frees DMA memory with wrong function

2018-12-24 Thread David Miller
From: Corentin Labbe Date: Sun, 23 Dec 2018 20:38:21 +0100 > During a boot on a qemu machine, I hit the following problem: ... > After some pr_info, I found that the function triggering this is the > pci_unmap_page() in gem_tx(). > So clearly this WARNING() is strange since it says "unmapped

[GIT PULL] perf updates for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest perf-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus # HEAD: 883f4def8b77e6870ce42be279564cca0256c611 Merge tag 'perf-core-for-mingo-4.21-20181218' of

[GIT PULL] locking changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest locking-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-for-linus # HEAD: 80eb865768703c0f85a0603762742ae1dedf21f0 sched/fair: Clean up comment in nohz_idle_balance() The main change in this cycle are

[GIT PULL] EFI changes for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest efi-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-core-for-linus # HEAD: 1debf0958fa27b7c469dbf22754929ec59a7c0e7 x86/efi: Don't unmap EFI boot services code/data regions for EFI_OLD_MEMMAP and EFI_MIXED_MODE

Re: [PATCH] net/mlx5e: fix semicolon.cocci warnings

2018-12-24 Thread David Miller
From: kbuild test robot Date: Sat, 22 Dec 2018 20:02:16 +0800 > From: kbuild test robot > > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:1339:57-58: Unneeded > semicolon > > > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci > > Fixes: 4c8fb2986d44

[GIT PULL] RCU updates for v4.21

2018-12-24 Thread Ingo Molnar
Linus, Please pull the latest core-rcu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-rcu-for-linus # HEAD: 4bbfd7467cfc7d42e18d3008fa6a28ffd56e901a Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into

[GIT PULL] Please pull RDMA subsystem changes

2018-12-24 Thread Jason Gunthorpe
Hi Linus, These are the proposed RDMA patches for 4.21. There is a conflict with the net tree merged in 4.20 and the Mellanox shared tree. DaveM has a resolution for this in his net-next tree already, but if you merge RDMA first, here is the resolution: struct

Re: rfc: bool structure members (was Re: [PATCH V3] net/mlx4: Get rid of page operation after dma_alloc_coherent)

2018-12-24 Thread Jason Gunthorpe
On Sun, Dec 23, 2018 at 04:53:12PM +, Al Viro wrote: > On Sun, Dec 23, 2018 at 06:42:20PM +0200, Gal Pressman wrote: > > > -17) Don't re-invent the kernel macros > > > +17) Using bool > > > +-- > > > + > > > +The Linux kernel uses the C11 standard for the bool type. bool values >

[PATCH] platform: x86: Add check for led_classdev_register

2018-12-24 Thread Aditya Pakki
In function alienware_zone_init, the function led_classdev_register can return an error on failure. The fix checks the error and frees the allocated resources. Signed-off-by: Aditya Pakki --- drivers/platform/x86/alienware-wmi.c | 13 - 1 file changed, 12 insertions(+), 1

[PATCH v2 01/14] spi: stm32: switch to SPDX identifier

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 27 +++ 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/spi/spi-stm32.c

[PATCH v2 08/14] spi: stm32: rename interrupt function

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Interrupt function is used as a thread so rename it to express meaning directly by more clear function name. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-stm32.c

[PATCH v2 11/14] spi: stm32: introduce compatible data cfg

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Prepare support for STM32F4 spi variant by introducing compatible configuration data. Move STM32H7 specific stuff to compatible data structure: - registers & bit fields - routines to control driver - baud rate divisor definitions - fifo availability - split IRQ

[PATCH v2 14/14] spi: stm32: add description about STM32F4 bindings

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Add description that STM32F4 can be used in compatible property. Master Inter-Data Idleness optional property cannot be used in STM32F4. Signed-off-by: Cezary Gapinski --- Documentation/devicetree/bindings/spi/spi-stm32.txt | 9 ++--- 1 file changed, 6 insertions(+),

[PATCH v2 07/14] spi: stm32: rename STM32 SPI registers to STM32H7

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Rename STM32 SPI registers to be related to STM32H7 SPI driver and not STM32 generally. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 381 +--- 1 file changed, 199 insertions(+), 182 deletions(-) diff --git

[PATCH v2 13/14] ARM: dts: stm32: add SPI support on STM32F429 SoC

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski This patch adds all SPI instances of the STM32F429 SoC. Signed-off-by: Cezary Gapinski --- arch/arm/boot/dts/stm32f429.dtsi | 60 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi

[PATCH v2 09/14] spi: stm32: split transfer one setup function

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Split stm32_spi_transfer_one_setup function into smaller chunks to be more generic for other stm32 SPI family drivers. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 270 ++-- 1 file changed, 192 insertions(+), 78

[PATCH v2 05/14] spi: stm32: use explicit CPOL and CPHA mode bits

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Driver supports SPI mode 0 to 3 not only the mode 3. Use SPI_CPOL and SPI_CPHA indicates that these bits can be changed to obtain modes 0 - 3. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 12/14] spi: stm32: add support for STM32F4

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Add routines, registers & bitfield definition. Also baud rate divisor definitions for STM32F4 SPI. This version supports full-duplex, simplex TX and half-duplex TX communication with 8 or 16-bit per word. DMA capability is optionally supported for transfer longer than 16

[PATCH v2 10/14] spi: stm32: add start dma transfer function

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Add transfer_one_dma_start function to be more generic for other stm32 SPI family drivers. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-stm32.c

[PATCH v2 06/14] spi: stm32: remove SPI LOOP mode

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski This driver does not support SPI LOOP mode by configuration in registers. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index

[PATCH v2 04/14] spi: fix typo in SPI_STM32 help text

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Fix typo from STMicroelectonics to STMicroelectronics. Signed-off-by: Cezary Gapinski --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 9f89cb1..ceb6b7e 100644 ---

[PATCH v2 00/14] Add support for STM32F4 SPI

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski This series of patches adds support for first generation of SPI interface for STM32F4 family. This version of driver is mostly different to STM32H7 one. Based on linux kernel I2C drivers for STM32 where drivers were splited into STM32F4 and STM32F7 family the same approach

[PATCH v2 03/14] spi: stm32: fix DMA configuration with only one channel

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski When SPI driver is configured to work only with TX or RX DMA channel then dmaengine functions can dereferene NULL pointer. Running full-duplex mode when when only RX or TX DMA channel is available can cause overrun condition or incorrect writing to transmit buffer so

[PATCH v2 02/14] spi: stm32: use NULL pointer instead of plain integer

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Patch fixes sparse warning: Using plain integer as NULL pointer. Replaces second argument of function devm_clk_get from 0 to NULL. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

I want to present you as a relation ( NEXT OF KIN )....I expect your reply.

2018-12-24 Thread JOHN OLEH
Good Day, I work with Union Bank, I want to present you as a relation ( NEXT OF KIN ) to a Late customer of our bank who happens to come from the same country with you, Our Late customer has no wife or Children as such I want to present you as a relation ( NEXT OF KIN ) so as to enable our bank

[PATCH] hid: Add checks to fix of_led_classdev_register

2018-12-24 Thread Aditya Pakki
In lenovo_probe_tpkbd(), the function of_led_classdev_register() could return an error value that is unchecked. The fix adds these checks. Signed-off-by: Aditya Pakki --- drivers/hid/hid-lenovo.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 2/9] i2c: reject new transfers when adapters are suspended

2018-12-24 Thread Hans de Goede
Hi, Thank you for this new version. On 22-12-18 21:26, Wolfram Sang wrote: Using the 'is_suspended' flag from the PM core, we now reject new transfers if the parent of the adapter is already marked suspended. I've been running some tests and I'm afraid that those have exposed multiple

[PATCH] net: chelsio: Add a missing check on cudg_get_buffer

2018-12-24 Thread Aditya Pakki
cudbg_collect_hw_sched() could fail when the function cudg_get_buffer() returns an error. The fix adds a check to the latter function returning error on failure Signed-off-by: Aditya Pakki --- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 4 1 file changed, 4 insertions(+) diff --git

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-12-24 Thread Heiner Kallweit
On 15.10.2018 22:58, Heiner Kallweit wrote: > On 28.09.2018 15:18, Frederic Weisbecker wrote: >> On Thu, Sep 27, 2018 at 06:05:46PM +0200, Thomas Gleixner wrote: >>> On Tue, 28 Aug 2018, Frederic Weisbecker wrote: On Fri, Aug 24, 2018 at 07:06:32PM +0200, Heiner Kallweit wrote: > I tested

Re: [net] eedbbb0d98: RIP:inet_hashinfo2_init

2018-12-24 Thread Peter Oskolkov
A fix sent to netdev: https://patchwork.ozlabs.org/patch/1018304/ On Mon, Dec 24, 2018 at 5:01 AM kernel test robot wrote: > > > FYI, we noticed the following commit (built with gcc-7): > > commit: eedbbb0d98b2a89250a8bb83d9c71b77881e5247 ("net: dccp: initialize > (addr,port) listening

[PATCH -mmotm] arm64: fix build for MAX_USER_VA_BITS

2018-12-24 Thread Qian Cai
Some code in 9b31cf493ff was lost during merging into the -mmotm tree for some reasons, In file included from ./arch/arm64/include/asm/processor.h:46, from ./include/linux/rcupdate.h:43, from ./include/linux/rculist.h:11, from

Re: linux-next: Tree for Dec 24 (pinctrl/mediatek/)

2018-12-24 Thread Randy Dunlap
On 12/24/18 3:16 AM, Stephen Rothwell wrote: > Hi all, > > Just one more :-) > > News: there will be no linux-next release until Jan 2. Have a good break. > > Changes since 20181221: > on i386 or x86_64: Lots of build errors for drivers/pinctrl/mediatek/pinctrl-moore.c when CONFIG_OF is not

[GIT PULL] security: general updates for v4.21

2018-12-24 Thread James Morris
Hi Linus, Please pull these general updates for the security subsystem for v4.21. The main changes here are Paul Gortmaker's removal of unneccesary module.h infrastructure. The following changes since commit 7566ec393f4161572ba6f11ad5171fd5d59b0fbd: Linux 4.20-rc7 (2018-12-16 15:46:55

[PATCH][V2] drivers/net: appletalk/cops: remove redundant if statement and mask

2018-12-24 Thread Colin King
From: Colin Ian King The two different assignments for pkt_len are actually the same and so the if statement is redundant and can be removed. Masking a u8 return value from inb() with 0xFF is also redundant and can also be emoved. Similarly, the two different outb calls are identical as the

[PATCH v2] drivers: thermal: int340x_thermal: Fix sysfs race condition

2018-12-24 Thread Aaron Hill
Changes since V1: * Use dev_info instead of printk * Use dev_warn instead of BUG_ON Previously, sysfs_create_group was called before all initialization had fully run - specifically, before pci_set_drvdata was called. Since the sysctl group is visible to userspace as soon as sysfs_create_group

[GIT PULL] regmap updates for v4.21

2018-12-24 Thread Mark Brown
The following changes since commit 7566ec393f4161572ba6f11ad5171fd5d59b0fbd: Linux 4.20-rc7 (2018-12-16 15:46:55 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-v4.21 for you to fetch changes up to

[GIT PULL] SPI updates for v4.21

2018-12-24 Thread Mark Brown
The following changes since commit 7566ec393f4161572ba6f11ad5171fd5d59b0fbd: Linux 4.20-rc7 (2018-12-16 15:46:55 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-v4.21 for you to fetch changes up to

Re: [PATCH 2/2] ARC: show_regs: fix lockdep splat for good

2018-12-24 Thread Michal Hocko
On Fri 21-12-18 09:55:34, Vineet Gupta wrote: > On 12/21/18 5:04 AM, Michal Hocko wrote: [...] > > Yes, the fix might be more involved but I would much rather prefer a > > correct code which builds on solid assumptions. > > Right so the first step is reverting the disabled semantics for ARC and

Re: [PATCH net-next 0/3] vhost: accelerate metadata access through vmap()

2018-12-24 Thread Michael S. Tsirkin
On Mon, Dec 24, 2018 at 04:44:14PM +0800, Jason Wang wrote: > > On 2018/12/17 上午3:57, Michael S. Tsirkin wrote: > > On Sat, Dec 15, 2018 at 11:43:08AM -0800, David Miller wrote: > > > From: Jason Wang > > > Date: Fri, 14 Dec 2018 12:29:54 +0800 > > > > > > > On 2018/12/14 上午4:12, Michael S.

[PATCH] clk: Fix a missing check on regmap_bulk_read

2018-12-24 Thread Aditya Pakki
Currently, vc5_pll_recalc_rate() may produce incorrect output when regmap_bulk_read() fails. The fix checks the return value of the latter function and returns 0 in case of failure. Signed-off-by: Aditya Pakki --- drivers/clk/clk-versaclock5.c | 3 ++- 1 file changed, 2 insertions(+), 1

[GIT PULL] regulator updates for v4.21

2018-12-24 Thread Mark Brown
The following changes since commit 7566ec393f4161572ba6f11ad5171fd5d59b0fbd: Linux 4.20-rc7 (2018-12-16 15:46:55 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git tags/regulator-v4.21 for you to fetch changes up to

Re: Bug with report THP eligibility for each vma

2018-12-24 Thread Michal Hocko
On Mon 24-12-18 14:12:51, Mike Rapoport wrote: > On Mon, Dec 24, 2018 at 08:49:16AM +0100, Michal Hocko wrote: > > [Cc-ing mailing list and people involved in the original patch] > > > > On Fri 21-12-18 13:42:24, Paul Oppenheimer wrote: > > > Hello! I've never reported a kernel bug before, and

Re: [B.A.T.M.A.N.] [PATCH] batman-adv/main: Fix check on return value of rtnl_link_register

2018-12-24 Thread Sven Eckelmann
On Monday, 24 December 2018 18.49.26 CET Aditya Pakki wrote: > rtnl_link_register() may fail and can impact registering the device. > The fix checks the return value and pushes the error upstream. Regarding the commit message - what is "batman-adv/main"? Shouldn't this be "batman-adv: "? And

Re: [B.A.T.M.A.N.] [PATCH] batman-adv/main: Fix check on return value of rtnl_link_register

2018-12-24 Thread Sven Eckelmann
On Monday, 24 December 2018 18.49.26 CET Aditya Pakki wrote: [...] > diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c > index 69c0d85bceb3..e0007f242823 100644 > --- a/net/batman-adv/main.c > +++ b/net/batman-adv/main.c > @@ -109,7 +109,10 @@ static int __init batadv_init(void) >

Re: FYI: Userland breakage caused by udev bind commit

2018-12-24 Thread Christian Brauner
On Mon, Dec 24, 2018 at 10:28:20AM -0800, Linus Torvalds wrote: > On Mon, Dec 24, 2018 at 10:13 AM Christian Brauner > wrote: > > > > So one possibility is to add a socket option for lib/kobject_uevent.c > > that can be set via setsockopt. We did something like this in netlink > > for strict

[PATCH] input/touchscreen: Fix a missing check on regmap_bulk_read

2018-12-24 Thread Aditya Pakki
regmap_bulk_read() can return a non zero value on failure. The fix checks if the function call succeeded before calling mod_timer. Signed-off-by: Aditya Pakki --- drivers/input/touchscreen/ad7879.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

  1   2   3   4   >