linux/drivers/staging
Nathan Chancellor e6d093719e staging: rtl8723bs: Mark ACPI table declaration as used
Clang emits the following warning:

drivers/staging/rtl8723bs/os_dep/sdio_intf.c:25:36: warning: variable
'acpi_ids' is not needed and will not be emitted
[-Wunneeded-internal-declaration]
static const struct acpi_device_id acpi_ids[] = {
                                   ^
1 warning generated.

Mark acpi_ids with the attribute __used, which makes it clear to Clang
that we don't want this warning while not inhibiting Clang's dead code
elimination from removing the unreferenced internal symbol when moving
the data to the globally available symbol with MODULE_DEVICE_TABLE.

$ nm -S drivers/staging/rtl8723bs/os_dep/sdio_intf.o | grep acpi
0000000000000000 0000000000000040 R __mod_acpi__acpi_ids_device_table

Link: https://github.com/ClangBuiltLinux/linux/issues/169
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-02 14:59:14 -07:00
..
android staging: android: ion: Clean unused debug_show memeber of the heap object 2018-09-10 10:28:07 +02:00
axis-fifo
board
clocking-wizard
comedi
dgnc staging: dgnc: Fix a sleep-in-atomic-context bug in cls_assert_modem_signals() 2018-09-18 13:29:10 +02:00
emxx_udc staging: emxx_udc: remove unnecessary nullpointer checks 2018-09-25 21:05:20 +02:00
erofs staging: erofs: option validation in remount 2018-09-20 12:26:29 +02:00
fbtft Merge 4.19-rc4 into staging-next 2018-09-16 22:04:13 +02:00
fsl-dpaa2 staging: fsl-dpaa2/ethsw: Fix uninitialized variables 2018-09-10 10:38:17 +02:00
fwserial
gasket staging: gasket: page_table: handle failed dma_map_page 2018-09-18 13:22:01 +02:00
gdm724x
goldfish
greybus staging: greybus: fix spelling mistake "entires" -> "entries" 2018-09-18 13:29:11 +02:00
gs_fpgaboot
iio staging:iio:ad7606: Add support for the ad7605-4 2018-09-22 16:42:57 +01:00
ks7010
media staging: Convert to using %pOFn instead of device_node.name 2018-09-10 10:18:32 +02:00
most staging: most: fix label names 2018-09-25 21:09:56 +02:00
mt29f_spinand
mt7621-dma
mt7621-dts
mt7621-eth staging: remove unneeded static set .owner field in platform_driver 2018-09-14 10:45:51 +02:00
mt7621-mmc staging: mt7621-mmc: replace printk with preferred API 2018-10-02 14:53:18 -07:00
mt7621-pci staging: mt7621-pci: remove unnecessary check of device_type == pci 2018-09-10 10:38:17 +02:00
mt7621-pinctrl
mt7621-spi
netlogic
nvec
octeon
octeon-usb staging: octeon-hcd: remove unnecessary unlikely() 2018-09-14 15:21:06 +02:00
olpc_dcon staging: olpc_dcon: add a missing dependency 2018-09-20 12:28:02 +02:00
pi433
rtl8188eu staging: rtl8188eu: Skip unnecessary field checks 2018-09-28 14:30:52 +02:00
rtl8192e staging: rtl8192e: Fix compiler warning from strncpy() 2018-09-10 10:18:32 +02:00
rtl8192u staging:rtl8192u: Remove potential memory leak 2018-09-28 14:36:58 +02:00
rtl8712 staging: rtl8712: replace licence header with SPDX licence id 2018-09-20 12:29:26 +02:00
rtl8723bs staging: rtl8723bs: Mark ACPI table declaration as used 2018-10-02 14:59:14 -07:00
rtlwifi staging: rtlwifi: Remove set but not used variable 'ppsc' 2018-09-28 14:41:36 +02:00
rts5208 staging: rts5208: Remove unnecessary braces {} 2018-09-25 21:10:36 +02:00
sm750fb staging: sm750fb: Fix typo frambuffer->framebuffer 2018-09-25 21:02:06 +02:00
speakup
unisys
vboxvideo staging: vboxvideo: Use more drm_fb_helper functions 2018-09-29 05:31:33 -07:00
vc04_services staging: bcm2835-camera: Avoid unneeded internal declaration warning 2018-09-28 14:41:36 +02:00
vme
vt6655
vt6656
wilc1000 staging: wilc1000: fix incorrect allocation size for structure 2018-09-28 14:30:52 +02:00
wlan-ng staging: wlan-ng: remove "autogenerated code" comments 2018-09-28 14:43:52 +02:00
xgifb
Kconfig
Makefile