linux-stable/drivers/staging
Arnd Bergmann 7f804436fb staging: lustre: remove unused variable warning
A recent patch to simplify the lustre large memory allocation
causes new warnings as an unintended side-effect:

lustre/lov/lov_request.c: In function 'lov_finish_set':
lustre/lov/lov_request.c:78:7: warning: unused variable 'len' [-Wunused-variable]
   int len = set->set_oabufs * sizeof(*set->set_pga);
       ^
lustre/obdclass/acl.c: In function 'lustre_ext_acl_xattr_reduce_space':
lustre/obdclass/acl.c:123:6: warning: unused variable 'old_size' [-Wunused-variable]
  int old_size = CFS_ACL_XATTR_SIZE(old_count, ext_acl_xattr);
      ^

The reason is that the 'size' argument to OBD_FREE_LARGE()
is never needed, which was previously hidden by the extra
abstractions.

This avoids the warnings by adding a cast to void, to tell
the compiler that the argument is intentionally unused.
A better fix is probably to remove the entire set of allocation
macros and open-code the normal kernel interface calls.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 99d56ff7c1 ("staging/lustre: Always try kmalloc first for OBD_ALLOC_LARGE")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-05-31 09:42:27 +09:00
..
android Staging:Android:ion - Fix for memory leak if ion device registration get failed. 2015-05-24 13:27:13 -07:00
board
clocking-wizard
comedi Staging: comedi: fix style for multi-line comments in cb_pcidas64.c 2015-05-24 13:11:44 -07:00
dgap staging: dgap: remove unused code 2015-05-10 15:17:50 +02:00
dgnc staging: dgnc: remove redundant check 2015-05-08 09:24:01 +02:00
emxx_udc Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
fbtft Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
fsl-mc staging: fsl-mc: Remove redundant initalization of the .owner field 2015-05-08 09:24:11 +02:00
ft1000 staging: ft1000: Drop unneeded cast on netdev_priv 2015-04-03 14:00:14 +02:00
fwserial Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
gdm72xx Staging: gdm72xx: use !x instead of x == NULL 2015-03-16 16:28:47 +01:00
gdm724x staging: gdm724x: Correction of variable usage after applying ALIGN() 2015-05-10 15:23:02 +02:00
goldfish staging/goldfish/goldfish_audio: Fix annotations 2015-03-20 14:13:17 +01:00
gs_fpgaboot
iio Staging: iio: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-10 20:31:43 +01:00
lustre staging: lustre: remove unused variable warning 2015-05-31 09:42:27 +09:00
media Merge 4.1-rc4 into staging-next 2015-05-18 13:52:44 -07:00
mt29f_spinand
netlogic staging: netlogic: allocate right size in devm_kzalloc 2015-03-20 14:13:17 +01:00
nvec Staging driver patches for 4.1-rc1 2015-04-13 17:37:33 -07:00
octeon staging: octeon-ethernet: update boilerplate comments 2015-04-30 17:06:09 +02:00
octeon-usb Staging: fixed multiple spelling errors. 2015-05-08 09:23:58 +02:00
olpc_dcon staging/olpc: drop pci dependencies 2015-04-03 13:56:03 +02:00
ozwpan staging: ozwpan: implement error handling in ozwpan_init() 2015-03-26 13:13:13 +01:00
panel staging: panel: fix stackdump 2015-05-24 13:35:25 -07:00
rtl8188eu rtl8188eu: don't duplicate ieee80211 constants for status/reason 2015-05-08 09:24:13 +02:00
rtl8192e staging: rtl8192e: Change cpu_to_le16 to le16_to_cpu 2015-05-10 15:00:41 +02:00
rtl8192u staging: rtl8192u: don't redefine container_of() 2015-05-08 09:24:16 +02:00
rtl8712 Merge 4.1-rc4 into staging-next 2015-05-18 13:52:44 -07:00
rtl8723au staging: rtl8723au: remove useless comment 2015-05-31 09:22:45 +09:00
rts5208 Staging: rts5208: Replace timeval with timespec64 2015-05-08 09:24:16 +02:00
skein
slicoss staging: slicoss: fix occasionally writing out only half of a dma address 2015-05-13 16:13:24 -07:00
sm7xxfb staging: sm7xxfb: remove unused functions 2015-05-08 09:24:12 +02:00
sm750fb staging: sm750: Fix lynxfb_ops_imageblit() if image->depth != 1 2015-05-24 13:34:49 -07:00
speakup staging: speakup: Fix warning of line over 80 characters. 2015-04-03 13:43:45 +02:00
ste_rmi4 Staging: ste_rmi4: Use SIMPLE_DEV_PM_OPS() macro 2015-03-20 13:37:31 +01:00
unisys staging: unisys: cleanup UNISYS_VISORUTIL 2015-05-24 13:32:15 -07:00
vme
vt6655 Merge 4.1-rc4 into staging-next 2015-05-18 13:52:44 -07:00
vt6656 staging: vt6656: use ieee80211_tx_info to select packet type. 2015-05-08 14:28:04 +02:00
wilc1000 staging: wilc1000: off by one in wilc_wfi_cfg80211_mgmt_types 2015-05-31 09:00:15 +09:00
wlan-ng Staging: wlan-ng: Remove typedef prism2sta_accesslist_t 2015-03-23 22:41:16 +01:00
xgifb
Kconfig staging: wilc1000: Add SDIO/SPI 802.11 driver 2015-05-24 13:36:53 -07:00
Makefile staging: wilc1000: Add SDIO/SPI 802.11 driver 2015-05-24 13:36:53 -07:00
staging.c