[PATCH v1 2/4] x86: cpu: Mark a few functions static

Simon Glass sjg at chromium.org
Wed Oct 9 03:56:44 CEST 2024


On Sat, 5 Oct 2024 at 13:14, Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> Some functions are not used anywhere except the same file
> where they are defined. Mark them static. This helps avoiding
> the compiler warnings:
>
>   arch/x86/cpu/cpu.c:343:6: warning: no previous prototype for ‘detect_coreboot_table_at’ [-Wmissing-prototypes]
>   arch/x86/cpu/mtrr.c:90:6: warning: no previous prototype for ‘mtrr_write_all’ [-Wmissing-prototypes]
>   arch/x86/cpu/i386/interrupt.c:240:6: warning: no previous prototype for ‘__do_irq’ [-Wmissing-prototypes]
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> ---
>  arch/x86/cpu/cpu.c            | 2 +-
>  arch/x86/cpu/i386/interrupt.c | 2 +-
>  arch/x86/cpu/mtrr.c           | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list