summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorPeng Jiang <jiang.peng9@zte.com.cn>2025-06-20 08:41:04 +0800
committerJuergen Gross <jgross@suse.com>2025-07-14 09:34:54 +0200
commitb7efeb081ed3b80c6af38c285f5c3b5d15c560e9 (patch)
tree34bc90b138908a039a2b90bf34d0e6072a3c5112 /scripts/lib/kdoc/kdoc_parser.py
parent347e9f5043c89695b01e66b3ed111755afcf1911 (diff)
xen/xenbus: fix W=1 build warning in xenbus_va_dev_error function
This patch fixes a W=1 format-string warning reported by GCC 12.3.0 by annotating xenbus_switch_fatal() and xenbus_va_dev_error() with the __printf attribute. The attribute enables compile-time validation of printf-style format strings in these functions. The original warning trace: drivers/xen/xenbus/xenbus_client.c:304:9: warning: function 'xenbus_va_dev_error' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] Signed-off-by: Peng Jiang <jiang.peng9@zte.com.cn> Reviewed-by: Juergen Gross <jgross@suse.com> Message-ID: <20250620084104786r5xoR16_AmYZMJLnno3_Q@zte.com.cn> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions