Re: [PATCH v9 04/11] arm64: kexec_file: allocate memory walking through memblock list

2018-05-06 Thread AKASHI Takahiro
James, On Tue, May 01, 2018 at 06:46:09PM +0100, James Morse wrote: > Hi Akashi, > > On 25/04/18 07:26, AKASHI Takahiro wrote: > > We need to prevent firmware-reserved memory regions, particularly EFI > > memory map as well as ACPI tables, from being corrupted by loading > > kernel/initrd (or

Re: [PATCH V2 1/5] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2018-05-06 Thread kgunda
Hi Jingoo Han, Thanks for the response. Thanks, Kiran On 2018-05-04 21:25, Jingoo Han wrote: On Thursday, May 3, 2018 6:12 AM, Kiran Gunda wrote: If you really want someone to review your patch, please add more detailed explanations. 1. Please add 0th patch. I have already added the 0th

Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge

2018-05-06 Thread Mike Galbraith
On Sun, 2018-05-06 at 09:42 +0200, Paolo Valente wrote: > > diff --git a/block/bfq-mq-iosched.c b/block/bfq-mq-iosched.c > index 118f319af7c0..6662efe29b69 100644 > --- a/block/bfq-mq-iosched.c > +++ b/block/bfq-mq-iosched.c > @@ -525,8 +525,13 @@ static void bfq_limit_depth(unsigned int op,

Re: [PATCH 3/3] staging: wilc1000: Remove unnecessary array index check

2018-05-06 Thread Ajay Singh
On Sun, 6 May 2018 00:33:33 -0700 Nathan Chancellor wrote: > This statment triggers GCC's -Wtype-limit since key_index is an > unsigned integer so it cannot be less than zero. > > Signed-off-by: Nathan Chancellor Reviewed-by: Ajay Singh

Re: [PATCH 2/3] staging: wilc1000: Remove useless function

2018-05-06 Thread Ajay Singh
On Sun, 6 May 2018 00:33:32 -0700 Nathan Chancellor wrote: > GCC warns that 'wid' is unused in wilc_remove_key and it's correct; > the variable is only local. Get rid of the function (since it just > returns zero) and shuffle the remaining code into one if statement. >

Re: [PATCH 1/3] staging: wilc1000: Remove unused variables

2018-05-06 Thread Ajay Singh
Thank you for the patch series. On Sun, 6 May 2018 00:33:31 -0700 Nathan Chancellor wrote: > GCC warns these variables are all set but never used so remove them. > > Signed-off-by: Nathan Chancellor Reviewed-by: Ajay Singh

Re: [PATCH] clocksource/drivers/sprd: Fix Kconfig dependency

2018-05-06 Thread Daniel Lezcano
On Thu, May 03, 2018 at 08:27:32PM +0800, Chunyan Zhang wrote: > SPRD arch doesn't select SPRD_TIMER, so this config would not > appear even if ARCH_SPRD is set and COMPILE_TEST is not. > > Fix the Kconfig selection rule by letting the SPRD arch to select. Instead of changing this Kconfig,

linux-next: Tree for May 7

2018-05-06 Thread Stephen Rothwell
Hi all, Changes since 20180504: The net-next tree gained a conflict against the net tree. The tip tree gained conflicts against the bpf-next tree. Non-merge commits (relative to Linus' tree): 4139 3963 files changed, 164135 insertions(+), 75455 deletions(-)

Re: [PATCH v9 03/11] arm64: kexec_file: invoke the kernel without purgatory

2018-05-06 Thread AKASHI Takahiro
On Tue, May 01, 2018 at 06:46:06PM +0100, James Morse wrote: > Hi Akashi, > > On 25/04/18 07:26, AKASHI Takahiro wrote: > > On arm64, purugatory would do almosty nothing. So just invoke secondary > > kernel directy by jumping into its entry code. > > (Nits: purgatory, almost, directly) Oops, I

Re: [PATCH] scsi: sg: fix a missing-check bug

2018-05-06 Thread Douglas Gilbert
On 2018-05-05 11:21 PM, Wenwen Wang wrote: In sg_write(), the opcode of the command is firstly copied from the userspace pointer 'buf' and saved to the kernel variable 'opcode', using the __get_user() function. The size of the command, i.e., 'cmd_size' is then calculated based on the 'opcode'.

Re: [greybus-dev] [PATCH] staging: greybus: Remove unused local variable

2018-05-06 Thread Viresh Kumar
On 05-05-18, 23:50, Nathan Chancellor wrote: > Fixes the following W=1 warning: variable ‘intf_id’ set but > not used [-Wunused-but-set-variable] > > Signed-off-by: Nathan Chancellor > --- > drivers/staging/greybus/svc.c | 3 --- > 1 file changed, 3 deletions(-) > >

Re: [PATCH 04/24] selftests: cpufreq: return Kselftest Skip code for skipped tests

2018-05-06 Thread Viresh Kumar
On 04-05-18, 19:13, Shuah Khan (Samsung OSG) wrote: > When cpufreq test is skipped because of unmet dependencies and/or > unsupported configuration, it exits with error which is treated as > a fail by the Kselftest framework. This leads to false negative > result even when the test could not be

Re: Kernel build with gcc 8 a lot of warnings

2018-05-06 Thread Josh Poimboeuf
On Sat, May 05, 2018 at 09:21:12PM +0200, damian wrote: > Helllo together, > > Hello everybody, > > is something special to note when kernel build with gcc 8? I receive various > warnings from the objtool: > With GCC 7 works all fine. > > kernel/cgroup/cgroup.o: warning: objtool:

Re: moving affs + RDB partition support to staging?

2018-05-06 Thread jdow
On 20180506 01:52, John Paul Adrian Glaubitz wrote: On 04/27/2018 03:26 AM, jdow wrote: And before I forget there are two features of the RDBs that I heartily recommend never implementing on Linux. They were good ideas at the time; but, times changed. The RDBs are capable of storing

[PATCH v2 7/7] platform/x86: mlx-platform: Add mlxreg-io platform driver activation

2018-05-06 Thread Vadim Pasternak
Add mlxreg-io platform driver activation. Access driver uses the same regmap infrastructure as others Mellanox platform drivers. Specific registers description for default platform data configuration are added to mlx-platform. There are the registers for resets control, reset causes monitoring,

[PATCH v2 4/7] platform: mellanox: add new ODM system types to mlx-platform

2018-05-06 Thread Vadim Pasternak
Add new ODM system types, matched according to DMI_BOARD_NAME. The supported ODM Ids are: VMOD0001, VMOD0002, VMOD0003, VMOD0004, VMOD0005. Patch does not introduce new systems, but allows to ODM companies to set DMI_BOARD_VENDOR and DMI_PRODUCT_NAME on their own. It assumes that ODM company can't

[PATCH v2 5/7] platform/x86: mlx-platform: Add LED platform driver activation

2018-05-06 Thread Vadim Pasternak
Add LED platform driver activation from mlx-platform. This LED driver uses the same regmap infrastructure as others Mellanox platform drivers, so LED specific registers description is added. System LED configuration depends on system type. To support all the relevant types per system type LED

[PATCH v2 6/7] platform/mellanox: Introduce support for Mellanox register access driver

2018-05-06 Thread Vadim Pasternak
Introduce new Mellanox platform driver to allow access to Mellanox programmable device register space trough sysfs interface. The driver purpose is to provide sysfs interface for user space for the registers essential for system control and monitoring. The sets of registers for sysfs access are

[PATCH v2 3/7] platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work queue

2018-05-06 Thread Vadim Pasternak
Add extra cycle for hotplug work queue to handle the case when a signal is It adds missed logic for signal acknowledge, by adding an extra run for received, but no specific signal assertion is detected. Such case theoretically can happen for example in case several units are removed or inserted at

Re: Proof-of-concept: better(?) page-table manipulation API

2018-05-06 Thread Andy Lutomirski
On Tue, Apr 24, 2018 at 8:44 AM Kirill A. Shutemov < kirill.shute...@linux.intel.com> wrote: > Hi everybody, > I've proposed to talk about page able manipulation API on the LSF/MM'2018, > so I need something material to talk about. I gave it a quick read. I like the concept a lot, and I have

Re: [PATCH v3] ASoC: da7219: read fmw property to get mclk for non-dts systems

2018-05-06 Thread Agrawal, Akshu
On 5/4/2018 2:45 PM, Adam Thomson wrote: > On 03 May 2018 08:59, Akshu Agrawal wrote: > >> Non-dts based systems can use ACPI DSDT to pass on the mclk >> to da7219. >> This enables da7219 mclk to be linked to system clock. >> Enable/Disable of the mclk is already handled in the codec so >>

Re: [PATCH v9 02/11] kexec_file: make kexec_image_post_load_cleanup_default() global

2018-05-06 Thread AKASHI Takahiro
On Tue, May 01, 2018 at 06:46:04PM +0100, James Morse wrote: > Hi Akashi, > > On 25/04/18 07:26, AKASHI Takahiro wrote: > > Change this function from static to global so that arm64 can implement > > its own arch_kimage_file_post_load_cleanup() later using > >

Re: linux-next: manual merge of the tip tree with the bpf-next tree

2018-05-06 Thread Stephen Rothwell
Hi all, On Mon, 7 May 2018 12:09:09 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the tip tree got a conflict in: > > arch/x86/net/bpf_jit_comp.c > > between commit: > > e782bdcf58c5 ("bpf, x64: remove ld_abs/ld_ind") > > from the bpf-next tree and

Re: [PATCH] x86/vdso: remove unused file

2018-05-06 Thread Andy Lutomirski
On Fri, May 4, 2018 at 10:59 AM Jann Horn wrote: > commit da861e18eccc ("x86, vdso: Get rid of the fake section mechanism") > left this file behind; nothing is using it anymore. Acked-by: Andy Lutomirski

Re: [PATCH v2 01/14] mtd: rawnand: helper function for setting up ECC parameters

2018-05-06 Thread Masahiro Yamada
2018-05-03 21:20 GMT+09:00 Abhishek Sahu : > commit 2c8f8afa7f92 ("mtd: nand: add generic helpers to check, > match, maximize ECC settings") provides generic helpers which > drivers can use for setting up ECC parameters. > > Since same board can have different ECC strength

[PATCH v2 03/13] drm/kms/mode/exynos-dsi: using helper func drm_display_mode_to_videomode for calculating timing parameters

2018-05-06 Thread Satendra Singh Thakur
To avoid duplicate logic for the same Signed-off-by: Satendra Singh Thakur Acked-by: Madhur Verma Cc: Hemanshu Srivastava --- v2: Removed Mr Robin from reviewed-by field drivers/gpu/drm/exynos/exynos_drm_dsi.c |

[PATCH v2] drm/kms/mode: added a new helper for calculating videomode from crtc's display mode

2018-05-06 Thread Satendra Singh Thakur
1. -Added a new helper drm_display_mode_crtc_to_videomode -This helper calculates mode parameters like --horizontal front_porch, back_porch, sync length --vertical front_porch, back_porch, sync length -using crtc fields of struct drm_display_mode -It uses following fields of crtc mode --horizontal

Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge

2018-05-06 Thread Mike Galbraith
On Mon, 2018-05-07 at 04:43 +0200, Mike Galbraith wrote: > On Sun, 2018-05-06 at 09:42 +0200, Paolo Valente wrote: > > > > I've attached a compressed patch (to avoid possible corruption from my > > mailer). I'm little confident, but no pain, no gain, right? > > > > If possible, apply this patch

Re: [PATCH] VFIO: Fix Documentation

2018-05-06 Thread dongbo (E)
Hi, Alex. On 2018/5/1 2:38, Alex Williamson wrote: > On Fri, 20 Apr 2018 18:07:27 +0800 > "dongbo (E)" wrote: > >> From: Dong Bo >> >> Signed-off-by: Dong Bo >> --- > > Hi Dong Bo, > > The patch is corrupted, please resend and also

Re: [RFC PATCH 3/3] arcnet: com20020: Add ethtool support

2018-05-06 Thread Tobin C. Harding
On Sat, May 05, 2018 at 11:35:29PM +0200, Andrea Greco wrote: > From: Andrea Greco > > Setup ethtols for export com20020 diag register > > Signed-off-by: Andrea Greco > --- > drivers/net/arcnet/com20020-isa.c| 1 + >

Linux 4.17-rc4

2018-05-06 Thread Linus Torvalds
Hmm. Things look fairly normal. Two thirds of the 4.17-rc4 patch is drivers, which sounds about right. Media, networking, rdma, input, nvme, usb. A little bit of everything, in other words. There's the usual architecture suspects, and some othe rcore updates too (mainly networking, but some

[PATCH] vfio: fix documentation

2018-05-06 Thread dongbo (E)
From: Dong Bo Update vfio_add_group_dev description to match the current API. Signed-off-by: Dong Bo --- Documentation/vfio.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/vfio.txt b/Documentation/vfio.txt

Re: [PATCH v3 6/9] ALSA: hda/ca0132: add alt_select_in/out for R3Di + SBZ

2018-05-06 Thread Takashi Sakamoto
Hi, On May 6 2018 04:03, Connor McAdams wrote: Add functions ca0132_alt_select_out and ca0132_alt_select_in for switching outputs and inputs for r3di and sbz. Also, add enumerated controls for selecting output and input source. Signed-off-by: Connor McAdams ---

Re: [RFC PATCH 2/3] arcnet: com20020: Fixup missing SLOWARB bit

2018-05-06 Thread Tobin C. Harding
On Sat, May 05, 2018 at 11:37:54PM +0200, Andrea Greco wrote: > From: Andrea Greco > > If com20020 clock is major of 40Mhz SLOWARB bit is requested. > > Signed-off-by: Andrea Greco > --- > drivers/net/arcnet/com20020.c | 4 > 1 file changed, 4

Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020

2018-05-06 Thread Tobin C. Harding
On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: > From: Andrea Greco Hi Andrea, Here are some (mostly stylistic) suggestions to help you get your driver merged. > Add support for com20022I/com20020, memory mapped chip version. > Support bus: Intel 80xx and

Re: [PATCH 1/2] kdump/x86: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM

2018-05-06 Thread Dave Young
On 04/27/18 at 05:14pm, Dave Young wrote: > Hi, > > This is a resend of below patches: > http://lists.infradead.org/pipermail/kexec/2017-October/019569.html > > I dropped the original patch 1 since Baoquan is not happy with it. > For patch 2 (the 1st patch in this series), there is some

RE: [PATCH] Documentation: block: cmdline-partition.txt fixes and additions

2018-05-06 Thread Caizhiyong
> -Original Message- > From: Randy Dunlap [mailto:rdun...@infradead.org] > Sent: Monday, May 07, 2018 2:50 AM > To: linux-bl...@vger.kernel.org; axboe > Cc: LKML ; Caizhiyong > ; Andrew Morton

Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge

2018-05-06 Thread Mike Galbraith
On Sun, 2018-05-06 at 09:42 +0200, Paolo Valente wrote: > > I've attached a compressed patch (to avoid possible corruption from my > mailer). I'm little confident, but no pain, no gain, right? > > If possible, apply this patch on top of the fix I proposed in this > thread, just to eliminate

Re: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE

2018-05-06 Thread Michael Ellerman
"Naveen N. Rao" writes: > Michael Ellerman wrote: >> From: Al Viro >> >> Signed-off-by: Al Viro >> --- >> arch/powerpc/kernel/pci_32.c | 6 +++--- >> arch/powerpc/kernel/pci_64.c |

Re: moving affs + RDB partition support to staging?

2018-05-06 Thread Michael Schmitz
Al, I don't think there is USB sticks with affs on them as yet. There isn't even USB host controller support for Amiga hardware (yet). Last I tried USB on m68k (Atari, 060 accelerator) the desktop experience was such that I'd rather not repeat that in a hurry (and that was a simple FAT USB

RE: [PATCH v3] block: add verifier for cmdline partition

2018-05-06 Thread Caizhiyong
> /* > * Purpose: allocate cmdline partitions. > * Returns: > @@ -93,6 +158,7 @@ int cmdline_partition(struct parsed_partitions *state) > disk_size = get_capacity(state->bdev->bd_disk) << 9; > > cmdline_parts_set(parts, disk_size, 1, add_part, (void *)state); > +

Re: [PATCH v3 5/9] ALSA: hda/ca0132: add/change helper functions for R3Di and SBZ

2018-05-06 Thread Takashi Sakamoto
Hi, On May 6 2018 04:03, Connor McAdams wrote: Edit core functions to support the Sound Blaster Z and Recon3Di for startup and loading of the DSP, as well as setting effects. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 1064

[PATCH] pinctrl: mvebu: use correct MPP sel value for dev pins

2018-05-06 Thread Chris Packham
The "dev" function is selected with the value 0x4 not 0x01. Fixes: commit d7ae8f8dee7f ("pinctrl: mvebu: pinctrl driver for 98DX3236 SoC") Signed-off-by: Chris Packham --- drivers/pinctrl/mvebu/pinctrl-armada-xp.c | 20 ++-- 1 file changed, 10

Re: [PATCH] iio: humidity: hts221: Fix sensor reads after resume

2018-05-06 Thread Shrirang Bagul
On Sun, 2018-05-06 at 17:19 +0100, Jonathan Cameron wrote: > On Mon, 30 Apr 2018 12:25:46 +0800 > Shrirang Bagul wrote: > > > CTRL1 register (ODR & BDU settings) gets reset after system comes back > > from suspend, causing subsequent reads from the sensor to fail. >

[PATCH v2] f2fs-tools: fix to match with the start_sector

2018-05-06 Thread Yunlong Song
f2fs-tools uses ioctl BLKSSZGET to get sector_size, however, this ioctl will return a value which may be larger than 512 (according to the value of q->limits.logical_block_size), then this will be inconsistent with the start_sector, since start_sector is got from ioctl HDIO_GETGEO and is always in

Re: moving affs + RDB partition support to staging?

2018-05-06 Thread Al Viro
On Sun, May 06, 2018 at 10:32:47PM +0100, Al Viro wrote: > On Sun, May 06, 2018 at 09:46:23PM +0100, Al Viro wrote: > > > I'm fixing that pile of crap (along with the NFS exports > > one and, hopefully, rename mess as well). HOWEVER, I am not going > > to take over the damn thing - David has

linux-next: manual merge of the tip tree with the bpf-next tree

2018-05-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/net/bpf_jit_comp.c between commit: e782bdcf58c5 ("bpf, x64: remove ld_abs/ld_ind") from the bpf-next tree and commit: 5f26c50143f5 ("x86/bpf: Clean up non-standard comments, to make the code more readable")

[PATCH-next] scsi: libsas: dynamically allocate and free ata host

2018-05-06 Thread Jason Yan
Now the ata host for libsas is embedded in domain_device, and the ->kref member is not initialized. Afer we add ata transport class, ata_host_get() will be called when adding transport ATA port and a warning will be triggered as below: refcount_t: increment on 0; use-after-free. WARNING: CPU: 2

Re: [PATCH] isdn: eicon: fix a missing-check bug

2018-05-06 Thread YU Bo
Hello, I am just notice your subject line.There are missing something i think On Sat, May 05, 2018 at 02:32:46PM -0500, Wenwen Wang wrote: In divasmain.c, the function divas_write() firstly invokes the function diva_xdi_open_adapter() to open the adapter that matches with the adapter number

Re: [J-core] [PATCH v5 00/22] sh: LANDISK and R2Dplus convert to device tree

2018-05-06 Thread Yoshinori Sato
On Thu, 03 May 2018 19:07:38 +0900, John Paul Adrian Glaubitz wrote: > > [1 ] > Hi Rich! > > On 05/03/2018 04:33 AM, Rich Felker wrote: > > I found the U-Boot stuff here: > > > > https://ja.osdn.net/users/ysato/pf/uboot/wiki/FrontPage > > > > but I'm not sure how to install it yet. Will try

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-06 Thread 858585 jemmy
On Sat, May 5, 2018 at 2:23 AM, Jason Gunthorpe wrote: > On Fri, May 04, 2018 at 04:51:15PM +0800, 858585 jemmy wrote: >> On Fri, May 4, 2018 at 11:14 AM, 858585 jemmy wrote: >> > On Thu, May 3, 2018 at 11:33 PM, Jason Gunthorpe wrote: >> >>

Re: [PATCH V7 1/7] ARM: dts: imx6sx-sabreauto: add PMIC support

2018-05-06 Thread Shawn Guo
On Sun, May 06, 2018 at 02:28:07PM +0800, Anson Huang wrote: > Add pfuze100 support on i.MX6SX Sabre Auto board. > > Signed-off-by: Anson Huang Applied all, thanks.

[PATCH -next] ASoC: fix return value check in mt6351_codec_driver_probe()

2018-05-06 Thread Wei Yongjun
In case of error, the function dev_get_regmap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun --- sound/soc/codecs/mt6351.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] objtool: fix dead end logic for recursive sibling calls

2018-05-06 Thread Josh Poimboeuf
Objtool has some crude logic for detecting static functions which never return (aka "dead ends"). This is necessary for being able to correctly follow GCC code flow when such functions are called. It's remotely possible for two functions to call each other via sibling calls. If they don't have

[PATCH 2/2] staging: android: ion: Remove unnecessary blank line

2018-05-06 Thread Nathan Chancellor
Fixes a checkpatch.pl warning. Signed-off-by: Nathan Chancellor --- drivers/staging/android/ion/ion.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 269a431646be..d10b60fe4a29 100644 ---

[PATCH 1/2] staging: android: ion: Fix license identifier comment format

2018-05-06 Thread Nathan Chancellor
checkpatch.pl complains these are invalid because the rules in Documentation/process/license-rules.rst state that C headers should have "/* */" style comments. Signed-off-by: Nathan Chancellor --- drivers/staging/android/ion/ion.h | 2 +-

[PATCH 1/6] staging: android: Kconfig; Remove excessive hyphens

2018-05-06 Thread Nathan Chancellor
Fixes the following checkpatch.pl warning: "prefer 'help' over '---help---' for new help texts" Signed-off-by: Nathan Chancellor --- drivers/staging/android/Kconfig | 4 ++-- drivers/staging/android/ion/Kconfig | 2 +- 2 files changed, 3 insertions(+), 3

Re: [PATCH v3 1/3] resource: Use list_head to link sibling resource

2018-05-06 Thread Baoquan He
Hi Wei Yang, On 04/26/18 at 09:18am, Wei Yang wrote: > On Thu, Apr 19, 2018 at 08:18:46AM +0800, Baoquan He wrote: > >The struct resource uses singly linked list to link siblings. It's not > >easy to do reverse iteration on sibling list. So replace it with list_head. > > > > Hi, Baoquan > >

[PATCH 3/6] staging: android: vsoc: Fix ending '(' warnings in function defintions

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor --- drivers/staging/android/vsoc.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/staging/android/vsoc.c

[PATCH 5/6] staging: android: vsoc: Fix ending '(' warnings in vsoc_ioctl

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor --- drivers/staging/android/vsoc.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/staging/android/vsoc.c

[PATCH 4/6] staging: android: vsoc: Fix ending '(' warnings in do_destroy_fd_scoped_permission

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor --- drivers/staging/android/vsoc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/vsoc.c b/drivers/staging/android/vsoc.c

[PATCH 2/6] staging: android: Clean up license identifiers

2018-05-06 Thread Nathan Chancellor
Add the identifiers when missing and fix the ones already present according to checkpatch.pl. Signed-off-by: Nathan Chancellor --- drivers/staging/android/ashmem.h| 6 +- drivers/staging/android/uapi/ashmem.h | 6 +-

[PATCH 6/6] staging: android: vsoc: Fix ending '(' warnings in vsoc_probe_device

2018-05-06 Thread Nathan Chancellor
Fixes checkpatch.pl warnings about lines ending with parentheses. Signed-off-by: Nathan Chancellor --- drivers/staging/android/vsoc.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/staging/android/vsoc.c

Re: [PATCH v8 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64

2018-05-06 Thread Jia He
On 5/5/2018 12:53 AM, Pavel Tatashin Wrote: I'm wondering, ain't simple enabling of config DEFERRED_STRUCT_PAGE_INIT provide even better speed-up? If that is the case then it seems like this series is not needed at all, right? I am not sure why is this config optional. It looks like it could

Re: [PATCH] locking/atomics/powerpc: Move cmpxchg helpers to asm/cmpxchg.h and define the full set of cmpxchg APIs

2018-05-06 Thread Boqun Feng
On Sun, May 6, 2018, at 8:11 PM, Ingo Molnar wrote: > > * Boqun Feng wrote: > > > > The only change I made beyond a trivial build fix is that I also added > > > the release > > > atomics variants explicitly: > > > > > > +#define atomic_cmpxchg_release(v, o, n) \ > > >

[PATCH 00/10 - v2] staging: lustre: assorted improvements.

2018-05-06 Thread NeilBrown
This v2 series contains some fixes for issue found during review - particularly the share/exclusive locking confusion of the hash table in one place, and a missing EXPORT_SYMPOL. It also adds some reviewed-by tags. original intro: First 6 patches are clean-up patches that I pulled out of my

[PATCH 10/10] staging: lustre: fix error deref in ll_splice_alias().

2018-05-06 Thread NeilBrown
d_splice_alias() can return an ERR_PTR(). If it does while debugging is enabled, the following CDEBUG() will dereference that error and crash. So add appropriate checking, and provide a separate debug message for the error case. Reported-and-tested-by: James Simmons

[PATCH 03/10] staging: lustre: lu_object: discard extra lru count.

2018-05-06 Thread NeilBrown
lu_object maintains 2 lru counts. One is a per-bucket lsb_lru_len. The other is the per-cpu ls_lru_len_counter. The only times the per-bucket counters are use are: - a debug message when an object is added - in lu_site_stats_get when all the counters are combined. The debug message is not

[PATCH 09/10] staging: lustre: move remaining code from linux-module.c to module.c

2018-05-06 Thread NeilBrown
There is no longer any need to keep this code separate, and now we can remove linux-module.c Reviewed-by: James Simmons Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |4 drivers/staging/lustre/lnet/libcfs/Makefile

[PATCH 08/10] staging: lustre: move misc-device registration closer to related code.

2018-05-06 Thread NeilBrown
The ioctl handler for the misc device is in lnet/libcfs/module.c but is it registered in lnet/libcfs/linux/linux-module.c. Keeping related code together make maintenance easier, so move the code. Reviewed-by: James Simmons Signed-off-by: NeilBrown ---

[PATCH 05/10] staging: lustre: fold lu_object_new() into lu_object_find_at()

2018-05-06 Thread NeilBrown
lu_object_new() duplicates a lot of code that is in lu_object_find_at(). There is no real need for a separate function, it is simpler just to skip the bits of lu_object_find_at() that we don't want in the LOC_F_NEW case. Signed-off-by: NeilBrown ---

[PATCH 06/10] staging: lustre: llite: use more private data in dump_pgcache

2018-05-06 Thread NeilBrown
The dump_page_cache debugfs file allocates and frees an 'env' in each call to vvp_pgcache_start,next,show. This is likely to be fast, but does introduce the need to check for errors. It is reasonable to allocate a single 'env' when the file is opened, and use that throughout. So create

[PATCH 04/10] staging: lustre: lu_object: move retry logic inside htable_lookup

2018-05-06 Thread NeilBrown
The current retry logic, to wait when a 'dying' object is found, spans multiple functions. The process is attached to a waitqueue and set TASK_UNINTERRUPTIBLE in htable_lookup, and this status is passed back through lu_object_find_try() to lu_object_find_at() where schedule() is called and the

[PATCH 02/10] staging: lustre: make struct lu_site_bkt_data private

2018-05-06 Thread NeilBrown
This data structure only needs to be public so that various modules can access a wait queue to wait for object destruction. If we provide a function to get the wait queue, rather than the whole bucket, the structure can be made private. Reviewed-by: Andreas Dilger

[PATCH 07/10] staging: lustre: llite: remove redundant lookup in dump_pgcache

2018-05-06 Thread NeilBrown
Both the 'next' and the 'show' functions for the dump_page_cache seqfile perform a lookup based on the current file index. This is needless duplication. The reason appears to be that the state that needs to be communicated from "next" to "show" is two pointers, but seq_file only provides for a

linux-next: build warning after merge of the netfilter-next tree

2018-05-06 Thread Stephen Rothwell
Hi all, After merging the netfilter-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning: ./usr/include/linux/netfilter/nf_osf.h:25: found __[us]{8,16,32,64} type without #include Introduced by commit bfb15f2a95cb ("netfilter: extract Passive OS fingerprint

[PATCH 01/10] staging: lustre: ldlm: store name directly in namespace.

2018-05-06 Thread NeilBrown
Rather than storing the name of a namespace in the hash table, store it directly in the namespace. This will allow the hashtable to be changed to use rhashtable. Reviewed-by: James Simmons Signed-off-by: NeilBrown ---

Re: [PATCH 8/9] perf/breakpoint: Split breakpoint "check" and "commit"

2018-05-06 Thread Joel Fernandes
On Sun, May 6, 2018 at 12:22 PM Frederic Weisbecker wrote: > arch_validate_hwbkpt_settings() mixes up attribute check and commit into > a single code entity. Therefore the validation may return an error due to > incorrect atributes while still leaving halfway modified

HI

2018-05-06 Thread lucy...@usa.com
-- This is Captain Lucy Ben,from Us but working here in Afghanistan for peace making,but i discover something that will benefit us both, first have you travel before out of your country?Do you use email address? Contact My e-mail address ( lucy...@usa.com ) for more details

RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-06 Thread Woojung.Huh
Hi Florian, > Well, the way the code is structure is that if you call that function > with a test mode value that is not part of the standard set, it returns > -EOPNOTSUPP, so if your particular PHY driver wants to "overlay" > standard and non-standard modes, it can by using that hint. > > This

Re: [PATCH] nubus: Unconditionally register bus type

2018-05-06 Thread Finn Thain
On Sun, 6 May 2018, Greg Kroah-Hartman wrote: > > > Why not just have an "bus is registered" flag in your driver > > > register function that refuses to let drivers register with the > > > driver core if it isn't set? > > > > Perhaps that should happen in the core driver_register() function.

linux-next: manual merge of the net-next tree with the net tree

2018-05-06 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: kernel/bpf/syscall.c between commit: 9ef09e35e521 ("bpf: fix possible spectre-v1 in find_and_alloc_map()") from the net tree and commit: a26ca7c982cb ("bpf: btf: Add pretty print support to the basic arraymap")

Re: perf: fuzzer causes stack going in wrong direction warnings

2018-05-06 Thread Josh Poimboeuf
On Sat, May 05, 2018 at 01:29:12PM -0500, Josh Poimboeuf wrote: > On Sat, May 05, 2018 at 11:38:16AM -0400, Vince Weaver wrote: > > On Fri, 4 May 2018, Josh Poimboeuf wrote: > > > > > > The 'nmi_restore' warning points to a bug in my patch, but the others > > > are head scratchers. Here's a

linux-next: build warning after merge of the rdma tree

2018-05-06 Thread Stephen Rothwell
Hi all, After merging the rdma tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/infiniband/hw/cxgb4/restrack.c: In function 'fill_res_qp_entry': drivers/infiniband/hw/cxgb4/restrack.c:140:6: warning: 'last_rq_idx' may be used uninitialized in this function

linux-next: build warning after merge of the rdma tree

2018-05-06 Thread Stephen Rothwell
Hi all, After merging the rdma tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: drivers/infiniband/hw/cxgb4/restrack.c: In function 'fill_res_qp_entry': drivers/infiniband/hw/cxgb4/restrack.c:162:6: warning: 'last_rq_idx' may be used uninitialized in this function

Re: [PATCH v3 0/4] Better integrate seccomp logging and auditing

2018-05-06 Thread Kees Cook
On Sun, May 6, 2018 at 2:31 PM, Paul Moore wrote: > On Thu, May 3, 2018 at 9:08 PM, Tyler Hicks wrote: >> Seccomp received improved logging controls in v4.14. Applications can opt >> into >> logging of "handled" actions (SECCOMP_RET_TRAP,

Re: [PATCH 10/18] thermal: exynos: move IRQs clearing to exynos_tmu_initialize()

2018-05-06 Thread Eduardo Valentin
Hey, On Thu, Apr 26, 2018 at 01:51:25PM +0200, Bartlomiej Zolnierkiewicz wrote: > Move ->tmu_clear_irqs call from ->tmu_initialize method to > exynos_tmu_initialize(). > > There should be no functional changes caused by this patch. > > Signed-off-by: Bartlomiej Zolnierkiewicz

Re: [PATCH] thermal: tegra: soctherm: add const to struct thermal_cooling_device_ops

2018-05-06 Thread Eduardo Valentin
On Sun, Apr 08, 2018 at 05:31:45PM +0530, srplinux2008 wrote: > From: srp linux > > Correct the typecast with const to struct thermal_cooling_device_ops. > It is the last argument to the function thermal_of_cooling_device_register > and this argument is of type const. So,

[PATCH 6/6 v1] statfs: add ST_PRIVATE

2018-05-06 Thread Christian Brauner
Currently userspace can only determine whether a mountpoint is private by parsing /proc//mountinfo. It would be convenient to simply retrieve this property with a statvfs() call. This let's userspace avoid costly parsing, supports cases where /proc is not mounted, and supports usecases where file

[PATCH 5/6 v1] statfs: add ST_SLAVE

2018-05-06 Thread Christian Brauner
Currently userspace can only determine whether a mountpoint is slave by parsing /proc//mountinfo. It would be convenient to simply retrieve this property with a statvfs() call. This let's userspace avoid costly parsing, supports cases where /proc is not mounted, and supports usecases where file

[PATCH 2/6 v1] statfs: use << to align with fs header

2018-05-06 Thread Christian Brauner
After switching to using bit-shifts to define MS_* flags switch over ST_* flags too. ST_* and MS_* flags generally have the exact same value. Initializing them identically let's userspace easily detect when flags indicate the same property but use a different value in doing so. Signed-off-by:

[PATCH 4/6 v1] statfs: add ST_SHARED

2018-05-06 Thread Christian Brauner
Currently userspace can only determine whether a mountpoint is shared by parsing /proc//mountinfo. It would be convenient to simply retrieve this property with a statvfs() call. This let's userspace avoid costly parsing, supports cases where /proc is not mounted, and supports usecases where file

[PATCH 1/6 v1] fs: use << for MS_* flags

2018-05-06 Thread Christian Brauner
The definitions for MS_* flags are currently a mixture between hex values and bit-shifts. All higher values are already initialized with bit-shifts for MS_* constants starting with (1<<16). This patch switches the definitions for MS_* constants over to uniformly use bit-shifts. Note that the BIT()

[PATCH 3/6 v1] statfs: add ST_UNBINDABLE

2018-05-06 Thread Christian Brauner
Currently userspace can only determine whether a mountpoint is unbindable by parsing /proc//mountinfo. It would be convenient to simply retrieve this property with a statvfs() call. This let's userspace avoid costly parsing, supports cases where /proc is not mounted, and supports usecases where

[PATCH 0/6 v1] statfs: handle mount propagation

2018-05-06 Thread Christian Brauner
Hey, This is v1 of this patchset. All changes from v0 to v1 are non-functional. Specifically, the commit messages and justification have been extended as requested by Linus and Al. This little series does the following: - unify the definition of constants in statfs.h and fs.h: The definitions

Re: drivers/platform/x86/dell-smbios-smm.c:99: undefined reference to `dcdbas_smi_request'

2018-05-06 Thread Darren Hart
On Fri, May 04, 2018 at 06:27:00PM +, mario.limoncie...@dell.com wrote: > Darren, > > Is this with that fix of mine merged? FYI: This fix has now been merged to linus/master. -- Darren Hart VMware Open Source Technology Center

linux-next: Signed-off-by missing for commit in the netfilter-next tree

2018-05-06 Thread Stephen Rothwell
Hi all, Commit 75e72f05418a ("netfilter: nft_numgen: enable hashing of one element") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpFoSZ0fLmnm.pgp Description: OpenPGP digital signature

Re: [PATCH 8/8] rhashtable: don't hold lock on first table throughout insertion.

2018-05-06 Thread NeilBrown
On Sun, May 06 2018, Herbert Xu wrote: > On Sun, May 06, 2018 at 08:00:49AM +1000, NeilBrown wrote: >> >> The insert function must (and does) take the lock on the bucket before >> testing if there is a "next" table. >> If one inserter finds that it has locked the "last" table (because there >> is

[PATCH] nvmet,rxe: defer ip datagram sending to tasklet

2018-05-06 Thread Alexandru Moise
When using NVME over Fabrics we may end up sending IP packets in interrupt context, we should defer this work to a tasklet. [ 50.939957] WARNING: CPU: 3 PID: 0 at kernel/softirq.c:161 __local_bh_enable_ip+0x1f/0xa0 [ 50.942602] CPU: 3 PID: 0 Comm: swapper/3 Kdump: loaded Tainted: GW

Re: [PATCH 7/8] rhashtable: add rhashtable_walk_prev()

2018-05-06 Thread NeilBrown
On Sat, May 05 2018, Tom Herbert wrote: > On Sat, May 5, 2018 at 2:43 AM, Herbert Xu > wrote: >> On Fri, May 04, 2018 at 01:54:14PM +1000, NeilBrown wrote: >>> rhashtable_walk_prev() returns the object returned by >>> the previous rhashtable_walk_next(), providing

  1   2   3   >