Skip to content

Commit 8c5477e

Browse files
Zhenzhong DuanKAGA-KOKO
authored andcommitted
x86, boot: Remove multiple copy of static function sanitize_boot_params()
Kernel build warns: 'sanitize_boot_params' defined but not used [-Wunused-function] at below files: arch/x86/boot/compressed/cmdline.c arch/x86/boot/compressed/error.c arch/x86/boot/compressed/early_serial_console.c arch/x86/boot/compressed/acpi.c That's becausethey each include misc.h which includes a definition of sanitize_boot_params() via bootparam_utils.h. Remove the inclusion from misc.h and have the c file including bootparam_utils.h directly. Signed-off-by: Zhenzhong Duan <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 449f328 commit 8c5477e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

arch/x86/boot/compressed/misc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "pgtable.h"
1818
#include "../string.h"
1919
#include "../voffset.h"
20+
#include <asm/bootparam_utils.h>
2021

2122
/*
2223
* WARNING!!

arch/x86/boot/compressed/misc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <asm/page.h>
2424
#include <asm/boot.h>
2525
#include <asm/bootparam.h>
26-
#include <asm/bootparam_utils.h>
2726

2827
#define BOOT_CTYPE_H
2928
#include <linux/acpi.h>

0 commit comments

Comments
 (0)