OpenCloudOS-Kernel/drivers/crypto/nx
Randy Dunlap b04b076fb5 crypto: nx - fix build warnings when DEBUG_FS is not enabled
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>
2023-05-24 18:12:33 +08:00
..
Kconfig crypto/nx: Register and unregister VAS interface on PowerVM 2021-06-20 21:58:58 +10:00
Makefile crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-05-24 18:12:33 +08:00
nx-842.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
nx-842.h crypto: Prepare to move crypto_tfm_ctx 2022-12-02 18:12:40 +08:00
nx-aes-cbc.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-ccm.c crypto: nx - Remove the unneeded result variable 2022-09-09 16:18:33 +08:00
nx-aes-ctr.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-ecb.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-gcm.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-aes-xcbc.c crypto: nx - fix incorrect kernel-doc comment syntax in files 2021-03-26 20:15:58 +11:00
nx-common-powernv.c crypto: nx - Fix sparse warnings 2023-02-14 13:39:33 +08:00
nx-common-pseries.c crypto: nx - Fix sparse warnings 2023-02-14 13:39:33 +08:00
nx-sha256.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx-sha512.c crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2021-04-26 08:51:23 -07:00
nx.h crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-05-24 18:12:33 +08:00
nx_csbcpb.h crypto: nx - Fix numerous sparse byte-order warnings 2021-06-24 14:51:35 +08:00
nx_debugfs.c crypto: nx - Repair some kernel-doc problems 2021-03-26 20:02:36 +11:00