Skip to contentSkip to conversation

xen/build: remove unneeded enumeration in clean-files

PATCH Superseded Juergen Gross 2 participants 2 messages Jul 11, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/build: remove unneeded enumeration in clean-files

Enumerating a file from $(targets) in $(clean-files) isn't needed.

Remove xen/include/xen/hypercall-defs.h from $(clean-files).

Fixes eca1f00d0227 ("xen: generate hypercall interface related code")
---
 xen/include/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/Makefile +1 -1
index 39d9f5556c..fa0d454ab7 100644
@@ -225,4 +225,4 @@ all: lib-x86-all
 endif
 
 clean-files := compat config generated headers*.chk xen/lib/x86/cpuid-autogen.h
-clean-files += xen/hypercall-defs.h hypercall-defs.i
+clean-files += hypercall-defs.i
Signature · 1 line
2.35.3
#1 lore raw
Quoted 16 lines · Juergen Gross

Enumerating a file from $(targets) in $(clean-files) isn't needed.

Remove xen/include/xen/hypercall-defs.h from $(clean-files).

Fixes eca1f00d0227 ("xen: generate hypercall interface related code")
---
 xen/include/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/Makefile +0 -0
index 39d9f5556c..fa0d454ab7 100644

xen/include/Makefile all: lib-x86-all · line 228

Quoted 5 lines
xen/include/Makefile +1 -1
@@ -225,4 +225,4 @@ all: lib-x86-all
 endif
 
 clean-files := compat config generated headers*.chk xen/lib/x86/cpuid-autogen.h
-clean-files += xen/hypercall-defs.h hypercall-defs.i
+clean-files += hypercall-defs.i

The patch title is a bit too broad and only correct a recent patch. It doesn't really matter I think if rm -f tries to remove the same file twice, but maybe this patch should actually do what it is explained in the description ;-).
There is also "headers*.chk" that is listed in both $(targets) and $(clean-files) which could be unlisted from the latter as well.

Thanks,

Signature · 1 line
Anthony PERARD