twx-linux/include
Geert Uytterhoeven b37cafacbf ceph: Use no_printk() helper
When printk-indexing is enabled, each printk() invocation emits a
pi_entry structure.  This is even true when the call is protected by an
always-false check: while the actual code to print the message is
optimized out by the compiler, the pi_entry structure is still emitted.

Fix this by replacing "if (0) printk(...)" constructs by calls to the
no_printk() helper.

This reduces the size of an arm64 kernel with CONFIG_PRINTK_INDEX=y and
CONFIG_CEPH_FS=y by ca. 4 KiB.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Chris Down <chris@chrisdown.name>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/a21767eccb823435a7f18cdf115d7d572b4e945d.1709127473.git.geert+renesas@glider.be
Signed-off-by: Petr Mladek <pmladek@suse.com>
2024-03-19 16:11:42 +01:00
..
acpi
asm-generic hardening updates for v6.9-rc1 2024-03-12 14:49:30 -07:00
clocksource
crypto
drm A moderatly busy cycle for development this time around. 2024-03-12 15:18:34 -07:00
dt-bindings ARM: SoC drivers for 6.9 2024-03-12 10:35:24 -07:00
keys
kunit
kvm
linux ceph: Use no_printk() helper 2024-03-19 16:11:42 +01:00
math-emu
media
memory
misc
net Networking changes for 6.9. 2024-03-12 17:44:08 -07:00
pcmcia
ras
rdma
rv
scsi
soc Qualcomm driver updates for v6.9 2024-03-04 16:52:37 +01:00
sound
target
trace Networking changes for 6.9. 2024-03-12 17:44:08 -07:00
uapi lsm/stable-6.9 PR 20240312 2024-03-12 20:03:34 -07:00
ufs
vdso
video
xen