linux-stable/drivers
Randy Dunlap f2692b6088 crypto: nx - fix build warnings when DEBUG_FS is not enabled
[ Upstream commit b04b076fb5 ]

Fix build warnings when DEBUG_FS is not enabled by using an empty
do-while loop instead of a value:

In file included from ../drivers/crypto/nx/nx.c:27:
../drivers/crypto/nx/nx.c: In function 'nx_register_algs':
../drivers/crypto/nx/nx.h:173:33: warning: statement with no effect [-Wunused-value]
  173 | #define NX_DEBUGFS_INIT(drv)    (0)
../drivers/crypto/nx/nx.c:573:9: note: in expansion of macro 'NX_DEBUGFS_INIT'
  573 |         NX_DEBUGFS_INIT(&nx_driver);
../drivers/crypto/nx/nx.c: In function 'nx_remove':
../drivers/crypto/nx/nx.h:174:33: warning: statement with no effect [-Wunused-value]
  174 | #define NX_DEBUGFS_FINI(drv)    (0)
../drivers/crypto/nx/nx.c:793:17: note: in expansion of macro 'NX_DEBUGFS_FINI'
  793 |                 NX_DEBUGFS_FINI(&nx_driver);

Also, there is no need to build nx_debugfs.o when DEBUG_FS is not
enabled, so change the Makefile to accommodate that.

Fixes: ae0222b728 ("powerpc/crypto: nx driver code supporting nx encryption")
Fixes: aef7b31c88 ("powerpc/crypto: Build files for the nx device driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Breno Leitão <leitao@debian.org>
Cc: Nayna Jain <nayna@linux.ibm.com>
Cc: Paulo Flabiano Smorigo <pfsmorigo@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 11:33:38 +02:00
..
accessibility
acpi treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
amba
android
ata treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
atm treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
auxdisplay
base PM: domains: fix integer overflow issues in genpd_parse_state() 2023-08-11 11:33:33 +02:00
bcma
block treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
bluetooth Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work" 2023-05-17 11:11:42 +02:00
bus bus: sunxi-rsb: Fix error handling in sunxi_rsb_init() 2023-02-22 12:46:01 +01:00
cdrom
char tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak 2023-01-18 09:26:36 +01:00
clk treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
clocksource
connector
cpufreq cpufreq: davinci: Fix clk use after free 2023-03-11 16:26:37 +01:00
cpuidle cpuidle: dt: Return the correct numbers of parsed idle states 2023-01-18 09:26:09 +01:00
crypto crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-08-11 11:33:38 +02:00
dax
dca
devfreq
dio drivers: dio: fix possible memory leak in dio_init() 2023-01-18 09:26:22 +01:00
dma dmaengine: pl330: rename _start to prevent build error 2023-06-09 10:22:48 +02:00
dma-buf
edac EDAC/device: Respect any driver-supplied workqueue polling value 2023-02-06 07:46:31 +01:00
eisa
extcon
firewire treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
firmware efi: Accept version 2 of memory attributes table 2023-02-22 12:46:02 +01:00
fmc
fpga
fsi fsi: core: Check error number after calling ida_simple_get 2022-10-26 13:17:06 +02:00
gpio gpio: davinci: Add irq chip flag to skip set wake 2023-04-20 12:02:10 +02:00
gpu drm/radeon: fix possible division-by-zero errors 2023-08-11 11:33:37 +02:00
hid HID: wacom: Add error check to wacom_parse_and_register() 2023-06-28 10:14:20 +02:00
hsi HSI: omap_ssi_core: Fix error handling in ssi_init() 2023-01-18 09:26:26 +01:00
hv Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs 2023-06-28 10:14:19 +02:00
hwmon hwmon (it87): Fix voltage scaling for chips with 10.9mV ADCs 2023-04-05 11:14:16 +02:00
hwspinlock
hwtracing coresight-etm4: Fix for() loop drvdata->nr_addr_cmp range bug 2023-04-20 12:02:12 +02:00
i2c treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
ide treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
idle entel_idle: Disable IBRS during long idle 2022-11-01 19:14:45 +01:00
iio iio: dac: mcp4725: Fix i2c_master_send() return value handling 2023-06-09 10:22:52 +02:00
infiniband treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
input Input: adxl34x - do not hardcode interrupt trigger type 2023-08-11 11:33:36 +02:00
iommu iommu/amd: Fix ivrs_acpihid cmdline parsing code 2023-01-18 09:26:38 +01:00
ipack
irqchip irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts 2023-03-11 16:26:38 +01:00
isdn mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave() 2023-01-18 09:26:28 +01:00
leds
lightnvm
macintosh macintosh: via-pmu-led: requires ATA to be set 2023-05-17 11:11:44 +02:00
mailbox mailbox: mailbox-test: fix a locking issue in mbox_test_message_write() 2023-06-09 10:22:52 +02:00
mcb mcb-pci: Reallocate memory region to avoid memory overlapping 2023-05-30 12:38:35 +01:00
md md/raid10: fix io loss while replacement replace rdev 2023-08-11 11:33:33 +02:00
media treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
memory memory: of: Fix refcount leak bug in of_get_ddr_timings() 2022-10-26 13:17:02 +02:00
memstick memstick r592: make memstick_debug_get_tpc_name() static 2023-08-11 11:33:34 +02:00
message scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition 2023-05-30 12:38:35 +01:00
mfd mfd: dln2: Fix memory leak in dln2_probe() 2023-05-30 12:38:36 +01:00
misc cxl: Fix refcount leak in cxl_calc_capp_routing 2023-01-18 09:26:27 +01:00
mmc treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
mtd treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
mux
net gtp: Fix use-after-free in __gtp_encap_destroy(). 2023-08-11 11:33:35 +02:00
nfc nfcsim.c: Fix error checking for debugfs_create_dir 2023-06-28 10:14:20 +02:00
ntb
nubus
nvdimm
nvme nvmet: avoid potential UAF in nvmet_req_complete() 2023-03-22 13:26:14 +01:00
nvmem
of of: Fix modalias string generation 2023-05-17 11:11:43 +02:00
oprofile
parisc parisc: led: Fix potential null-ptr-deref in start_task() 2023-01-18 09:26:38 +01:00
parport parport_pc: Avoid FIFO port location truncation 2022-11-25 17:36:50 +01:00
pci PCI: Avoid FLR for AMD FCH AHCI adapters 2023-03-11 16:26:49 +01:00
pcmcia
perf
phy phy: st: miphy28lp: use _poll_timeout functions for waits 2023-05-30 12:38:36 +01:00
pinctrl pinctrl: at91-pio4: check return value of devm_kasprintf() 2023-08-11 11:33:38 +02:00
platform treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
pnp PNP: fix name memory leak in pnp_alloc_dev() 2023-01-18 09:26:10 +01:00
power power: supply: Fix logic checking if system is running from battery 2023-06-21 15:38:57 +02:00
powercap powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue 2022-10-26 13:17:08 +02:00
pps
ps3
ptp
pwm pwm: cros-ec: Explicitly set .polarity in .get_state() 2023-04-20 12:02:10 +02:00
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2023-01-18 09:26:12 +01:00
ras
regulator regulator: Fix error checking for debugfs_create_dir 2023-06-21 15:38:57 +02:00
remoteproc
reset
rpmsg rpmsg: glink: Avoid infinite loop on intent for missing channel 2023-03-11 16:26:41 +01:00
rtc rtc: pm8xxx: fix set-alarm race 2023-03-11 16:26:44 +01:00
s390 s390/cio: unregister device when the only path is gone 2023-06-28 10:14:21 +02:00
sbus
scsi scsi: 3w-xxxx: Add error handling for initialization failure in tw_probe() 2023-08-11 11:33:37 +02:00
sfi
sh
sn
soc soc/fsl/qe: fix usb.c build errors 2023-08-11 11:33:37 +02:00
spi spi: qup: Request DMA before enabling clocks 2023-06-14 10:35:24 +02:00
spmi spmi: Add a check for remove callback when removing a SPMI driver 2023-05-17 11:11:44 +02:00
ssb treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
staging Revert "staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE" 2023-06-14 10:35:27 +02:00
target scsi: target: iscsi: Prevent login threads from racing between each other 2023-06-28 10:14:20 +02:00
tc
tee
thermal thermal: intel: powerclamp: Fix cur_state for multi package system 2023-03-11 16:26:55 +01:00
thunderbolt thunderbolt: Use const qualifier for ring_interrupt_index 2023-04-05 11:14:16 +02:00
tty treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
uio uio: uio_dmem_genirq: Fix deadlock between irq config and handling 2023-01-18 09:26:23 +01:00
usb treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
uwb
vfio vfio: platform: Do not pass return buffer to ACPI _RST method 2023-01-18 09:26:23 +01:00
vhost treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
video fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe() 2023-08-11 11:33:37 +02:00
virt
virtio treewide: Remove uninitialized_var() usage 2023-08-11 11:33:32 +02:00
vlynq
vme vme: Fix error not catched in fake_init() 2023-01-18 09:26:25 +01:00
w1 w1: fix WARNING after calling w1_process() 2023-02-06 07:46:30 +01:00
watchdog watchdog: sbsa_wdog: Make sure the timeout programming is within the limits 2023-04-20 12:02:12 +02:00
xen xen/pvcalls-back: fix double frees with pvcalls_new_active_socket() 2023-05-30 12:38:38 +01:00
zorro
Kconfig
Makefile