Skip to content

Broken BFS in 4.4/master & 4.4/bfs branches #45

Closed

Description

@sergiall

CC kernel/rcu/tree.o
CC mm/dmapool.o
CC arch/x86/kernel/i8237.o
CC arch/x86/kernel/stacktrace.o
CC mm/hugetlb.o
CC arch/x86/kernel/reboot.o
LD kernel/rcu/built-in.o
CC kernel/sched/bfs.o
CC arch/x86/kernel/early-quirks.o
kernel/sched/bfs.c: In function ‘prepare_task_switch’:
kernel/sched/bfs.c:1904:2: error: too few arguments to function ‘trace_sched_switch’
trace_sched_switch(prev, next);
^
In file included from include/trace/events/tlb.h:8:0,
from ./arch/x86/include/asm/mmu_context.h:8,
from kernel/sched/bfs.c:37:
include/linux/tracepoint.h:195:21: note: declared here
static inline void trace_##name(proto)
^
include/linux/tracepoint.h:358:3: note: in expansion of macro ‘__DECLARE_TRACE’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1,
^
include/linux/tracepoint.h:492:2: note: in expansion of macro ‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/trace/events/sched.h:124:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(sched_switch,
^
kernel/sched/bfs.c: In function ‘__schedule’:
kernel/sched/bfs.c:3438:41: error: ‘PREEMPT_ACTIVE’ undeclared (first use in this function)
if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) {
^
kernel/sched/bfs.c:3438:41: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/bfs.c: In function ‘sched_submit_work’:
kernel/sched/bfs.c:3560:25: error: ‘PREEMPT_ACTIVE’ undeclared (first use in this function)
(preempt_count() & PREEMPT_ACTIVE) ||
^
kernel/sched/bfs.c: In function ‘preempt_schedule_common’:
kernel/sched/bfs.c:3620:3: error: implicit declaration of function ‘preempt_active_enter’ [-Werror=implicit-function-declaration]
preempt_active_enter();
^
kernel/sched/bfs.c:3622:3: error: implicit declaration of function ‘preempt_active_exit’ [-Werror=implicit-function-declaration]
preempt_active_exit();
^
kernel/sched/bfs.c: In function ‘preempt_schedule_notrace’:
kernel/sched/bfs.c:3678:23: error: ‘PREEMPT_ACTIVE’ undeclared (first use in this function)
__preempt_count_add(PREEMPT_ACTIVE + PREEMPT_DISABLE_OFFSET);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target 'kernel/sched/bfs.o' failed
make[3]: *** [kernel/sched/bfs.o] Error 1
scripts/Makefile.build:403: recipe for target 'kernel/sched' failed
make[2]: *** [kernel/sched] Error 2

My env:
System: Host: F-Box Kernel: 4.4.0-zen-040400-generic++ i686 (32 bit gcc: 5.3.1) Desktop: N/A
Distro: Ubuntu 16.04 xenial
Machine: System: TOSHIBA (portable) product: Satellite PRO L20 v: PSL25E-00G018GR
Mobo: TOSHIBA model: Satellite PRO L20 Bios: TOSHIBA v: V1.70 date: 12/25/08
CPU: Single core Intel Pentium M (-UP-) cache: 2048 KB
flags: (nx pae sse sse2) bmips: 2129 speed/max: 1067/1733 MHz
Graphics: Card: Intel Mobile 915GM/GMS/910GML Express Graphics Controller bus-ID: 00:02.0
Display Server: X.Org 1.17.3 driver: intel Resolution: [email protected]
GLX Renderer: Mesa DRI Intel 915GM x86/MMX/SSE2
GLX Version: 2.1 Mesa 11.1.0 Direct Rendering: Yes
Audio: Card Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller
driver: snd_intel8x0 ports: 1c00 18c0 bus-ID: 00:1e.2
Sound: Advanced Linux Sound Architecture v: k4.4.0-zen-040400-generic++
Network: Card-1: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
driver: 8139too v: 0.9.28 port: 3000 bus-ID: 06:02.0
IF: eth0 state: unknown speed: 100 Mbps duplex: full mac:
Card-2: Intel PRO/Wireless 2200BG [Calexico2] Network Connection bus-ID: 06:04.0
IF: N/A state: N/A mac: N/A
Drives: HDD Total Size: 500.1GB (28.8% used) ID-1: USB /dev/sda model: 00LPVX size: 500.1GB temp: 0C
Partition: ID-1: / size: 25G used: 14G (55%) fs: ext4 dev: /dev/sda6
ID-2: swap-1 size: 4.29GB used: 0.14GB (3%) fs: swap dev: /dev/sda5
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 71.0C mobo: N/A
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 166 Uptime: 8:16 Memory: 706.4/1498.1MB
Init: SysVinit rc: OpenRC runlevel: default Gcc sys: 5.3.1
Client: Shell (bash 4.3.421) inxi: 2.2.28

It fixable?

Activity

  1. added a commit that references this issue on Jan 22, 2016
    d6ec250
  2. added a commit that references this issue on May 19, 2018
  3. 22 remaining items

  4. added a commit that references this issue on Nov 20, 2023
  5. added a commit that references this issue on Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions