OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agostaging: sm750fb: remove proc_checkMode method from lynxfb_output
Mike Rapoport [Thu, 1 Oct 2015 09:14:03 +0000 (12:14 +0300)]
staging: sm750fb: remove proc_checkMode method from lynxfb_output

The proc_checkMode of lynxfb_output is set to function that always
returns 0. Calling that function and checking for its return value is
meaningless.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: remove unneeded switch statement
Mike Rapoport [Thu, 1 Oct 2015 09:14:02 +0000 (12:14 +0300)]
staging: sm750fb: remove unneeded switch statement

The lynxfb_ops_check_var function has two switch statements, the first
one checks for validity of var->bits_per_pixel and it is is immediatly
followed by another one that sets parameters according to
var->bits_per_pixel value. These switch statements can be merged into
one.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: rtl8188eu: Correct two coding style errors
Iban Rodriguez [Thu, 1 Oct 2015 20:21:40 +0000 (22:21 +0200)]
Staging: rtl8188eu: Correct two coding style errors

Correct two errors reported by checkpatch.pl because space prohibited
before ','.
Also split both lines into multiple lines as they are longer than
80 characters

Signed-off-by: Iban Rodriguez <iban.rodriguez@ono.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: rtl8712: re-use mac_pton()
Andy Shevchenko [Thu, 1 Oct 2015 13:18:07 +0000 (16:18 +0300)]
staging: rtl8712: re-use mac_pton()

...instead of custom approach

Cc: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging:rtl8188eu style fix
Bryan Paul [Wed, 30 Sep 2015 17:05:09 +0000 (11:05 -0600)]
staging:rtl8188eu style fix

Fixed style issue if comparison should place constant on right of test

Signed-off-by: Bryan Paul <bryan.paul@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: rtl8192e: rtl_wx: fix negative noise value
Luis de Bethencourt [Wed, 30 Sep 2015 12:12:11 +0000 (13:12 +0100)]
staging: rtl8192e: rtl_wx: fix negative noise value

wstats->qual.noise is of type uint8, so it shouldn't be assigned a
negative number. Assigning it 0x100 - 100, which is the equivalent
to -100 dBm when IW_QUAL_DBM is set.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Tested-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: rtl8188eu: Add missing include
Larry Finger [Wed, 30 Sep 2015 15:20:47 +0000 (10:20 -0500)]
staging: rtl8188eu: Add missing include

In commit 0a0796eb16f3, there is no include to mon.h, a newly created
header file. This omission leads to the following Sparse warnings:

  CHECK   drivers/staging/rtl8188eu/os_dep/mon.c
drivers/staging/rtl8188eu/os_dep/mon.c:81:6: warning: symbol 'rtl88eu_mon_recv_hook' was not declared. Should it be static?
drivers/staging/rtl8188eu/os_dep/mon.c:113:6: warning: symbol 'rtl88eu_mon_xmit_hook' was not declared. Should it be static?
drivers/staging/rtl8188eu/os_dep/mon.c:167:19: warning: symbol 'rtl88eu_mon_init' was not declared. Should it be static?
drivers/staging/rtl8188eu/os_dep/mon.c:188:6: warning: symbol 'rtl88eu_mon_deinit' was not declared. Should it be static?

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Jakub Sitnicki <jsitnicki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: vt6655: Fixed two lines over 80 characters long
Arjun Krishna Babu [Wed, 30 Sep 2015 12:54:22 +0000 (18:24 +0530)]
staging: vt6655: Fixed two lines over 80 characters long

Two lines of code that were over 80 characters long is fixed
by splitting them across multiple lines.

The lines of code are now easier to comprehend.

Issue found by checkpatch.

Signed-off-by: Arjun Krishna Babu <arjunkrishnababu96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: comedi: comedi_usb.c: improve function documentation
Ian Abbott [Wed, 30 Sep 2015 16:37:13 +0000 (17:37 +0100)]
staging: comedi: comedi_usb.c: improve function documentation

Expand the descriptions of the functions and document the return values.

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>
8 years agostaging: comedi: comedi_pcmcia.c: improve function documentation
Ian Abbott [Wed, 30 Sep 2015 16:10:57 +0000 (17:10 +0100)]
staging: comedi: comedi_pcmcia.c: improve function documentation

Expand the descriptions of the functions and document the return values.

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>
8 years agostaging: comedi: comedi_pci.c: Fix kernel-doc Return tags
Ian Abbott [Wed, 30 Sep 2015 15:43:55 +0000 (16:43 +0100)]
staging: comedi: comedi_pci.c: Fix kernel-doc Return tags

Fix the 'Return' tags in the kernel-doc comments as they currently say
'Returns', which is not recognized by kernel-doc.

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>
8 years agostaging: ion: Fix error handling in ion_buffer_create
Rohit kumar [Wed, 30 Sep 2015 05:37:35 +0000 (11:07 +0530)]
staging: ion: Fix error handling in ion_buffer_create

This patch fixes error handling case when buffer->pages allocation
fails. Also, it removes unreachable code of checking ret variable
although it is not updated.

Signed-off-by: Rohit kumar <rohit.kr@samsung.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Suggested-by: Pintu Kumar <pintu.k@samsung.com>
Reviewed-by: Pintu Kumar <pintu.k@samsung.com>
Reviewed-by: Gioh Kim <gioh.kim@lge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: visorhid: remove unnecessary include of serio.h
Tim Sell [Thu, 1 Oct 2015 16:41:59 +0000 (12:41 -0400)]
staging: unisys: visorhid: remove unnecessary include of serio.h

No need for serio.h to be included.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: visorhid: correctly map keys with extended scancodes
Tim Sell [Thu, 1 Oct 2015 16:41:58 +0000 (12:41 -0400)]
staging: unisys: visorhid: correctly map keys with extended scancodes

The most-noticed key that wasn't being mapped correctly was Right-Alt,
which is the AltGr key on many non-US keyboards, used to select many
extended characters.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: correctly handle return value from queue_delayed_work()
Benjamin Romer [Thu, 1 Oct 2015 15:52:30 +0000 (11:52 -0400)]
staging: unisys: correctly handle return value from queue_delayed_work()

Properly handle the return value from queue_delayed_work() - it's a
bool, not an int, so using a less than comparison isn't appropriate.

This mistake was found by David Binderman <dcb314@hotmail.com>.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: get rid of list of devices
David Kershner [Thu, 1 Oct 2015 15:52:29 +0000 (11:52 -0400)]
staging: unisys: get rid of list of devices

We don't need the list of devices, we can loop through the one
provided by the network api and filter on ours.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: get rid of devnum pool and dev num
David Kershner [Thu, 1 Oct 2015 15:52:28 +0000 (11:52 -0400)]
staging: unisys: get rid of devnum pool and dev num

devnum pool and devnum are no longer needed.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: unisys: remove devdata->name use netdev->name
David Kershner [Thu, 1 Oct 2015 15:52:27 +0000 (11:52 -0400)]
staging: unisys: remove devdata->name use netdev->name

The net device already has a name, so use that instead.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: xgifb: vb_util: Fixed sparse warning of bit truncation due to cast
Shivani Bhardwaj [Thu, 1 Oct 2015 21:27:03 +0000 (02:57 +0530)]
Staging: xgifb: vb_util: Fixed sparse warning of bit truncation due to cast

Fixed the warning generated by sparse that 'cast truncates bits from
constant value' by typecasting unsigned values to u8 as their logical
operation is being performed with and stored in a u8 type variable.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: iio: Fix comment style warning
Cristina Moraru [Thu, 1 Oct 2015 19:10:52 +0000 (22:10 +0300)]
staging: iio: Fix comment style warning

Move final */ to the next line, in accordance with the suggestion of
checkpatch

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: dgnc: Fix indentation warning
Cristina Moraru [Thu, 1 Oct 2015 18:43:57 +0000 (21:43 +0300)]
staging: dgnc: Fix indentation warning

Fixed 'suspect code indent for conditional statements (8, 24)' Warning

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: octeon: Use preferred kernel type
Aybuke Ozdemir [Thu, 1 Oct 2015 13:42:16 +0000 (16:42 +0300)]
Staging: octeon: Use preferred kernel type

This patch "uint*_t" type instead of "u*" type was used.
checkpatch.pl issue in octeon driver.

Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: fbtft: Remove debug messages related to DEBUG_BACKLIGHT
Shraddha Barke [Wed, 30 Sep 2015 12:58:54 +0000 (18:28 +0530)]
Staging: fbtft: Remove debug messages related to DEBUG_BACKLIGHT

Remove debug messages related to fbtft_par_dbg(DEBUG_BACKLIGHT.. )
as this info can be obtained using kernel function tracer

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: fbtft: Remove debug messages related to DEBUG_WRITE_VMEM
Shraddha Barke [Wed, 30 Sep 2015 12:58:53 +0000 (18:28 +0530)]
Staging: fbtft: Remove debug messages related to DEBUG_WRITE_VMEM

Remove debug messages related to fbtft_par_dbg(DEBUG_WRITE_VMEM.. )
as this info can be obtained using kernel function tracer

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wlan-ng: fix block comment indentation
Ioana Ciornei [Wed, 30 Sep 2015 19:28:32 +0000 (22:28 +0300)]
staging: wlan-ng: fix block comment indentation

Update indentation of block comments to follow linux coding style

Signed-off-by: Ioana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: lustre: obdclass: Declare structure as static.
Shraddha Barke [Thu, 1 Oct 2015 09:37:58 +0000 (15:07 +0530)]
Staging: lustre: obdclass: Declare structure as static.

Declare structure as static since it is not accessed anywhere
apart from this particular file.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Make ldlm_add_ast_work_item() static
Oleg Drokin [Thu, 1 Oct 2015 04:12:42 +0000 (00:12 -0400)]
staging/lustre/ldlm: Make ldlm_add_ast_work_item() static

Now that ldlm_flock code no longer uses it.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove posix lock (flock) deadlock detection
Oleg Drokin [Thu, 1 Oct 2015 04:12:41 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove posix lock (flock) deadlock detection

This is server-side code that cannot work on the client
(vfs would do this check on the local node).

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_namespace_inactive_list()
Oleg Drokin [Thu, 1 Oct 2015 04:12:40 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_namespace_inactive_list()

Since there are no server namespaces, just replace it with
ldlm_cli_inactive_namespace_list pointer.
Also make ldlm_cli_inactive_namespace_list static as it's only
used in ldlm_resource.c

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused exported symbols.
Oleg Drokin [Thu, 1 Oct 2015 04:12:39 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused exported symbols.

This rather large patch prunes all unused EXPORT_SYMBOLS and
marks functions only used locally as static lustre ldlm module.

The only two remaining nonstatic functions that should be static
now are:
ldlm_cancel_lru_local
ldlm_resource_putref_locked

But some bigger code shuffling around is needed to achieve that, so
it's left for a future patch.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove server side code from pool support.
Oleg Drokin [Thu, 1 Oct 2015 04:12:38 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove server side code from pool support.

Server-side scanning is not really used in the client code,
so it's ok to drop it.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove ns_is_server()
Oleg Drokin [Thu, 1 Oct 2015 04:12:37 +0000 (00:12 -0400)]
staging/lustre: Remove ns_is_server()

Since the code we have is Lustre-client only, this function
always returns 0, so drop it and amend all the callsites to
drop dead code.
One of the places also sets LDLM_FL_NS_SRV to indicate a lock
is in a server namespace. This too cannot happen in this code,
so drop all such checks as well.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove ns_is_client()
Oleg Drokin [Thu, 1 Oct 2015 04:12:36 +0000 (00:12 -0400)]
staging/lustre: Remove ns_is_client()

Since staging tree code is just the client, ns_is_client is always
true, so change all callers as such and drop all the
dead code for when it's false.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_blocking_ast/_nocheck()
Oleg Drokin [Thu, 1 Oct 2015 04:12:35 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_blocking_ast/_nocheck()

All users are gone, and they were used on the server anyway.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_resource_insert_lock_after()
Oleg Drokin [Thu, 1 Oct 2015 04:12:34 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_resource_insert_lock_after()

It was only used on the server.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_reprocess_all*()
Oleg Drokin [Thu, 1 Oct 2015 04:12:33 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_reprocess_all*()

They are only used on the server.
Also remove helper functions and cleanup callsites.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove intent policies handler.
Oleg Drokin [Thu, 1 Oct 2015 04:12:32 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove intent policies handler.

This includes ldlm_register_intent(), ns_policy field in the namespace
and all of it's users, as this could only happen on the server.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_refresh/del_waiting_lock()
Oleg Drokin [Thu, 1 Oct 2015 04:12:31 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_refresh/del_waiting_lock()

Nothing adds locks into waiting list on the client, so no
point in retaining those.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_pool_set_slv()
Oleg Drokin [Thu, 1 Oct 2015 04:12:30 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_pool_set_slv()

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_pool_get_clv()
Oleg Drokin [Thu, 1 Oct 2015 04:12:29 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_pool_get_clv()

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_namespace_free()
Oleg Drokin [Thu, 1 Oct 2015 04:12:28 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_namespace_free()

It was directly used only on the server. Client side part
was split into smaller chunks to avoid deadlocks.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_lock_fail_match()
Oleg Drokin [Thu, 1 Oct 2015 04:12:27 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_lock_fail_match()

It's not used anywhere.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_glimpse_ast()
Oleg Drokin [Thu, 1 Oct 2015 04:12:26 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_glimpse_ast()

Only used on the server.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_errno2error()
Oleg Drokin [Thu, 1 Oct 2015 04:12:25 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_errno2error()

This particular incarnation is only used on the server.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_enqueue_pack()
Oleg Drokin [Thu, 1 Oct 2015 04:12:24 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_enqueue_pack()

Not used anywhere

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_init/fini_flock_export
Oleg Drokin [Thu, 1 Oct 2015 04:12:23 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_init/fini_flock_export

And all supporting export infrastructure. There's no use for it
all on client.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_cli_enqueue_local()
Oleg Drokin [Thu, 1 Oct 2015 04:12:22 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_cli_enqueue_local()

This is only used on the server.
Also while we are at it, remove unused prototypes for
ldlm_server_ast and ldlm_handle_enqueue0() that are not
defined anywhere

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Get rid of lr_converting queue
Oleg Drokin [Thu, 1 Oct 2015 04:12:21 +0000 (00:12 -0400)]
staging/lustre/ldlm: Get rid of lr_converting queue

Now that we removed all the lock conversion functions,
also get rid of the converson queue since nothing could ever
get there anyway.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unimplemented lock conversion traces.
Oleg Drokin [Thu, 1 Oct 2015 04:12:20 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unimplemented lock conversion traces.

Lock conversion is not really implemented, so let's stop
pretending here.
This removes ldlm_lock_convert, ldlm_cli_lock_convert
and ldlm_lock_downgrade.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove ldlm_init/destroy_export()
Oleg Drokin [Thu, 1 Oct 2015 04:12:19 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove ldlm_init/destroy_export()

These functions are used on the server-only, so get rid of them.
Also get rid of ldlm export hash operations and the struct.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused ldlm_cancel_locks_for_exports()
Oleg Drokin [Thu, 1 Oct 2015 04:12:18 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused ldlm_cancel_locks_for_exports()

This is only used on the server in case a client gets disconnected.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused interval tree bits
Oleg Drokin [Thu, 1 Oct 2015 04:12:17 +0000 (00:12 -0400)]
staging/lustre/ldlm: Remove unused interval tree bits

On client side interval-tree code operations are pretty basic,
so get rid of the code that is only used on the server to figure
out how much to extend the locks and such.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/lov: Remove unused lov_lsm_decref()
Oleg Drokin [Thu, 1 Oct 2015 04:12:16 +0000 (00:12 -0400)]
staging/lustre/lov: Remove unused lov_lsm_decref()

Also lov_lsm_addref is only used in the file it is defined,
so make it static

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/lov: Remove unused lov_dump_lmm/pool()
Oleg Drokin [Thu, 1 Oct 2015 04:12:15 +0000 (00:12 -0400)]
staging/lustre/lov: Remove unused lov_dump_lmm/pool()

These generic switch functions appear to be unused as all the
individual ones are called directly.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/llite: Remove unused ll_rmdir_entry()
Oleg Drokin [Thu, 1 Oct 2015 04:12:14 +0000 (00:12 -0400)]
staging/lustre/llite: Remove unused ll_rmdir_entry()

The ioctl for this function was removed, but the function was
forgotten, so kill it now.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove ununused ll_ra_read_get()
Oleg Drokin [Thu, 1 Oct 2015 04:12:13 +0000 (00:12 -0400)]
staging/lustre: Remove ununused ll_ra_read_get()

Also ll_ra_read_get_locked that was only used by it.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: KEY_DEFAULT/MAX_COOKIESIZE key is unused, remove them
Oleg Drokin [Thu, 1 Oct 2015 04:12:12 +0000 (00:12 -0400)]
staging/lustre: KEY_DEFAULT/MAX_COOKIESIZE key is unused, remove them

Also remove the lmv and mdc infrastructure to query these keys.
In fact this whole "unlink cookies" thing becomes irrelevant
with newer servers, but since we still retain 2.[123] servers
commpatibility, we cannot completely remove all traces of it yet.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/llite: Remove unused ll_get_default/max_cookiesize()
Oleg Drokin [Thu, 1 Oct 2015 04:12:11 +0000 (00:12 -0400)]
staging/lustre/llite: Remove unused ll_get_default/max_cookiesize()

This was used for a function that's no longer important, but
is no longer used anywhere.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: dgap: fix memory leak in dgap_parsefile()
Ronit Halder [Wed, 30 Sep 2015 06:09:45 +0000 (11:39 +0530)]
staging: dgap: fix memory leak in dgap_parsefile()

In dgap_parsefile() char pointers are set with kstrdup()
without checking that some string is allocated to that
char pointer before. This patch frees the memory if already allocated
and then set the poniter with kstrdup().

Signed-off-by: Ronit halder <ronit.crj@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: remove unused enable{ZVPort,SSP,PWM} functions
Mike Rapoport [Wed, 30 Sep 2015 05:24:59 +0000 (08:24 +0300)]
staging: sm750fb: remove unused enable{ZVPort,SSP,PWM} functions

The functions that enable/disable power for some sub-devices are not
used and therefore they can be removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: staticize getPowerMode function
Mike Rapoport [Wed, 30 Sep 2015 05:24:58 +0000 (08:24 +0300)]
staging: sm750fb: staticize getPowerMode function

The getPowerMode function is not used outside ddk750_power, make it
static.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: remove unused macros
Mike Rapoport [Wed, 30 Sep 2015 05:24:57 +0000 (08:24 +0300)]
staging: sm750fb: remove unused macros

Several macros defined in sm750.h and sm750_help.h are not used and
therefore they can be removed

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: remove unused ddk750_initDVIDisp function
Mike Rapoport [Wed, 30 Sep 2015 05:24:56 +0000 (08:24 +0300)]
staging: sm750fb: remove unused ddk750_initDVIDisp function

The ddk750_initDVIDisp function is never used and therefore it can be
removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: remove unused calcPllValue2 function
Mike Rapoport [Wed, 30 Sep 2015 05:24:55 +0000 (08:24 +0300)]
staging: sm750fb: remove unused calcPllValue2 function

The calcPllValue2 function is never called and therefore it can be
removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: sm750fb: staticize local functions in ddk750_chip
Mike Rapoport [Wed, 30 Sep 2015 05:24:54 +0000 (08:24 +0300)]
staging: sm750fb: staticize local functions in ddk750_chip

Several functions in ddk750_chip are not used elsewhere, let's make them
static.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: fix build error for openrisc-allmodconfig
Chaehyun Lim [Wed, 30 Sep 2015 08:52:14 +0000 (17:52 +0900)]
staging: wilc1000: fix build error for openrisc-allmodconfig

The kbuild test robot reports the following build error for
openrisc-allmodconfig.

>> drivers/staging/wilc1000/wilc_sdio.c:584:2: error: implicit
>> declaration of function 'memset'

The error occurs due to missing a standard header file as
<linux/string.h> so that three .c files are included it.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove define CONNECT_DIRECT
Glen Lee [Wed, 30 Sep 2015 02:59:24 +0000 (11:59 +0900)]
staging: wilc1000: remove define CONNECT_DIRECT

The driver use CONNECT_DIRECT define as always. No need to provide as feature.
This patch removes ifdef/ifndef CONNECT_DIRECT line and it's related codes
inside ifndef CONNECT_DIRECT.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove define WILC_PARSE_SCAN_IN_HOST
Glen Lee [Wed, 30 Sep 2015 02:59:23 +0000 (11:59 +0900)]
staging: wilc1000: remove define WILC_PARSE_SCAN_IN_HOST

The define WILC_PARSE_SCAN_IN_HOST is always used in the driver, so just
delete ifdef WILC_PARSE_SCAN_IN_HOST line, ifndef WILC_PARSE_SCAN_IN_HOST
line and it's related codes. Finally, remove define in Makefile.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: delete wilc_oswrapper.h
Chaehyun Lim [Tue, 29 Sep 2015 23:15:42 +0000 (08:15 +0900)]
staging: wilc1000: delete wilc_oswrapper.h

This patch deletes wilc_oswrapper.h that has nothing inside.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: wilc1000: remove wilc_platform include file
Chaehyun Lim [Tue, 29 Sep 2015 23:15:41 +0000 (08:15 +0900)]
staging: wilc1000: remove wilc_platform include file

This patch removes wilc_platform.h include file in wilc_oswrapper.h
wilc_platform.h have several standard header files so that some header
files should be included to avoid compilation errors.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agowilc1000 : Use BIT() macro where possible
Anish Bhatt [Tue, 29 Sep 2015 19:15:49 +0000 (12:15 -0700)]
wilc1000 : Use BIT() macro where possible

Replace (1 << x) by BIT(x) as recommended by
checkpatch.pl

Signed-off-by: Anish Bhatt <anish@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agowilc1000 : Remove leftover comment delimiters
Anish Bhatt [Tue, 29 Sep 2015 19:15:48 +0000 (12:15 -0700)]
wilc1000 : Remove leftover comment delimiters

Remove leftover comment delimiters that were only partially removed
in a previous cleanup.

Fixes : c3ca63728ad8 ("staging: wilc1000: remove useless comment")
Signed-off-by: Anish Bhatt <anish@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging:emxx_udc: Fixed comparison style warnings
Cristina Moraru [Tue, 29 Sep 2015 21:47:25 +0000 (14:47 -0700)]
staging:emxx_udc: Fixed comparison style warnings

Fixed 'Comparisons should place the constant on the right side of the
test' Warnings

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoStaging: media: lirc: Use USB API functions rather than constants
Shraddha Barke [Tue, 29 Sep 2015 19:21:28 +0000 (00:51 +0530)]
Staging: media: lirc: Use USB API functions rather than constants

Introduce use of function usb_endpoint_is_int_in() and
usb_endpoint_is_int_out(). Also remove the variables
ep_dir and ep_type as they are not used anymore.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging: iio: iio_dummy_evgen: handle_simple_irq() build fix
Greg Kroah-Hartman [Wed, 30 Sep 2015 01:46:43 +0000 (03:46 +0200)]
staging: iio: iio_dummy_evgen: handle_simple_irq() build fix

handle_simple_irq() has dropped the first parameter, so fix it up in the
iio_dummy_evgen.c driver to prevent the build from breaking.

Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agoMerge tag 'iio-for-4.4a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio...
Greg Kroah-Hartman [Wed, 30 Sep 2015 01:37:48 +0000 (03:37 +0200)]
Merge tag 'iio-for-4.4a' of git://git./linux/kernel/git/jic23/iio into staging-next

Jonathan writes:

First round of new driver, new functionality and cleanups for IIO in the 4.4 cycle

New device support
* APDS9960 ALS + proximity driver
* bmg160 SPI devices.
* HDC100x humidity sensors
* Holt HI-8435 threshold detector
* mma8453Q accelerometer added to the mma8452 driver
* mma86452FC and mma8653FC accelerometers added to the mma8452 driver
* mxc4005 accelerometer
* PulsedLight LIDAR
* SensorTech VZ89x volatile organic compound sensor
* UPISEMI uS5182d ALS and proximity sensors

New core functionality
* triggered events - use triggers to check for changes in threshold type
  detectors on devices with out interrupt support.  First user is the holt
  comparator.
* chemical concentration and resistance channel types.

New driver functionality
* vf610
  - buffer support.
  - followup coccinelle warning fix.

Core rework
* buffers
  - break out callback buffer to own module.
  - move buffer implementations to a new subdirectory
* percolate the error code form iio_event_getfd out to userspace
  rather than giving a missleading error later on.

Cleanups
* adddac drivers
  - use BIT macro where appropriate.
* meter drivers
  - use BIT macro where appropriate.

* ad7303
 - add an OF match table to line up with the binding docs.
* adc128s052
  - add an OF match table to line up with the binding docs.
adf4350
  - add an OF match table to line up with the binding docs
* as3935
  - add an OF match table to line up with the binding docs.
* berlin2-adc
  - use GENMASK and BIT for masks
  - prevent attempting to sample multiple channels at once by moving a
    mutex scop
  - coding style cleanups
* bmg150_magn
  - kconfig sort order was wrong - fix it.
* bmg160
  - use i2c regmap and drop all uses of i2c_client
  - separate i2c and core driver
* cc10001_adc
  - kconfig sort order was wrong - fix it.
* evgen (dummy driver helper module)
  - move interrupt generation to irq_work to reduce differences between
    the dummy driver and real hardware drivers.
* hmc5843
  - set the name dynamically rather than to a fixed value for one of the
    suported parts.
  - export module alias information to allow autoprobing of module.
* lpc32xx
  - on failure to get resource or irq return -ENXIO as uppose to -EBUSY
* max1027
  - set .of_match_table to actually allow OF style matching.
* max5821
  - add MODULE_DEVICE_TABLE for OF table.
* mma8452
  - refactor to separate out chip specific data.
  - add freefall / motion interrupt source for devices that do their
    interrupts slightly differently.
  - update copywrite notice.
  - leave naming of events directory in sysfs to the core
* mcp320x
  - set .of_match_table so that it can be use for OF style matching.
* mlx90614
  - Implement filter configuration (note the datasheet changed as a result
    of the driver reviews to include the values we needed ;)
* opt3001
  - drop .owner field as assigned by platform driver core.
* si7020
  - replace a bitmask on the humidity values with a more correct range
    check.
* stk310
  - improved error handling.
  - use BIT macro where appropriate and use the resulting defines
    instead of magic numbers in the code.
  - fix indentation
* st-sensors
  - add debugfs register read hook
* tsl4531
  - fix error handling in check_id
* twl6030
  - fix module autoload for OF
* iio-trig-sysfs
  - document add and remove attribute
* trigger in staging
  - code alignment fixes.
  - braces on both branches of if statement if needed for one.
* xilinx-xadc
  - push interrupts into hardirq context as there isn't much in them
    any more and it avoids breaking PREEMPT_RT builds due to the use
    of a spinlock between the hardirq and the thread.

Tools
* event-monitor
  - report unsupported events.  We keep expanding what can come from drivers
    so give a helpful error if one turns up in an out of date userspace
    program.
* generic-buffer
  - helpful message about needing to enable a channel to start the buffer.

8 years agostaging/lustre: Remove ccc_transient_page_* methods
Oleg Drokin [Tue, 29 Sep 2015 03:44:12 +0000 (23:44 -0400)]
staging/lustre: Remove ccc_transient_page_* methods

All of them but the ccc_transient_page_prep are unused, so remove
the unused ones.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused ccc_io_fini()
Oleg Drokin [Tue, 29 Sep 2015 03:44:11 +0000 (23:44 -0400)]
staging/lustre: Remove unused ccc_io_fini()

Does not appear to be used anywhere.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove ccc_attr/conf_set()
Oleg Drokin [Tue, 29 Sep 2015 03:44:10 +0000 (23:44 -0400)]
staging/lustre: Remove ccc_attr/conf_set()

These seem to be unused.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove server-only recovery-related bits
Oleg Drokin [Tue, 29 Sep 2015 03:44:09 +0000 (23:44 -0400)]
staging/lustre: Remove server-only recovery-related bits

This patch is a first stab at trying to remove structure fields
from obd_export and obd structures that are only used on the
server or make sense on the server. These include tracking
requests in recovery, various recovery stages, lists of
recovered and not yet recovered clients and so on.
Also prune functions that use these fields.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/obdclass: Remove unused nid_hash
Oleg Drokin [Tue, 29 Sep 2015 03:44:08 +0000 (23:44 -0400)]
staging/lustre/obdclass: Remove unused nid_hash

nid_hash is used on export to faster find clients based on
their NID. There's no use for that on the client.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fid: Remove unused struct lu_server_seq
Oleg Drokin [Tue, 29 Sep 2015 03:44:07 +0000 (23:44 -0400)]
staging/lustre/fid: Remove unused struct lu_server_seq

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fid: Get rid of lcs_srv in lu_client_seq
Oleg Drokin [Tue, 29 Sep 2015 03:44:06 +0000 (23:44 -0400)]
staging/lustre/fid: Get rid of lcs_srv in lu_client_seq

Since we know lcs_srv is always NULL, just get rid of it completely
and fix up all the code to assumee it was never there.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fid: Remove unused seq_client_get_seq function
Oleg Drokin [Tue, 29 Sep 2015 03:44:05 +0000 (23:44 -0400)]
staging/lustre/fid: Remove unused seq_client_get_seq function

Also while we are at it, remove seq_site_fini forward declaration
as there's no such function anymore.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fid: seq_client_init/fini don't need to be exported
Oleg Drokin [Tue, 29 Sep 2015 03:44:04 +0000 (23:44 -0400)]
staging/lustre/fid: seq_client_init/fini don't need to be exported

In fact they could be static as they are only used inside
this file, so remove EXPORT_SYMBOL and declarations.
Also seq_client_init is always called with srv = NULL, so just
drop this argument.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/fid: Remove server fid function declarations
Oleg Drokin [Tue, 29 Sep 2015 03:44:03 +0000 (23:44 -0400)]
staging/lustre/fid: Remove server fid function declarations

Those functions are not present anywhere in the client code.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: remove lots of dead code
Arnd Bergmann [Tue, 29 Sep 2015 03:44:02 +0000 (23:44 -0400)]
staging/lustre: remove lots of dead code

This is a large patch to remove all dead code from obdclass and
ptlrpc, purely removing functions and declarations now, so
despite the size should be easy enough to verify.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Drop unused obdo_from_la() and la_from_obdo()
Oleg Drokin [Tue, 29 Sep 2015 03:44:01 +0000 (23:44 -0400)]
staging/lustre: Drop unused obdo_from_la() and la_from_obdo()

They are no longer used anywhere.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ptlrpc: secure wrapping code cleanup
Oleg Drokin [Tue, 29 Sep 2015 03:44:00 +0000 (23:44 -0400)]
staging/lustre/ptlrpc: secure wrapping code cleanup

Drop unused functions.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ptlrpc: Drop unused client code
Oleg Drokin [Tue, 29 Sep 2015 03:43:59 +0000 (23:43 -0400)]
staging/lustre/ptlrpc: Drop unused client code

These client request/import functions are not used anywhere,
so drop them.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/obdclass: Drop unused code from obdo.c
Oleg Drokin [Tue, 29 Sep 2015 03:43:58 +0000 (23:43 -0400)]
staging/lustre/obdclass: Drop unused code from obdo.c

These functions are not even referenced in any header files anymore.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused function server_name2svname()
Oleg Drokin [Tue, 29 Sep 2015 03:43:57 +0000 (23:43 -0400)]
staging/lustre: Remove unused function server_name2svname()

All users are only in the server code

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused function class_handle_hash_back()
Oleg Drokin [Tue, 29 Sep 2015 03:43:56 +0000 (23:43 -0400)]
staging/lustre: Remove unused function class_handle_hash_back()

No callers left.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/obdclass: Remove unused functions from genops.c
Oleg Drokin [Tue, 29 Sep 2015 03:43:55 +0000 (23:43 -0400)]
staging/lustre/obdclass: Remove unused functions from genops.c

These functions are mostly used on the server.

class_uuid2obd, get_devices_count, class_obd_list, class_conn2obd,
class_conn2cliimp, class_connected_export, obd_exports_barrier,
kuc_* (kernel-userspace communications).

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre/ldlm: Remove unused round_timeout function
Oleg Drokin [Tue, 29 Sep 2015 03:43:54 +0000 (23:43 -0400)]
staging/lustre/ldlm: Remove unused round_timeout function

It's not referenced anywhere anymore.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused lu_object functions.
Oleg Drokin [Tue, 29 Sep 2015 03:43:53 +0000 (23:43 -0400)]
staging/lustre: Remove unused lu_object functions.

Quite a bunch of them are only used on the server.
lu_object_put_nocache, lu_object_invariant, lu_dev_del_linkage,
lu_context_tags_update, lu_context_tags_clear, lu_session_tags_update,
lu_session_tags_clear, lu_env_refill_by_tags, lu_printk_printer,
lu_object_assign_fid, lu_object_anon, lu_buf_free, lu_buf_alloc,
lu_buf_realloc, lu_buf_check_and_alloc, lu_buf_check_and_grow

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused functions and definitions from cl_object
Oleg Drokin [Tue, 29 Sep 2015 03:43:52 +0000 (23:43 -0400)]
staging/lustre: Remove unused functions and definitions from cl_object

cl_object_header_fini, cl_object_has_locks, cl_attr2lvb,
cl_page_list_own, cl_page_list_unmap, cl_2queue_assume,
cl_io_print, cl_enqueue,
also cleanup extern declarations in cl_object.h

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused ptlrpcd_add_rqset()
Oleg Drokin [Tue, 29 Sep 2015 03:43:51 +0000 (23:43 -0400)]
staging/lustre: Remove unused ptlrpcd_add_rqset()

No point in retaining it if it's unused.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove unused statfs_pack()
Oleg Drokin [Tue, 29 Sep 2015 03:43:50 +0000 (23:43 -0400)]
staging/lustre: Remove unused statfs_pack()

It's only used on the server.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
8 years agostaging/lustre: Remove high-priority request callbacks
Oleg Drokin [Tue, 29 Sep 2015 03:43:49 +0000 (23:43 -0400)]
staging/lustre: Remove high-priority request callbacks

This function is only used on the server where real high-priority
requests actually exist.
This deletes ptlrpc_hpreq_handler() and ptlrpc_request_change_export()

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>