Fernando Apesteguia
c7591a266a
staging: dgnc: update TODO file
...
Remove reference to checkpatch warnings since its output is now clean.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:34:06 +01:00
Scott Matheina
298afff08c
staging: fixed spelling error in TODO file for dgnc driver
...
fixed a missing letter in the TODO file 'unneeded'
Signed-off-by: Scott Matheina <scott@matheina.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:32:54 +01:00
Cheah Kok Cheong
2e4b5cd641
Staging: comedi: proc: Warn if unable to create proc entry
...
The proc entry is not essential for the comedi system as
evident by the support for !CONFIG_PROC_FS. So for failure
to create, just warn and continue loading.
Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:30:21 +01:00
Cheah Kok Cheong
6bd68e29b6
Staging: comedi: proc: Add module owner
...
Since this is a loadable kernel module, add module ownership
to follow LKM semantics.
Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:30:21 +01:00
Cheah Kok Cheong
ec0bff06bb
Staging: comedi: proc: Add __init prefix
...
Add __init prefix so that symbol will be discarded after
module loading.
Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:30:21 +01:00
Cheah Kok Cheong
5f52f319cd
Staging: comedi: proc: Change file permission to read only
...
As there's no write operation, change to read only.
Was inadvertantly switched to 0644 in commit 1f817b86d5
("comedi: Don't use create_proc_read_entry()").
Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:30:21 +01:00
Cheah Kok Cheong
bf279ece37
Staging: comedi: comedi_fops: Avoid orphaned proc entry
...
Move comedi_proc_init to the end to avoid orphaned proc entry
if module loading failed.
Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:30:21 +01:00
Cheah Kok Cheong
3358a0ca21
Staging: comedi: comedidev.h: Drop old style zero-length array
...
According to Documentation/Changes, the minimum gcc version required
to compile the kernel is 3.2 (this is probably outdated too).
Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:29:06 +01:00
Saber Rezvani
3c4a2d9e25
staging: comedi: ni_670x: using the BIT(x) macro
...
Fix the checkpatch.pl issue:
CHECK: Prefer using the BIT macro
replacing bit shifting on 1 with the BIT(x) macro.
Signed-off-by: Saber Rezvani <irsaber@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:29:06 +01:00
Saber Rezvani
8f2ee91256
staging: comedi: ni_at_ao: using the BIT(x) macro
...
Fix the checkpatch.pl issue:
CHECK: Prefer using the BIT macro
replacing bit shifting on 1 with the BIT(x) macro.
Signed-off-by: Saber Rezvani <irsaber@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:29:06 +01:00
Saber Rezvani
db30e33f4a
staging: comedi: cb_pcidas64: use preferred kernel type u32
...
Fix the checkpatch.pl issue:
CHECK: Prefer kernel type 'u32' over 'uint32_t'
Signed-off-by: Saber Rezvani <irsaber@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:29:06 +01:00
Saber Rezvani
9e23afed35
staging: comedi: cb_pcidas64: use preferred kernel type u16
...
Fix the checkpatch.pl issue:
CHECK: Prefer kernel type 'u16' over 'uint16_t'
Signed-off-by: Saber Rezvani <irsaber@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:29:06 +01:00
Saber Rezvani
7afd6d2179
staging: comedi: cb_pcidas64: use preferred kernel type u8
...
Fix the checkpatch.pl issue:
CHECK: Prefer kernel type 'u8' over 'uint8_t'
Signed-off-by: Saber Rezvani <irsaber@gmail.com >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:29:06 +01:00
Ian Abbott
9fe3b628e6
staging: comedi: comedidev.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
1016d5a6c2
staging: comedi: comedi_usb.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
514871ef43
staging: comedi: comedi_pcmcia.[ch]: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
751922da90
staging: comedi: comedi_internal.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
7885bc8389
staging: comedi: comedi_compat32.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
bef966264b
staging: comedi: ni_tio_internal.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
d83889a87b
staging: comedi: ni_tio.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
13938181e2
staging: comedi: ni_labpc.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
22d3c2ca82
staging: comedi: mite.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
81735efcc9
staging: comedi: comedi_isadma.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
00b298544c
staging: comedi: comedi_8254.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:55 +01:00
Ian Abbott
cf9781131b
staging: comedi: addi_watchdog.h: add identifiers to function parameters
...
Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:54 +01:00
Piotr Gregor
e9f363c014
drivers: staging: comedi: fix function prototypes
...
Add names of parameters to function prototypes in comedi PCI.
Checkpatch reports now no errors.
Signed-off-by: Piotr Gregor <piotrgregor@rsyncme.org >
Reviewed-by: Ian Abbott <abbotti@mev.co.uk >
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:27:12 +01:00
Matthew Smith
5a30502c86
staging: nvec: fix indent issue in nvec_power.c
...
Fixes "WARNING: Statements should start on a tabstop" from checkpatch.pl
Signed-off-by: Matthew Smith <matthew11235@outlook.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:22:30 +01:00
Jaewon Kim
aacd178373
staging: android: ion: return -ENOMEM in ion_cma_heap allocation failure
...
Initial Commit 349c9e1385 ("gpu: ion: add CMA heap") returns -1 in allocation
failure. The returned value is passed up to userspace through ioctl. So user can
misunderstand error reason as -EPERM(1) rather than -ENOMEM(12).
This patch simply changed this to return -ENOMEM.
Signed-off-by: Jaewon Kim <jaewon31.kim@samsung.com >
Acked-by: Laura Abbott <labbott@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:22:30 +01:00
David Kershner
e795491822
staging: unisys: visorbus: my_device_destroy add error handling
...
Add the proper error handling to my_device_destroy so it can be send
back up the stack for further error reporting.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:19:06 +01:00
David Kershner
40fc79f9b4
staging: unisys: visorbus: my_device_changestate add error handling
...
The function my_device_changestate was not returning errors up the stack.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:19:06 +01:00
David Kershner
300ed61251
staging: unisys: visorbus: Add err handling for function save_crash_message
...
The function save_crash_message returns an error, don't ignore it,
respond appropriately and send it up.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:19:06 +01:00
David Kershner
ad2a7d65b1
staging: unisys: visorbus: my_device_create add error handling
...
Add proper error handling to the function my_device_create and
propagate the error message up the stack.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:19:06 +01:00
Bryan Thompson
6008a071d2
staging: unisys: visorhba: Remove unused MAX_BUF define
...
Remove the MAX_BUF define and associated comments.
Signed-off-by: Bryan Thompson <bryan.thompson@unisys.com >
Reviewed-by: Tim Sell <Timothy.Sell@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:17:02 +01:00
David Binder
5d501ef440
staging: unisys: visorbus: Convert references to /proc to /sys
...
Removes references to visorchipset in the /proc filesystem, and replaces
them with references to the /sys filesystem. Also removes reference to the
visorchipset driver, and replaces it with a reference to plain
visorchipset (since it is no longer a standalone driver).
Signed-off-by: David Binder <david.binder@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:17:02 +01:00
Erik Arfvidson
22da2c1231
staging: unisys: visorbus: controlvmchannel.h remove unused pound defines
...
This patch removes unused pound defines in controlvmchannel.h.
Signed-off-by: Erik Arfvidson <erik.arfvidson@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:17:02 +01:00
David Binder
3e4273db10
staging: unisys: visorbus: Remove unneeded checks for valid variable addr
...
The 'retry' variable created in handle_command() is statically allocated,
and its address is never set to NULL. Therefore conditionals to verify
the validity of the retry variable's address are unnecessary.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: David Binder <david.binder@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:17:02 +01:00
David Binder
36309d3b10
staging: unisys: visorbus: Use switch statement instead of conditionals
...
Control flow is now directed using a switch statement, triggered by the
enum crash_obj_type function parameter, instead of a set of conditional
statements.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: David Binder <david.binder@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:17:02 +01:00
Sameer Wadgaonkar
98f9ed9ecb
staging: unisys: visorbus: shorten error message defines
...
This patch shortens a few error message defines by removing ERROR
from the define.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com >
Signed-off-by: David Kershner <david.kershner@unisys.com >
Reviewed-by: David Binder <david.binder@unisys.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:17:02 +01:00
Geliang Tang
e3e0293ca9
staging: lustre: osc: use rb_entry_safe
...
Use rb_entry_safe() instead of container_of() to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:14:23 +01:00
Tabrez khan
69eb1a0dbf
staging : lustre : Remove braces from single-line body.
...
Remove unnecessary braces {} for single while statement.
This warning is found using checkpatch.pl.
Signed-off-by: Tabrez khan <khan.tabrez21@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:14:23 +01:00
Ben Evans
364139d3b0
staging: lustre: obdclass: style cleanup for obdo related functions
...
Change the style of lustre_get_wire_obdo and
lustre_set_wire_obdo to conform to linux kernel
standard.
Signed-off-by: Ben Evans <bevans@cray.com >
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401
Reviewed-on: http://review.whamcloud.com/16917
Reviewed-on: http://review.whamcloud.com/19266
Reviewed-by: James Simmons <uja.ornl@yahoo.com >
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com >
Reviewed-by: John L. Hammond <john.hammond@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:06:49 +01:00
Ben Evans
2e69d1ceb7
staging: lustre: obdclass: Create a header for obdo related functions
...
Remove all obdo related functions from lustre_idl.h
Create lustre_odbo.h. Include where appropriate.
Make the functions lustre_get_wire_obdo and
lustre_set_wire_obdo to not be inlined functions.
Signed-off-by: Ben Evans <bevans@cray.com >
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401
Reviewed-on: http://review.whamcloud.com/16917
Reviewed-on: http://review.whamcloud.com/19266
Reviewed-by: James Simmons <uja.ornl@yahoo.com >
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com >
Reviewed-by: John L. Hammond <john.hammond@intel.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:06:49 +01:00
Quentin Lambert
4091af4a09
staging: lustre: Fix variable type declaration after refactoring
...
A recent clean-up declared och_flags as a int rather than fmode_t. This
lead to the following sparse warning:
drivers/staging/lustre/lustre/llite/file.c:106:30: warning: restricted
fmode_t degrades to integer
This patch fixes this issue.
Fixes: 0a12009912 ("staging: lustre: cleanup lustre_lib.h")
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com >
Acked-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:06:49 +01:00
James Simmons
efd6271be1
staging: lustre: lnet: make brw_inject_one_error() static
...
It's not used anywhere outside of brw_test.c file.
Highlighted by sparse.
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:04:50 +01:00
Jinshan Xiong
4ddcd16f54
staging: lustre: osc: handle osc eviction correctly
...
Cleanup everything if an OSC is being evicted.
Group lock is not well supported yet.
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com >
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6271
Reviewed-on: http://review.whamcloud.com/14989
Reviewed-by: John L. Hammond <john.hammond@intel.com >
Reviewed-by: Bobi Jam <bobijam@hotmail.com >
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com >
Signed-off-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:04:50 +01:00
Oleg Drokin
1a43fbc399
staging/lustre/ptlrpc: Move nrs_conf_fifo extern to a header
...
This avoids having an extern definition in a C file which is bad,
and also silences sparse complaint as well.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Reviewed-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:01:20 +01:00
Oleg Drokin
a6b73b7f8e
staging/lustre: Move lov_read_and_clear_async_rc declaration
...
Move it to obd.h, so that it's included from both the users and
the actual definition, making sure they never get out of sync.
This also silences a sparse warning.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Reviewed-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:01:20 +01:00
Oleg Drokin
30d758ce8f
staging/lustre: Declare lu_context/session_tags_default
...
Make the declaration in a header, not as an extern in a C file,
that is frowned upon.
This also makes sparse a little bit more happy.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Reviewed-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:01:20 +01:00
Oleg Drokin
f62427b859
staging/lustre/osc: extern declare osc_caches in a header
...
This avoids frowned upon extern in the C file, and also
shuts down a sparse warning of
drivers/staging/lustre/lustre/osc/osc_dev.c:55:22: warning: symbol 'osc_caches' was not declared. Should it be static?
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Reviewed-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:01:20 +01:00
Oleg Drokin
d445048b4a
staging/lustre/lov: make lov_lsm_alloc() static
...
It's not used anywhere outside of this file.
Highlighted by sparse.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru >
Reviewed-by: James Simmons <jsimmons@infradead.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-01-03 15:01:20 +01:00