From: Simon Glass <simon.glass@canonical.com> The parse_pxefile_top() function takes a base parameter but never uses it. Remove this dead parameter. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- boot/pxe_parse.c | 2 +- boot/pxe_utils.c | 4 ++-- include/pxe_utils.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/pxe_parse.c b/boot/pxe_parse.c index 52216c0b7ef..3d113a6fd83 100644 --- a/boot/pxe_parse.c +++ b/boot/pxe_parse.c @@ -691,7 +691,7 @@ static int parse_label(char **c, struct pxe_menu *cfg) */ #define MAX_NEST_LEVEL 16 -int parse_pxefile_top(struct pxe_context *ctx, char *p, ulong base, +int parse_pxefile_top(struct pxe_context *ctx, char *p, struct pxe_menu *cfg, int nest_level) { struct token t; diff --git a/boot/pxe_utils.c b/boot/pxe_utils.c index d2ba0412906..b5320f2f6cf 100644 --- a/boot/pxe_utils.c +++ b/boot/pxe_utils.c @@ -1013,7 +1013,7 @@ struct pxe_menu *parse_pxefile(struct pxe_context *ctx, struct abuf *buf) if (!cfg) return NULL; - r = parse_pxefile_top(ctx, abuf_data(buf), abuf_addr(buf), cfg, 1); + r = parse_pxefile_top(ctx, abuf_data(buf), cfg, 1); if (r < 0) { pxe_menu_uninit(cfg); @@ -1069,7 +1069,7 @@ int pxe_parse_include(struct pxe_context *ctx, const struct pxe_include *inc, int ret; buf = map_sysmem(addr, 0); - ret = parse_pxefile_top(ctx, buf, addr, inc->cfg, inc->nest_level); + ret = parse_pxefile_top(ctx, buf, inc->cfg, inc->nest_level); unmap_sysmem(buf); return ret; diff --git a/include/pxe_utils.h b/include/pxe_utils.h index 9682956932b..11be00da199 100644 --- a/include/pxe_utils.h +++ b/include/pxe_utils.h @@ -510,7 +510,7 @@ int pxe_setup_label(struct pxe_context *ctx, struct pxe_label *label); * * Returns 1 on success, < 0 on error. */ -int parse_pxefile_top(struct pxe_context *ctx, char *p, ulong base, +int parse_pxefile_top(struct pxe_context *ctx, char *p, struct pxe_menu *cfg, int nest_level); /** -- 2.43.0