mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
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 <[email protected]> Cc: Breno Leitão <[email protected]> Cc: Nayna Jain <[email protected]> Cc: Paulo Flabiano Smorigo <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: [email protected] Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: [email protected] Signed-off-by: Herbert Xu <[email protected]>
19 lines
599 B
Makefile
19 lines
599 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_CRYPTO_DEV_NX_ENCRYPT) += nx-crypto.o
|
|
nx-crypto-objs := nx.o \
|
|
nx-aes-cbc.o \
|
|
nx-aes-ecb.o \
|
|
nx-aes-gcm.o \
|
|
nx-aes-ccm.o \
|
|
nx-aes-ctr.o \
|
|
nx-aes-xcbc.o \
|
|
nx-sha256.o \
|
|
nx-sha512.o
|
|
|
|
nx-crypto-$(CONFIG_DEBUG_FS) += nx_debugfs.o
|
|
obj-$(CONFIG_CRYPTO_DEV_NX_COMPRESS_PSERIES) += nx-compress-pseries.o nx-compress.o
|
|
obj-$(CONFIG_CRYPTO_DEV_NX_COMPRESS_POWERNV) += nx-compress-powernv.o nx-compress.o
|
|
nx-compress-objs := nx-842.o
|
|
nx-compress-pseries-objs := nx-common-pseries.o
|
|
nx-compress-powernv-objs := nx-common-powernv.o
|