[GIT PULL] Staging driver fixes for 4.1-rc4

2015-05-16 Thread Greg KH
The following changes since commit 5ebe6afaf0057ac3eaeb98defd5456894b446d22: Linux 4.1-rc2 (2015-05-03 19:22:23 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.1-rc4 for you to fetch changes up to ec94efcdadab6

[PATCH] staging: sm750fb: fix typo in fb_videomode Array

2015-05-16 Thread Michel von Czettritz
It appears that 'FB_SYNC_HOR_HIGH_ACT' should be assined to 'sync' and 'FB_VMODE_NONINTERLACED' is a flag for 'vmode'. In line 96 these flags are ORed and assigned to 'sync'. Since 'FB_VMODE_NONINTERLACED' is zero, 'sync' will stay the same, and due to C99 'vmode' is initialized to zero too. There

Build Warnings for the file, config-osm.c and i2o_config.c

2015-05-16 Thread nick
Greetings All, I am getting the below build warnings for the file, config-osm.c and i2o_config whenever I do a complete clean allmodconfig build on my system. In file included from drivers/staging/i2o/config-osm.c:39:0: drivers/staging/i2o/i2o_config.c: In function ‘i2o_cfg_passthru’: drivers/st

Re: [PATCH 32/44] staging: unisys: Move channel creation up the stack

2015-05-16 Thread Dan Carpenter
On Wed, May 13, 2015 at 01:22:26PM -0400, Benjamin Romer wrote: > --- a/drivers/staging/unisys/visorbus/visorchipset.c > +++ b/drivers/staging/unisys/visorbus/visorchipset.c > @@ -1197,6 +1197,7 @@ bus_create(struct controlvm_message *inmsg) > u32 bus_no = cmd->create_bus.bus_no; > int

Re: [PATCH 40/44] staging: unisys: Convert device creation to use visor_device

2015-05-16 Thread Dan Carpenter
On Wed, May 13, 2015 at 01:22:34PM -0400, Benjamin Romer wrote: > @@ -1022,29 +997,21 @@ create_visor_device(struct visor_device *bdev, > goto away; > } > > - /* note: device_register is simply device_initialize + device_add */ > - registered1 = true; > - > rc =

Re: [PATCH 34/44] staging: unisys: Prepare vbus_hdr_info to be public

2015-05-16 Thread Dan Carpenter
On Wed, May 13, 2015 at 01:22:28PM -0400, Benjamin Romer wrote: > + hdr_info = kzalloc(sizeof(*hdr_info), GFP_KERNEL); > + if (!hdr_info) { > + rc = NULL; > + goto away_mem; > + } > + > dev_set_name(&devdata->dev, "visorbus%d", id); > devdata->dev.bus

Re: [PATCH] Fixed coding style issues at ieee80211_crypt_wep.c

2015-05-16 Thread Joe Perches
On Sat, 2015-05-16 at 10:40 +0200, Pedro Marzo Perez wrote: > This patch just fixes some warnings and style errors reported by > checkpatch.pl script > - Braces should not start in a new line > - C99 comments are not allowed (never use //) > - Literal strings should never be parted in

[PATCH 3/4] staging/lustre/ptlrpc: Fix potential NULL pointer dereference

2015-05-16 Thread green
From: Oleg Drokin In lov_unpackmd() there's this strange bit of code where we first try to look inside of lmm striping pattern for it's type, and then we check if the pattern is NULL which cannot be right. Move the check under if (lmm) branch so that it's safe. Found by Coverity version 6.6.1 S

[PATCH 2/4] staging/lustre/ptlrpc: Fix wrong indenting in plain_authorize()

2015-05-16 Thread green
From: Oleg Drokin smatch highlighted a wrongly indented bit of code that almost hides the extra assignment. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/ptlrpc/sec_plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/s

[PATCH 0/4] Few lustre fixes and cleanups.

2015-05-16 Thread green
From: Oleg Drokin This set fixes a couple of style issues, and a couple of bugs. Please consider Oleg Drokin (4): staging/lustre: Only set INTERRUPTIBLE state before calling schedule staging/lustre/ptlrpc: Fix wrong indenting in plain_authorize() staging/lustre/ptlrpc: Fix potential NULL

[PATCH 1/4] staging/lustre: Only set INTERRUPTIBLE state before calling schedule

2015-05-16 Thread green
From: Oleg Drokin In __l_wait_event the condition could be a complicated function that does allocations and other potentialy blocking activities, so it sohuld not be called in a task state other than RUNNABLE Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_lib.h | 1

[PATCH 4/4] staging/lustre/llite: Fix wrong identing in ll_setxattr_common

2015-05-16 Thread green
From: Oleg Drokin smatch has highlighted wrong indenting that results from commit 7fc1f831d83f ("staging/lustre/llite: extended attribute cache") Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/xattr.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --

[PATCH 12/25] taging/lustre/llite: move llite/max_read_ahead_whole_mb to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_read_ahead_whole_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 31 +++ drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files chang

[PATCH 13/25] staging/lustre/llite: move /proc/fs/lustre/llite/checksum_pages to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move checksum_pages file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 28 +++ drivers/staging/lustre/sysfs-fs-lustre| 7 ++ 2 files changed, 21 i

[PATCH 22/25] staging/lustre/libcfs: get rid of /proc/sys/lnet/console_backoff

2015-05-16 Thread green
From: Oleg Drokin module parameter libcfs_console_backoff accessible through /sys/module/libcfs/parameters/libcfs_console_backoff would do the same thing, just add a special "uintpos" parameter type to disallow 0 values too. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/libcfs/d

[PATCH 25/25] staging/lustre: remove alloc_fail_rate sysctl

2015-05-16 Thread green
From: Oleg Drokin It was used to control allocation failure rate, but there is in-kernel way of doing that that's more versatile too. This is going to remove just the sysctl, the underlying variable will be removed once all OBD_ALLOC* macros removal patchseries land. Signed-off-by: Oleg Drokin

[PATCH 21/25] staging/lustre/libcfs: Remove redundant sysctl moduleparams

2015-05-16 Thread green
From: Oleg Drokin /proc/sys/lnet/console_ratelimit, debug_path and panic_on_lbug are module parameters with no special magic accessible via /sys/module/libcfs/parameters/libcfs_console_ratelimit, /sys/module/libcfs/parameters/libcfs_debug_file_path and /sys/module/libcfs/parameters/libcfs_panic_o

[PATCH 20/25] staging/lustre/llite: move /proc/fs/lustre/llite/xattr_cache to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move xattr_cache file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 30 +++ drivers/staging/lustre/sysfs-fs-lustre| 7 ++ 2 files changed, 21 inse

[PATCH 23/25] staging/lustre/libcfs: Remove redundant enums and sysctl moduleparams

2015-05-16 Thread green
From: Dmitry Eremin /proc/sys/lnet/lnet_memused Remove memory tracking for LNet. Remove redundant enums definition. Signed-off-by: Dmitry Eremin --- .../lustre/include/linux/libcfs/libcfs_private.h | 28 +-- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c| 12 --- .../sta

[PATCH 16/25] staging/lustre/llite: move /proc/fs/lustre/llite/statahead_{max, agl} to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move statahead_max and statahead_agl files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 60 +++ drivers/staging/lustre/sysfs-fs-lustre| 16 ++ 2 f

[PATCH 24/25] staging/lustre/libcfs: Remove unneeded lnet watchdog_ratelimit sysctl

2015-05-16 Thread green
From: Dmitry Eremin It is no longer used anywhere. Signed-off-by: Dmitry Eremin --- drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 1 - drivers/staging/lustre/lustre/libcfs/debug.c | 3 --- drivers/staging/lustre/lustre/libcfs/module.c | 12 --

[PATCH 18/25] staging/lustre/llite: move /proc/fs/lustre/llite/*_easize to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_easize and default_easize files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 26 +++ drivers/staging/lustre/sysfs-fs-lustre| 14

[PATCH 15/25] staging/lustre/llite: move /proc/fs/lustre/llite/stats_track* to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move stats_track_pid, stats_track_ppid and stats_track_gid files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 90 +++ drivers/staging/lustre/sysfs-fs-lustre

[PATCH 07/25] staging/lustre/llite: move /proc/fs/lustre/llite/client_type to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move client_type file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 19 +++ drivers/staging/lustre/sysfs-fs-lustre| 8 2 files changed, 15 insert

[PATCH 17/25] staging/lustre/llite: move /proc/fs/lustre/llite/lazystatfs to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move lazystatfs file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 28 +++ drivers/staging/lustre/sysfs-fs-lustre| 8 +++ 2 files changed, 22 inse

[PATCH 14/25] staging/lustre/llite: remove unused ll_max_rw_chunk

2015-05-16 Thread green
From: Oleg Drokin ll_max_rw_chunk seems to be unused ever since we implemented CLIO in 2.0, so remove it and all supporting infrastructure. Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 5 - drivers/staging/lustre/lustre/llite/llite_lib.c| 1 - d

[PATCH 11/25] staging/lustre/llite: move llite/max_read_ahead_per_file_mb to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_read_ahead_per_file_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 33 +++ drivers/staging/lustre/sysfs-fs-lustre| 6 + 2 files ch

[PATCH 08/25] staging/lustre/llite: move /proc/fs/lustre/llite/fstype to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move fstype file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 13 ++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 12 insertions(+), 7 de

[PATCH 02/25] staging/lustre: Move /proc/fs/lustre root level files to sysfs

2015-05-16 Thread green
From: Oleg Drokin except devices, for now. Signed-off-by: Oleg Drokin Signed-off-by: Dmitry Eremin --- .../staging/lustre/lustre/include/lprocfs_status.h | 2 +- .../lustre/lustre/obdclass/linux/linux-module.c| 106 - .../lustre/lustre/obdclass/lprocfs_status.c

[PATCH 09/25] staging/lustre/llite: move /proc/fs/lustre/llite/uuid to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move uuid file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 13 ++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 12 insertions(+), 7 dele

[PATCH 10/25] staging/lustre/llite: move /proc/fs/lustre/llite/max_read_ahead_mb to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move max_read_ahead_mb file from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 33 --- drivers/staging/lustre/sysfs-fs-lustre| 7 + 2 files changed, 25

[PATCH 03/25] staging/lustre/llite: Preparation to move /proc/fs/lustre/llite to sysfs

2015-05-16 Thread green
From: Oleg Drokin Add necessary infrastructure, add support for mountpoint registration in /proc/fs/lustre/llite Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/llite/llite_internal.h | 4 drivers/staging/lustre/lustre/llite/llite_lib.c| 7 -- drivers/staging/lustre/l

[PATCH 19/25] staging/lustre/llite: remove llite/*_cookiesize proc files

2015-05-16 Thread green
From: Oleg Drokin Since Lustre 2.5, cookiesize is unused on the clients since MDS now does final object unlink by itself, so drop these max_cookiesize and default_cookiesize files. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 34 --- 1

[PATCH 06/25] staging/lustre/llite: move /proc/fs/lustre/llite/files* to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move filestotal and filesfree files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 28 +++ drivers/staging/lustre/sysfs-fs-lustre| 12 ++ 2 file

[PATCH 04/25] staging/lustre/llite: move /proc/fs/lustre/llite/blocksize to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move blocksize file from /proc/fs/lustre/llite/*/ to /sys/fs/lustre/llite/*/blocksize Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 14 +++--- drivers/staging/lustre/sysfs-fs-lustre| 6 ++ 2 files changed, 13 inser

[PATCH 05/25] staging/lustre/llite: move /proc/fs/lustre/llite/kbytes* to sysfs

2015-05-16 Thread green
From: Oleg Drokin Move kbytestotal, kbytesavail and kbytesfree files from /proc/fs/lustre/llite/* to /sys/fs/lustre/llite/*/ Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/lproc_llite.c | 42 +++ drivers/staging/lustre/sysfs-fs-lustre| 20 +++

[PATCH 01/25] staging/lustre: Generic helpers for sysfs

2015-05-16 Thread green
From: Oleg Drokin Add generic helpers to allow displaying oof lustre-specific values in /sys/fs/lustre Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lprocfs_status.h | 21 +++ .../lustre/lustre/obdclass/lprocfs_status.c| 24 ++ 2 f

[PATCH 00/25] Start of removal of lustre procfs support

2015-05-16 Thread green
From: Oleg Drokin This is beginning of work in the area. It takes a bit longer than anticipated, so I don't want for you (Greg) to have an impression we disppeared again on this issue. Patches move all sensible parameters from /proc/fs/lustre and /proc/fs/lustre/llite to /sys/fs/lustre. Teh rema