Skip to contentSkip to conversation

xen/gen_hypercall: Leave a breadcrumb in xen-hypercall-defs.h

PATCH In review Andrew Cooper 2 participants 2 messages Jan 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/gen_hypercall: Leave a breadcrumb in xen-hypercall-defs.h

When Cscope-ing through Xen, one occasionally finds themselves in xen-hypercall-defs.h and needing to find the originating file.

This is substantially magic, and even reading the Makefile that produces xen-hypercall-defs.h is of little help if you're not aware of of the %.i : %.c pattern rule, and that the header is generated from a .c file in practice.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Juergen Gross <[email protected]>

---
 xen/scripts/gen_hypercall.awk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/scripts/gen_hypercall.awk +1 -1
index b544fe1c4df7..c137f8fc4e6d 100644
@@ -4,7 +4,7 @@
 BEGIN {
     printf("#ifndef XEN_HYPERCALL_DEFS_H\n");
     printf("#define XEN_HYPERCALL_DEFS_H\n\n");
-    printf("/* Generated file, do not edit! */\n\n");
+    printf("/* Automatically generated from xen/include/hypercall-defs.c - do not edit! */\n\n");
     e = 0;
     n = 0;
     p = 0;
Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Andrew Cooper

When Cscope-ing through Xen, one occasionally finds themselves in xen-hypercall-defs.h and needing to find the originating file.

This is substantially magic, and even reading the Makefile that produces xen-hypercall-defs.h is of little help if you're not aware of of the %.i : %.c pattern rule, and that the header is generated from a .c file in practice.

No functional change.

Juergen