linux/drivers/staging
Linus Torvalds 6929f71e46 atomisp: avoid warning about unused function
The atomisp_mrfld_power() function isn't actually ever called, because
the two call-sites have commented out the use because it breaks on some
platforms.  That results in:

  drivers/staging/media/atomisp/pci/atomisp_v4l2.c:764:12: warning: ‘atomisp_mrfld_power’ defined but not used [-Wunused-function]
    764 | static int atomisp_mrfld_power(struct atomisp_device *isp, bool enable)
        |            ^~~~~~~~~~~~~~~~~~~

during the build.

Rather than commenting out the use entirely, just disable it
semantically instead (using a "0 &&" construct), leaving the call in
place from a syntax standpoint, and avoiding the warning.

I really don't want my builds to have any warnings that can then hide
real issues.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-03 21:22:46 -07:00
..
android staging: android: ion: use vmap instead of vm_map_ram 2020-06-02 10:59:10 -07:00
axis-fifo
board
clocking-wizard
comedi Merge branch 'uaccess.comedi' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-03 15:55:45 -07:00
emxx_udc
fbtft
fieldbus
fsl-dpaa2
fwserial
gasket
gdm724x
goldfish
greybus mmc: host: Drop redundant MMC_CAP_ERASE 2020-05-28 11:22:14 +02:00
gs_fpgaboot
iio
kpc2000
ks7010
media atomisp: avoid warning about unused function 2020-06-03 21:22:46 -07:00
most
mt7621-dma
mt7621-dts
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu
rtl8192e
rtl8192u
rtl8712
rtl8723bs
rts5208
sm750fb
speakup
unisys
vc04_services
vme
vt6655
vt6656
wfx
wilc1000
wlan-ng
Kconfig
Makefile