xen: fix header guard generation for asm-generic headers

Dashes were wrongly not translated into underscores, thus generating
an unexpected guard identifier.

Fixes: ee79f37831 ("xen: add header guards to generated asm generic headers")
Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Nicola Vetrini authored and Stefano Stabellini committed 2025-06-21 10:54:54 -07:00
1 parent ee79f37831
commit eb61a4fb14
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ unwanted := $(filter-out $(generic-y) $(generated-y),$(old-headers))
quiet_cmd_wrap = WRAP $@
cmd_wrap = \
arch=$$(echo $@ | sed -n 's:.*arch/\([^/]*\)/.*:\1:p' | tr a-z A-Z); \
upper=$$(echo $*.h | tr a-z A-Z | tr '/.' '__'); \
upper=$$(echo $*.h | tr a-z A-Z | tr '/.-' '__'); \
echo "\#ifndef $${arch}_GENERIC_$${upper}" > $@.new; \
echo "\#define $${arch}_GENERIC_$${upper}" >> $@.new; \
echo "\#include <asm-generic/$*.h>" >> $@.new; \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.