Go to file
Randy Dunlap 5deca3bb7f crypto: nx - fix build warnings when DEBUG_FS is not enabled
BugLink: https://bugs.launchpad.net/bugs/2034918

[ Upstream commit b04b076fb56560b39d695ac3744db457e12278fd ]

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>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-10-02 12:12:05 +02:00
Documentation io_uring: add a sysctl to disable io_uring system-wide 2023-10-02 12:11:56 +02:00
LICENSES
arch powerpc/mm/dax: Fix the condition when checking if altmap vmemap can cross-boundary 2023-10-02 12:12:05 +02:00
block block/blk-iocost (gcc13): keep large values in a new enum 2023-09-01 14:48:40 +02:00
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist 2022-08-26 11:10:49 +02:00
crypto KEYS: asymmetric: Copy sig and digest in public_key_verify_signature() 2023-09-01 14:48:42 +02:00
debian UBUNTU: [Packaging] update helper scripts 2023-10-02 11:55:20 +02:00
debian.master UBUNTU: Upstream stable to v5.4.250 2023-10-02 12:11:59 +02:00
drivers crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-10-02 12:12:05 +02:00
fs pstore/ram: Add check for kstrdup 2023-10-02 12:12:01 +02:00
include PCI: Add pci_clear_master() stub for non-CONFIG_PCI 2023-10-02 12:12:05 +02:00
init init, x86: Move mem_encrypt_init() into arch_cpu_finalize_init() 2023-08-09 12:25:43 +02:00
ipc ipc: replace costly bailout check in sysvipc_find_ipc() 2023-02-24 14:01:18 +01:00
kernel kexec: fix a memory leak in crash_shrink_memory() 2023-10-02 12:12:02 +02:00
lib lib/ts_bm: reset initial match offset for every block of text 2023-10-02 12:12:03 +02:00
mm mm: make wait_on_page_writeback() wait for multiple pending writebacks 2023-10-02 12:11:59 +02:00
net netlink: Add __sock_i_ino() for __netlink_diag_dump(). 2023-10-02 12:12:03 +02:00
samples samples/bpf: Fix buffer overflow in tcp_basertt 2023-10-02 12:12:01 +02:00
scripts scripts/tags.sh: Resolve gtags empty index generation 2023-10-02 12:12:00 +02:00
security ima: Fix build warnings 2023-10-02 12:12:01 +02:00
sound ASoC: imx-audmix: check return value of devm_kasprintf() 2023-10-02 12:12:05 +02:00
tools perf dwarf-aux: Fix off-by-one in die_get_varname() 2023-10-02 12:12:05 +02:00
ubuntu
usr
virt KVM: Destroy target device if coalesced MMIO unregistration fails 2023-05-12 17:15:09 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS Remove DECnet support from kernel 2023-09-01 14:48:44 +02:00
Makefile Linux 5.4.250 2023-10-02 12:11:59 +02:00
README
Ubuntu.md UBUNTU: [Packaging] update Ubuntu.md 2021-11-05 16:43:42 +01:00
dropped.txt
snapcraft.yaml
update-dkms-versions UBUNTU: [Packaging] resync update-dkms-versions helper 2023-08-09 12:19:04 +02:00
update-version-dkms UBUNTU: [Packaging] switch to kernel-versions 2021-09-20 18:50:21 +02:00

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.