Re: [PATCH 4.9 000/107] 4.9.120-stable review

From: Sebastian Gottschall
Date: Wed Aug 15 2018 - 14:27:04 EST


if i fix the other error (can be reproduced with disable smp on standard i386 build)

another raises up again related to smp. to be serious. this patchset of x86 patches is absolutelly broken and put together without any care. not a simple compile test has been done

sorry for beeing a little bit upset. i'm sure i will find other bugs if i go deeper


arch/x86/kernel/cpu/amd.c: In function 'early_init_amd':
arch/x86/kernel/cpu/amd.c:660:2: error: implicit declaration of function 'amd_get_topology_early'; did you mean 'cpu_smt_check_topology_early'? [-Werror=implicit-function-declaration]
 amd_get_topology_early(c);
 ^~~~~~~~~~~~~~~~~~~~~~
 cpu_smt_check_topology_early

Am 15.08.2018 um 19:52 schrieb Sven Joachim:
On 2018-08-15 19:01 +0200, Sebastian Gottschall wrote:

nother issue seen on xscale and as it affects all non SMP configured kernels


kernel/cpu.c: In function 'boot_cpu_hotplug_init':
kernel/cpu.c:2204:28: error: 'struct cpuhp_cpu_state' has no member
named 'booted_once'
 this_cpu_write(cpuhp_state.booted_once, true);
I got a different error in 4.9.120 with CONFIG_SMP unset:

,----
| CC drivers/rtc/rtc-cmos.o
| In file included from drivers/rtc/rtc-cmos.c:45:0:
| ./arch/x86/include/asm/i8259.h: In function 'inb_pic':
| ./arch/x86/include/asm/i8259.h:32:24: error: implicit declaration of function 'inb' [-Werror=implicit-function-declaration]
| unsigned char value = inb(port);
| ^~~
| ./arch/x86/include/asm/i8259.h: In function 'outb_pic':
| ./arch/x86/include/asm/i8259.h:45:2: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration]
| outb(value, port);
| ^~~~
| In file included from ./include/linux/mc146818rtc.h:14:0,
| from drivers/rtc/rtc-cmos.c:49:
| ./arch/x86/include/asm/io.h: At top level:
| ./arch/x86/include/asm/io.h:277:20: warning: conflicting types for 'outb'
| static inline void out##bwl(unsigned type value, int port) \
| ^
| ./arch/x86/include/asm/io.h:316:1: note: in expansion of macro 'BUILDIO'
| BUILDIO(b, b, char)
| ^~~~~~~
| ./arch/x86/include/asm/io.h:277:20: error: static declaration of 'outb' follows non-static declaration
| static inline void out##bwl(unsigned type value, int port) \
| ^
| ./arch/x86/include/asm/io.h:316:1: note: in expansion of macro 'BUILDIO'
| BUILDIO(b, b, char)
| ^~~~~~~
| In file included from drivers/rtc/rtc-cmos.c:45:0:
| ./arch/x86/include/asm/i8259.h:45:2: note: previous implicit declaration of 'outb' was here
| outb(value, port);
| ^~~~
| In file included from ./include/linux/mc146818rtc.h:14:0,
| from drivers/rtc/rtc-cmos.c:49:
| ./arch/x86/include/asm/io.h:283:29: error: conflicting types for 'inb'
| static inline unsigned type in##bwl(int port) \
| ^
| ./arch/x86/include/asm/io.h:316:1: note: in expansion of macro 'BUILDIO'
| BUILDIO(b, b, char)
| ^~~~~~~
| In file included from drivers/rtc/rtc-cmos.c:45:0:
| ./arch/x86/include/asm/i8259.h:32:24: note: previous implicit declaration of 'inb' was here
| unsigned char value = inb(port);
`----

Cheers,
Sven