Commit 2e0168a7 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Torvalds
Browse files

ARM: mark setup_machine_tags() stub as __init __noreturn

This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common
place.  We need to eliminate potential issues beforehand.

If it is enabled for arm, Clang build results in the following modpost

  WARNING: vmlinux.o(.text+0x1124): Section mismatch in reference from the function setup_machine_tags() to the function .init.text:early_print()
  The function setup_machine_tags() references the function __init early_print().
  This is often because setup_machine_tags lacks a __init annotation or the annotation of early_print is wrong.


Signed-off-by: default avatarMasahiro Yamada <>
Cc: Arnd Bergmann <>
Cc: Benjamin Herrenschmidt <>
Cc: Boris Brezillon <>
Cc: Borislav Petkov <>
Cc: Brian Norris <>
Cc: Christophe Leroy <>
Cc: David Woodhouse <>
Cc: Heiko Carstens <>
Cc: "H. Peter Anvin" <>
Cc: Ingo Molnar <>
Cc: Marek Vasut <>
Cc: Mark Rutland <>
Cc: Mathieu Malaterre <>
Cc: Miquel Raynal <>
Cc: Paul Mackerras <>
Cc: Ralf Baechle <>
Cc: Richard Weinberger <>
Cc: Russell King <>
Cc: Stefan Agner <>
Cc: Thomas Gleixner <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent e9ea596c
......@@ -5,7 +5,7 @@ void convert_to_tag_list(struct tag *tags);
const struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer,
unsigned int machine_nr);
static inline const struct machine_desc *
static inline const struct machine_desc * __init __noreturn
setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr)
early_print("no ATAGS support: can't continue\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment