]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
include/xen/xen.h: Rename MAX_GUEST_CMDLINE to GRUB_XEN_MAX_GUEST_CMDLINE
authorAaron Rainbolt <arraybolt3@gmail.com>
Thu, 14 Aug 2025 01:36:43 +0000 (20:36 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 14 Aug 2025 19:21:42 +0000 (21:21 +0200)
The include/xen/xen.h header was using an overly generic name to refer
to the maximum length of the command line passed from Xen to a guest.
Rename it to avoid confusion or conflicts in the future.

Signed-off-by: Aaron Rainbolt <arraybolt3@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/xen/xen.h

index 692f97a5bcf00c85ef592d9b86756db8f1dc3823..fdf0fc44884c2eca1599e4c99ec4a9ee61428a95 100644 (file)
@@ -823,8 +823,8 @@ struct start_info {
                                 /* (PFN of pre-loaded module if           */
                                 /*  SIF_MOD_START_PFN set in flags).      */
     unsigned long mod_len;      /* Size (bytes) of pre-loaded module.     */
-#define MAX_GUEST_CMDLINE 1024
-    int8_t cmd_line[MAX_GUEST_CMDLINE];
+#define GRUB_XEN_MAX_GUEST_CMDLINE 1024
+    int8_t cmd_line[GRUB_XEN_MAX_GUEST_CMDLINE];
     /* The pfn range here covers both page table and p->m table frames.   */
     unsigned long first_p2m_pfn;/* 1st pfn forming initial P->M table.    */
     unsigned long nr_p2m_frames;/* # of pfns forming initial P->M table.  */