linux/arch
Randy Dunlap c15b5fc054 ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK
When CONFIG_PRINTK is not set, the CMPXCHG_BUGCHECK() macro calls
_printk(), but _printk() is a static inline function, not available
as an extern.
Since the purpose of the macro is to print the BUGCHECK info,
make this config option depend on PRINTK.

Fixes multiple occurrences of this build error:

../include/linux/printk.h:208:5: error: static declaration of '_printk' follows non-static declaration
  208 | int _printk(const char *s, ...)
      |     ^~~~~~~
In file included from ../arch/ia64/include/asm/cmpxchg.h:5,
../arch/ia64/include/uapi/asm/cmpxchg.h:146:28: note: previous declaration of '_printk' with type 'int(const char *, ...)'
  146 |                 extern int _printk(const char *fmt, ...);

Cc: linux-ia64@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Chris Down <chris@chrisdown.name>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
2021-10-04 10:45:58 +02:00
..
alpha asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
arc asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
arm printk changes for 5.15 2021-09-01 18:41:13 -07:00
arm64 Devicetree updates for v5.15: 2021-09-01 18:34:51 -07:00
csky
h8300 asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
hexagon
ia64 ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK 2021-10-04 10:45:58 +02:00
m68k m68knommu: collection of fixes for 5.15 2021-09-01 18:31:45 -07:00
microblaze asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
mips printk changes for 5.15 2021-09-01 18:41:13 -07:00
nds32 asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
nios2 asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
openrisc printk changes for 5.15 2021-09-01 18:41:13 -07:00
parisc asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
powerpc printk changes for 5.15 2021-09-01 18:41:13 -07:00
riscv Devicetree updates for v5.15: 2021-09-01 18:34:51 -07:00
s390 asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
sh asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
sparc asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
um printk changes for 5.15 2021-09-01 18:41:13 -07:00
x86 printk changes for 5.15 2021-09-01 18:41:13 -07:00
xtensa asm-generic changes for 5.15 2021-09-01 15:13:02 -07:00
.gitignore
Kconfig