Re: [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-19 Thread Corentin Labbe
On Sat, Aug 19, 2017 at 10:38:36PM +0200, Andrew Lunn wrote: > On Sat, Aug 19, 2017 at 08:50:25PM +0200, Corentin Labbe wrote: > > On Sat, Aug 19, 2017 at 01:05:21AM +0800, Chen-Yu Tsai wrote: > > > On Fri, Aug 18, 2017 at 8:21 PM, Corentin Labbe > > > wrote: > > > > In case of a MDIO switch, the

Re: [PATCH v2] sched/fair: Make PELT signal more accurate

2017-08-19 Thread Joel Fernandes
Hi Mike, On Sat, Aug 19, 2017 at 11:00 PM, Mike Galbraith wrote: > On Sat, 2017-08-19 at 10:58 -0700, Joel Fernandes wrote: >> >> > Ok, I gotta ask: In order to fix what? What exactly does the small >> > but existent overhead increase buy us other than an ever so slightly >> > different chart?

[PATCH] kbuild: use $(abspath ...) instead of $(shell cd ... && /bin/pwd)

2017-08-19 Thread Masahiro Yamada
Kbuild conventionally uses $(shell cd ... && /bin/pwd) idiom to get the absolute path of the directory because GNU Make 3.80, the minimal supported version at that time, did not support $(abspath ...) or $(realpath ...). Commit 37d69ee30808 ("docs: bump minimal GNU Make version to 3.81") dropped t

Re: [PATCH] ARM: sun8i: a83t: Add device tree for Sinovoip Bananapi BPI-M3

2017-08-19 Thread icenowy
在 2017-08-20 08:59,kbuild test robot 写道: Hi Chen-Yu, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.13-rc5 next-20170817] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] In fact this tree shouldn't be applied on robh's t

[PATCH 11/12] ASoC: tegra: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

[PATCH 12/12] ASoC: ux500: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to mop500_card.dev, then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data,but when calling snd_soc_register_card, the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i th

Re: [PATCH v2] sched/fair: Make PELT signal more accurate

2017-08-19 Thread Mike Galbraith
On Sat, 2017-08-19 at 10:58 -0700, Joel Fernandes wrote: > > > Ok, I gotta ask: In order to fix what? What exactly does the small > > but existent overhead increase buy us other than an ever so slightly > > different chart? What is your motivation to care about a microscopic > > change in signa

[PATCH 10/12] ASoC: sun4i-codec: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev in create_card,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation

[PATCH 09/12] ASoC: qcom: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

[PATCH 08/12] ASoC: qcom: Remove useless function call

2017-08-19 Thread Peng Donglin
The function platform_set_drvdata(pdev, data) copies the value of the variable data to pdev->dev.driver_data,but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will override it, so i think that the former copy operation is useless and can be removed. Signed-off-by

[PATCH 2/2] ARM: sunxi: add support for R40 SoC

2017-08-19 Thread Icenowy Zheng
Allwinner R40 is a new SoC, with Quad Core Cortex-A7 and peripherals like A20. Add support for it. Signed-off-by: Icenowy Zheng --- Documentation/arm/sunxi/README | 6 ++ Documentation/devicetree/bindings/arm/sunxi.txt | 1 + arch/arm/mach-sunxi/sunxi.c

[PATCH 1/2] dt-bindings: add compatible string for Allwinner V3s SoC

2017-08-19 Thread Icenowy Zheng
The compatible string for Allwinner V3s SoC used to be missing. Add it to the binding document. Fixes: b074fede01c0 ("arm: sunxi: add support for V3s SoC") Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/arm/sunxi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Docume

[PATCH 07/12] ASoC: mxs-sgtl5000: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

[PATCH 06/12] ASoC: rockchip: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

[PATCH 05/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
The function platform_set_drvdata copies the value the variable card to card->dev->driver_data, then the address of &pdev->dev is assigned to card->dev in atmel_pdmic_asoc_card_init, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will do the same copy operation

[PATCH 04/12] ASoC: atmel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
The function platform_set_drvdata copies the value the variable card to card->dev->driver_data, then the address of &pdev->dev is assigned to card->dev in atmel_classd_asoc_card_init, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will do the same copy operatio

[PATCH 03/12] ASoC: Intel: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev, when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) copies the value the variable card to card->dev->driver_data.After that,the function platform_set_drvdata does the same copy operation, so i think that th

[PATCH 01/12] ASoC: s3c24xx_uda134x: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

[PATCH 02/12] ASoC: mediatek: Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

[PATCH 00/12] Remove unnecessary function call

2017-08-19 Thread Peng Donglin
First of all,the address of pdev->dev is assigned to card->dev,then the function platform_set_drvdata copies the value the variable card to pdev->dev.driver_data, but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will also do the same copy operation,so i think tha

Re: [PATCH v2] membarrier: Document scheduler barrier requirements

2017-08-19 Thread Paul E. McKenney
On Fri, Aug 18, 2017 at 09:39:16PM -0700, Mathieu Desnoyers wrote: > Document the membarrier requirement on having a full memory barrier in > __schedule() after coming from user-space, before storing to rq->curr. > It is provided by smp_mb__before_spinlock() in __schedule(). > > Document that memb

Re: [PATCH v2 1/4] staging: pi433: Style fix - Correct long lines

2017-08-19 Thread Joe Perches
On Wed, 2017-08-16 at 10:31 +0300, Dan Carpenter wrote: > On Wed, Aug 16, 2017 at 10:53:18AM +0530, Rishabh Hardas wrote: > > @@ -143,10 +142,13 @@ struct pi433_rx_cfg { > > > > #define PI433_IOC_MAGIC'r' > > > > -#define PI433_IOC_RD_TX_CFG_IOR(PI433_IOC_MAGIC, > >

Re: [PATCH] net: ibm: emac: Fix some error handling path in 'emac_probe()'

2017-08-19 Thread Christophe JAILLET
Le 19/08/2017 à 15:22, Christian Lamparter a écrit : On Saturday, August 19, 2017 1:07:57 AM CEST Christophe JAILLET wrote: If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is known to be 0 at this point. So return -ENODEV instead in the first case and propagate the error re

[PATCH v2] net: ibm: emac: Fix some error handling path in 'emac_probe()'

2017-08-19 Thread Christophe JAILLET
If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is known to be 0 at this point. So return -ENODEV instead in the first case and use 'of_iomap()' instead of the equivalent 'of_address_to_resource()/ioremap()' combinaison in the 2nd case. Doing so, the 'rsrc_regs' field of the

Re: [PATCH][netdev-next] bnxt_en: fix spelling mistake: "swtichdev" -> "switchdev"

2017-08-19 Thread David Miller
From: Colin King Date: Fri, 18 Aug 2017 16:40:00 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in a netdev_info message > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH][net-next] net: hns3: fix a handful of spelling mistakes

2017-08-19 Thread David Miller
From: Colin King Date: Fri, 18 Aug 2017 16:30:00 +0100 > From: Colin Ian King > > Trival fix to spelling mistakes: > > firware -> firmware > invald -> invalid > mutilcast -> multicast > > Signed-off-by: Colin Ian King Applied, thanks.

Re: [PATCH v6 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-19 Thread Oza Oza
On Sun, Aug 20, 2017 at 1:56 AM, Bjorn Helgaas wrote: > On Sun, Aug 20, 2017 at 01:02:09AM +0530, Oza Oza wrote: >> On Sat, Aug 19, 2017 at 11:56 PM, Bjorn Helgaas wrote: > >> > I think you should do something like this instead so you don't do the >> > MMIO read any more times than necessary: >>

Re: undefined reference to `_GLOBAL_OFFSET_TABLE_'

2017-08-19 Thread Nicholas Piggin
On Sun, 20 Aug 2017 08:37:36 +0800 kbuild test robot wrote: > Hi Nicholas, > > FYI, the error/warning still remains. Still same answer as before, i.e., it seems to be this toolchain bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21017 I've had no response from the microblaze maintainer,

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-19 Thread Oza Oza
On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: >> PERST must be asserted around ~500ms before the reboot is applied. >> >> During soft reset (e.g., "reboot" from Linux) on some iproc based SOCs >> LCPLL clock and PERST both go

Teo En Ming's Guide to Passing the Cisco Certified Network Associate (CCNA) Exams

2017-08-19 Thread Turritopsis Dohrnii Teo En Ming
Hi Everyone! You may download the guide in PDF format from the following links. https://drive.google.com/open?id=0B96mKCooAF0nbDNhUTZMamRQc2M https://www.scribd.com/document/356726248/Teo-En-Ming-s-Guide-to-Passing-the-CCNA-Exams Practice makes perfect! Yours sincerely, Mr. Turritopsis Dohrn

Re: [PATCH v8 09/14] lockdep: Apply crossrelease to completions

2017-08-19 Thread Boqun Feng
On Sat, Aug 19, 2017 at 02:51:17PM +0200, Arnd Bergmann wrote: [...] > > Those two "rep movsq"s are very suspicious, because > > COMPLETION_INITIALIZER_ONSTACK() should initialize the data in-place, > > rather than move it to some temporary variable and copy it back. > > Right. I've seen this beha

Re: [lustre-devel] [PATCH 0/6] dcache/namei fixes for lustre

2017-08-19 Thread James Simmons
> This series is a revised version of two patches I sent > previously (one of which was sadly broken). > That patch has been broken into multiple parts for easy > review. The other is included unchanged as the last of > this series. > > I was drawn to look at this code due to the tests on > DCAC

Re: [PATCH v2 01/14] staging: lustre: llite: Remove filtering of seclabel xattr

2017-08-19 Thread James Simmons
> On Mon, Aug 14, 2017 at 12:20:51PM -0400, James Simmons wrote: > > From: Robin Humble > > > > The security.capability xattr is used to implement File > > Capabilities in recent Linux versions. Capabilities are a > > fine grained approach to granting executables elevated > > privileges. eg. /bi

Re: [PATCH] staging: lustre: fix structure size for ARM OABI

2017-08-19 Thread James Simmons
> On Aug 17, 2017, at 10:26, Greg KH wrote: > > > > On Wed, Aug 16, 2017 at 05:44:15PM +0300, Cihangir Akturk wrote: > >> When building the kernel for the ARM architecture without setting > >> CONFIG_AEABI, size of struct lov_user_md_v3 and struct lov_mds_md_v3 > >> differs, due to different ali

[PATCH RFC] staging: lustre: libcfs: tracepoint implementation

2017-08-19 Thread James Simmons
The other eye sore for lustre after the UAPI mess is the loony debugging system. This debugging system was written long before trace point existed. Well it shows and todays trace point has surpassed lustre debugging system. Some of the things implemented are: 1) trace events have a specific namin

[PATCH 01/64 v2] staging: lustre: uapi: Move functions out of lustre_idl.h

2017-08-19 Thread James Simmons
From: Ben Evans Migrate functions set/get_mrc_cr_flags, ldlm_res_eq ldlm_extent_overlap, ldlm_extent_contain, ldlm_request_bufsize, and all the PTLRPC dump_* functions out of lustre_idl.h which is a UAPI header to the places in the kernel code they are actually used. Delete unused lmv_mds_md_stri

[PATCH 00/64 v2] staging: lustre: uapi: normalize the lustre headers

2017-08-19 Thread James Simmons
The headers for lustre/LNet for a long time lacked a clean separation in its internal headers which resulted in kernel specific data structures being exposed in user land code. This work unravels this mess and creates a clear separation between lustre kernel space and lustre user land. With this wo

[PATCH 04/64 v2] staging: lustre: uapi: update URL doc link in lustre_fid.h

2017-08-19 Thread James Simmons
From: Ben Evans The wiki has been revived so update the URL about the FID design in lustre_fid.h. Signed-off-by: Ben Evans Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/22712 Reviewed-on: https://review.whamcloud

[PATCH 03/64 v2] staging: lustre: uapi: return error code for ostid_set_id

2017-08-19 Thread James Simmons
From: Ben Evans Currently the function ostid_set_id() just logs an error and just keeps going. This function is also used by user land tools so having special lustre kernel debugging code is not desired. So instead just return an error code and have the calling kernel code print the error instead

[PATCH 07/64 v2] staging: lustre: uapi: remove userland version of obd_ioctl_*()

2017-08-19 Thread James Simmons
The header lustre_ioctl.h has both kernel and user space versions of obd_ioctl_*() functions. Lets remove the user land version which have been integrated into the lustre tools. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamc

[PATCH 09/64 v2] staging: lustre: uapi: remove obd_ioctl_popdata() wrapper

2017-08-19 Thread James Simmons
Replace obd_ioctl_popdata() with direct copy_to_user() call. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James Si

[PATCH 06/64 v2] staging: lustre: uapi: remove unused function in lustre_disk.h

2017-08-19 Thread James Simmons
Delete code that is used by only the server or just in user land. Now this file is a normal kernel header. The UAPI version of this header is only needed for server side so no need to create a new header in uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/bro

[PATCH 08/64 v2] staging: lustre: uapi: remove obd_ioctl_freedata() wrapper

2017-08-19 Thread James Simmons
Replace obd_ioctl_freedata() with direct kvfree() call. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James Simmons

[PATCH 10/64 v2] staging: lustre: uapi: move obd_ioctl_getdata() declaration

2017-08-19 Thread James Simmons
Move obd_ioctl_getdata() from lustre_ioctl.h to obd_class.h since this function is only used by kernel space. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans

[PATCH 11/64 v2] staging: lustre: uapi: move obd_ioctl_is_invalid() to linux-module.c

2017-08-19 Thread James Simmons
The inline function obd_ioctl_is_invalid() is no longer needed by userland and also the function was pretty bug for a inline function. Since this is the case we can move this kernel only code to the linux-module.c which is the only place it is used. Signed-off-by: James Simmons Intel-bug-id: http

[PATCH 05/64 v2] staging: lustre: uapi: move lu_fid, ost_id funcs out of lustre_idl.h

2017-08-19 Thread James Simmons
From: Ben Evans Move lu_fid functions into lustre/lustre_fid.h Move ost_id functions into lustre/lustre_ostid.h Fix indenting, include new headers as needed. Several inline functions in the header lustre_ostid.h are using debug macros instead of returning proper errors. Remove the debug macros a

[PATCH 14/64 v2] staging: lustre: uapi: cleanup headers for lustre_ioctl.h

2017-08-19 Thread James Simmons
With the cleanups we no longer need to drag in tons of user land headers. Lets simplify the include headers. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans R

[PATCH 15/64 v2] staging: lustre: uapi: label lustre_ioctl.h as a UAPI header

2017-08-19 Thread James Simmons
Change LUSTRE_IOCTL_H_ to _UAPI_LUSTRE_IOCTL_H_ now that is a proper UAPI header Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Sig

[PATCH 12/64 v2] staging: lustre: uapi: move lustre_ioctl.h to uapi directory

2017-08-19 Thread James Simmons
Move the header lustre_ioctl.h to proper uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James Simmon

[PATCH 17/64 v2] staging: lustre: uapi: remove included headers out of lustre_param.h

2017-08-19 Thread James Simmons
All the included headers in lustre_param.h are lustre kernel internal headers and they are not even needed. Just remove them. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by:

[PATCH 16/64 v2] staging: lustre: uapi: move kernel only prototypes out of lustre_param.h

2017-08-19 Thread James Simmons
Move all the kernel specific function prototypes from lustre_param.h into obd_config.h which is a kernel only header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L.

[PATCH 19/64 v2] staging: lustre: uapi: label lustre_param.h as an uapi header

2017-08-19 Thread James Simmons
Change LUSTRE_PARAM_H_ to _UAPI_LUSTRE_PARAM_H_ now that is a proper UAPI header Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Si

[PATCH 13/64 v2] staging: lustre: uapi: use __ALIGN_KERNEL for lustre_ioctl.h

2017-08-19 Thread James Simmons
Replace cfs_size_round() standard __ALIGN_KERNEL macro. This removes the dependency of libcfs.h which is a kernel only header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24568 Reviewed-by: Andreas Dilger Reviewe

[PATCH 23/64 v2] staging: lustre: uapi: move lustre_cfg_string() to obd_config.c

2017-08-19 Thread James Simmons
To perserve the truncate warning move lustre_cfg_string() to obd_config.c. A identical function was created for userland. This function was a bit big for a inline function. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.

[PATCH 20/64 v2] staging: lustre: uapi: style cleanups for lustre_param.h

2017-08-19 Thread James Simmons
Remove the white space in the lustre_param.h header and align the code so its easier to read. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L. Hammond Reviewed-by: Ol

[PATCH 27/64 v2] staging: lustre: uapi: change variable type to match

2017-08-19 Thread James Simmons
Change i from int to __u32 to match lcfg_bufcount field. Also this matches what the other functions also do. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans R

[PATCH 22/64 v2] staging: lustre: uapi: don't memory allocate in UAPI header

2017-08-19 Thread James Simmons
The inline function lustre_cfg_new() calls kzalloc() but this is a UAPI header. Remove kzalloc() and rename the function to lustre_cfg_init(). The lustre kernel code that was calling lustre_cfg_new() can doing the memory allocation and pass the new buffer to lustre_cfg_init() to fill in. Signed-of

[PATCH 24/64 v2] staging: lustre: obdclass: no need to check for kfree

2017-08-19 Thread James Simmons
In class_config_llog_handler() a flag, inst, was used to determine if it was safe to call kfree. Its not needed so remove the flag. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Re

[PATCH 25/64 v2] staging: lustre: uapi: move lustre_cfg.h to uapi directory

2017-08-19 Thread James Simmons
Move lustre_cfg.h to its proper place. Adjust additonal headers included in lustre_cfg.h. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Dr

[PATCH 21/64 v2] staging: lustre: uapi: remove lustre_cfg_free wrapper

2017-08-19 Thread James Simmons
Replace all lustre_cfg_free() calls with direct kfree() call. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by: James S

[PATCH 28/64 v2] staging: lustre: uapi: check if argument for lustre_cfg_buf() is NULL

2017-08-19 Thread James Simmons
Check if lcfg passed in is NULL and if it is just return NULL. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry Eremin Reviewed-by: Jinshan Xiong Reviewed-by: Fan Yong Reviewed-by: Oleg Dro

[PATCH 29/64 v2] staging: lustre: uapi: style cleanup of lustre_cfg.h

2017-08-19 Thread James Simmons
Some style and white space cleanups to make lustre_cfg.h easy to read. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Signed-off-by

[PATCH 26/64 v2] staging: lustre: uapi: remove need for libcfs.h from lustre_cfg.h

2017-08-19 Thread James Simmons
Several libcfs.h macros are present in lustre_cfg.h, but libcfs.h is not available so lets replace those macros with real code. The header libcfs.h also provides errno.h so with libcfs.h gone include errno.h directly. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/L

[PATCH 32/64 v2] staging: lustre: libcfs: remove LOGL and LOGU macros

2017-08-19 Thread James Simmons
The macro LOGU is not used anymore and LOGL is used in one place. No reason to keep LOGL around anymore. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry Eremin Reviewed-by: Jinshan Xiong Re

[PATCH 33/64 v2] staging: lustre: libcfs: create libcfs_debug.h UAPI header

2017-08-19 Thread James Simmons
Break out the parts from libcfs_debug.h that is used by both user land and kernel space into a new UAPI header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf Weber

[PATCH 31/64 v2] staging: lustre: libcfs: remove htonl hack in libcfs.h

2017-08-19 Thread James Simmons
This is really old hack for earlier gcc version that had a hard time compiling byteorder.h. Lets remove it. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/22138 Reviewed-by: Dmitry Eremin Reviewed-by: Jinshan Xiong

[PATCH 30/64 v2] staging: lustre: uapi: label lustre_cfg.h as an uapi header

2017-08-19 Thread James Simmons
Change LUSTRE_CFG_H to _UAPI_LUSTRE_CFG_H_ now that it is a proper UAPI header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/26966 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin Sign

[PATCH 34/64 v2] staging: lustre: socklnd: create socklnd.h UAPI header

2017-08-19 Thread James Simmons
Break out the parts from libcfs_debug.h that is used by both user land and kernel space into a new UAPI header. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf Weber

[PATCH 36/64 v2] staging: lustre: lnet: migrate headers to lnet uapi directory

2017-08-19 Thread James Simmons
Migrate the headers used by user land and kernel space to the libcfs/lnet uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf Weber Reviewed-by: Oleg Dr

[PATCH 40/64 v2] staging: lustre: uapi: remove libcfs.h from lustre_id.h/lustre_user.h

2017-08-19 Thread James Simmons
These are the last UAPI headers that contain libcfs.h which is internal kernel header. Since it is not available to user land remove libcfs.h and add the need headers that libcfs.h provided. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https:/

[PATCH 35/64 v2] staging: lustre: lnet: delete lnet.h

2017-08-19 Thread James Simmons
The header lnet.h is just a bunch of headers included in a header. Just delete it and include the appropriate headers where needed. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Rev

[PATCH 39/64 v2] staging: lustre: lnet: remove BIT macro from lnetctl.h

2017-08-19 Thread James Simmons
Now that lnetctl.h is a UAPI header the BIT macro has to be removed. Signed-off-by: James Simmons --- drivers/staging/lustre/include/uapi/linux/lnet/lnetctl.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/include/uapi/linux/lnet/lnetctl.h b/d

[PATCH 37/64 v2] staging: lustre: libcfs: sort headers in libcfs.h

2017-08-19 Thread James Simmons
Move all the included headers in libcfs.h to the top of the file. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: https://review.whamcloud.com/28089 Reviewed-by: Dmitry Eremin Reviewed-by: Olaf Weber Reviewed-by: Oleg Drokin Signed-off-by: Jam

[PATCH 44/64 v2] staging: lustre: uapi: remove BIT macro from UAPI headers

2017-08-19 Thread James Simmons
The BIT macro is not available for UAPI headers so remove it from the lustre UAPI headers. Signed-off-by: James Simmons --- .../lustre/include/uapi/linux/lustre/lustre_idl.h | 38 +++--- .../lustre/include/uapi/linux/lustre/lustre_user.h | 12 +++ 2 files changed, 25 inserti

[PATCH 46/64 v2] staging: lustre: fld: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the fld source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/fld/Makefile | 3 +++ drivers/staging/lustre/lustre/fld/fld_cache.c| 16 drivers/staging/lustre/lustre/fld/fld_internal.h | 8 drivers/stag

[PATCH 43/64 v2] staging: lustre: uapi: use proper byteorder functions in lustre_idl.h

2017-08-19 Thread James Simmons
In order for lustre_idl.h to be usable for both user land and kernel space it has to use the proper byteorder functions. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/16916 Reviewed-by: Frank Zago Reviewed-by: Dmitr

[PATCH 45/64 v2] staging: lustre: fid: add include path to Makefile

2017-08-19 Thread James Simmons
Start to rationalize include paths in the fid source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/fid/Makefile | 3 +++ drivers/staging/lustre/lustre/fid/fid_internal.h | 4 ++-- drivers/staging/lustre/lustre/fid/fid_lib.c | 4 ++-- drivers/staging/lus

[PATCH 42/64 v2] staging: lustre: uapi: remove CONFIG_LUSTRE_OBD_MAX_IOCTL

2017-08-19 Thread James Simmons
Now that lustre_ioctl.h is a UAPI header the kernel configuration option CONFIG_LUSTRE_OBD_MAX_IOCTL needs to be remove. The user land utilites will no longer be able to see this option and actually they never used this option before. Since this is the case setting the kernel configuration to somet

[PATCH 48/64 v2] staging: lustre: llite: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the llite source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/llite/Makefile | 3 ++ drivers/staging/lustre/lustre/llite/dcache.c | 6 ++-- drivers/staging/lustre/lustre/llite/dir.c | 16 +- drivers/staging

[PATCH 47/64 v2] staging: lustre: ptlrpc: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the ptlrpc/ldlm source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/ldlm/interval_tree.c | 6 +++--- drivers/staging/lustre/lustre/ldlm/l_lock.c | 6 +++--- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 12 ++---

[PATCH 52/64 v2] staging: lustre: mgc: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the mgc source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/mgc/Makefile | 3 +++ drivers/staging/lustre/lustre/mgc/lproc_mgc.c| 4 ++-- drivers/staging/lustre/lustre/mgc/mgc_internal.h | 10 +- drivers/staging/lustre

[PATCH 41/64 v2] staging: lustre: uapi: migrate remaining uapi headers to uapi directory

2017-08-19 Thread James Simmons
Move all the remaining lustre headers shared between user land and kernel space to the uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/25246 Reviewed-by: Quentin Bouget Reviewed-by: Ben Evans Reviewe

[PATCH 49/64 v2] staging: lustre: lmv: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the lmv source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/lmv/Makefile | 3 +++ drivers/staging/lustre/lustre/lmv/lmv_fld.c | 14 +++--- drivers/staging/lustre/lustre/lmv/lmv_intent.c | 16 driver

[PATCH 53/64 v2] staging: lustre: obdclass: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the obdclass source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/obdclass/Makefile | 3 +++ drivers/staging/lustre/lustre/obdclass/cl_io.c | 8 drivers/staging/lustre/lustre/obdclass/cl_lock.c | 8 dri

[PATCH 54/64 v2] staging: lustre: obdecho: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the obdecho source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/obdecho/Makefile | 3 +++ .../staging/lustre/lustre/obdecho/echo_client.c| 24 +++--- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git

[PATCH 50/64 v2] staging: lustre: lov: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the lov source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/lov/Makefile | 3 ++ .../staging/lustre/lustre/lov/lov_cl_internal.h| 6 ++-- drivers/staging/lustre/lustre/lov/lov_dev.c| 2 +- drivers/staging/lustre/lu

[PATCH 56/64 v2] staging: lustre: lustre: cleanup paths for lustre internal headers

2017-08-19 Thread James Simmons
Rationalize include paths for the lustre internal headers Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/include/cl_object.h | 4 +-- drivers/staging/lustre/lustre/include/llog_swab.h | 2 +- .../staging/lustre/lustre/include/lprocfs_status.h | 6 ++--- drivers/staging/lustr

[PATCH 57/64 v2] staging: lustre: lustre: cleanup paths for lustre UAPI headers

2017-08-19 Thread James Simmons
Rationalize include paths for the lustre uapi headers Signed-off-by: James Simmons --- drivers/staging/lustre/include/uapi/linux/lustre/lustre_cfg.h | 2 +- drivers/staging/lustre/include/uapi/linux/lustre/lustre_fid.h | 2 +- drivers/staging/lustre/include/uapi/linux/lustre/lustre_idl.h |

[PATCH 61/64 v2] staging: lustre: ksocklnd: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the ksocklnd source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/klnds/socklnd/Makefile | 3 +++ drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/stagin

[PATCH 59/64 v2] staging: lustre: lnet: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the lnet core source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/Makefile | 3 +++ drivers/staging/lustre/lnet/lnet/acceptor.c| 2 +- drivers/staging/lustre/lnet/lnet/api-ni.c | 4 ++-- drivers/staging/lustre/lnet/lnet/

[PATCH 60/64 v2] staging: lustre: ko2iblnd: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the ko2iblnd source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/klnds/o2iblnd/Makefile | 3 +++ drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/

[PATCH 58/64 v2] staging: lustre: lnet: selftest: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the lnet selftest source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/selftest/Makefile | 3 +++ drivers/staging/lustre/lnet/selftest/conctl.c | 6 +++--- drivers/staging/lustre/lnet/selftest/conrpc.c | 4 ++-- drivers/staging/lustre

[PATCH 55/64 v2] staging: lustre: osc: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the osc source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/osc/Makefile | 3 ++ drivers/staging/lustre/lustre/osc/lproc_osc.c | 6 ++-- .../staging/lustre/lustre/osc/osc_cl_internal.h| 6 ++-- drivers/staging/lustre/

[PATCH 51/64 v2] staging: lustre: mdc: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the mdc source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/mdc/Makefile | 3 +++ drivers/staging/lustre/lustre/mdc/lproc_mdc.c| 4 ++-- drivers/staging/lustre/lustre/mdc/mdc_internal.h | 2 +- drivers/staging/lustre/lustre/

[PATCH 64/64 v2] staging: lustre: lnet: cleanup paths for all LNet headers

2017-08-19 Thread James Simmons
Rationalize include paths in all the lnet header files. Signed-off-by: James Simmons --- drivers/staging/lustre/include/linux/lnet/api.h | 2 +- drivers/staging/lustre/include/linux/lnet/lib-lnet.h | 14 +++--- drivers/staging/lustre/include/linux/lnet/lib-types.h |

[PATCH 62/64 v2] staging: lustre: libcfs: add include path to Makefile

2017-08-19 Thread James Simmons
Rationalize include paths in the libcfs source code files. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/libcfs/Makefile| 3 +++ drivers/staging/lustre/lnet/libcfs/debug.c | 2 +- drivers/staging/lustre/lnet/libcfs/fail.c | 2 +- dr

[PATCH 63/64 v2] staging: lustre: libcfs: cleanup paths for libcfs headers

2017-08-19 Thread James Simmons
Rationalize include paths in all the libcfs header files. Signed-off-by: James Simmons --- .../staging/lustre/include/linux/libcfs/libcfs.h | 24 +++--- .../lustre/include/linux/libcfs/libcfs_debug.h | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/

[PATCH 02/64 v2] staging: lustre: uapi: remove unused functions for lustre_fid.h

2017-08-19 Thread James Simmons
The inline function fid_is_namespace_visible and ost_fid_from_resid are only used for server code so we can remove it. Signed-off-by: James Simmons --- drivers/staging/lustre/lustre/include/lustre_fid.h | 29 -- 1 file changed, 29 deletions(-) diff --git a/drivers/staging/lu

[PATCH 18/64 v2] staging: lustre: uapi: move lustre_param.h to uapi directory

2017-08-19 Thread James Simmons
Move the header lustre_param.h to proper uapi directory. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401 Reviewed-on: https://review.whamcloud.com/24325 Reviewed-by: Ben Evans Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-off-by: James Simmo

[PATCH 38/64 v2] staging: lustre: lnet: remove userland function prototype in lnetctl.h

2017-08-19 Thread James Simmons
Several function prototypes of the form jt_ptl_* are only needed by userland so they can be removed. Signed-off-by: James Simmons Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/17643 Reviewed-by: Bob Glossman Reviewed-by: John L. Hammond Review

  1   2   3   4   >