linux-stable/include
Andy Shevchenko 4f427ca9ed tracing: Mark binary printing functions with __printf() attribute
[ Upstream commit 196a062641 ]

Binary printing functions are using printf() type of format, and compiler
is not happy about them as is:

kernel/trace/trace.c:3292:9: error: function ‘trace_vbprintk’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
kernel/trace/trace_seq.c:182:9: error: function ‘trace_seq_bprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]

Fix the compilation errors by adding __printf() attribute.

While at it, move existing __printf() attributes from the implementations
to the declarations. IT also fixes incorrect attribute parameters that are
used for trace_array_printk().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250321144822.324050-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-29 11:02:04 +02:00
..
acpi
asm-generic
clocksource
crypto
cxl
drm drm/fbdev-dma: Support struct drm_driver.fbdev_probe 2025-05-22 14:29:53 +02:00
dt-bindings
keys
kunit
kvm
linux tracing: Mark binary printing functions with __printf() attribute 2025-05-29 11:02:04 +02:00
math-emu
media
memory
misc
net net_sched: Flush gso_skb list too during ->change() 2025-05-22 14:29:39 +02:00
pcmcia
ras
rdma
rv
scsi
soc soc: qcom: ice: introduce devm_of_qcom_ice_get 2025-05-02 07:58:52 +02:00
sound ALSA: ump: Fix a typo of snd_ump_stream_msg_device_info 2025-05-22 14:29:41 +02:00
target
trace block: remove the ioprio field from struct request 2025-05-02 07:58:54 +02:00
uapi iommufd: Extend IOMMU_GET_HW_INFO to report PASID capability 2025-05-29 11:02:04 +02:00
ufs scsi: ufs: Introduce quirk to extend PA_HIBERN8TIME for UFS devices 2025-05-29 11:01:58 +02:00
vdso
video
xen xen/mcelog: Add __nonstring annotations for unterminated strings 2025-04-20 10:15:12 +02:00