Re: sched_ext: build errors when building flatcg and qmap schedulers

From: Tejun Heo
Date: Tue Oct 01 2024 - 16:46:10 EST


Hello, Vishal.

On Tue, Oct 01, 2024 at 05:08:58PM +0530, Vishal Chourasia wrote:
> Getting build error when trying to compile example schedulers in
> tools/sched_ext/* (logs shared in the end)
>
>
> tools/sched_ext # make -s -k
>
>
> git repo state
> $ git log --oneline
> e32cde8d2bd7d (HEAD -> master, origin/master, origin/HEAD) Merge tag 'sched_ext-for-6.12-rc1-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext
> 190ecde722dd0 Merge tag 'probes-fixes-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
> a5f24c795513f Merge tag 'vfs-6.12-rc2.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
> f801850bc263d netfs: Fix the netfs_folio tracepoint to handle NULL mapping
> 28e8c5c095ec2 netfs: Add folio_queue API documentation
> 2007d28ec0095 bcachefs: rename version -> bversion for big endian builds
> 34820304cc2cd uprobes: fix kernel info leak via "[uprobes]" vma
> 9852d85ec9d49 (tag: v6.12-rc1) Linux 6.12-rc1
>
>
> Adding __weak attribute seems to have fixed it and compilation completed
> with no errors.

Hmm... I don't see the failure here. Maybe toolchain difference? Anyways,
can you send the patch to add __weak?

Thanks.

--
tejun