Re: [GIT PULL] probes updates for v6.10

From: Google
Date: Sat May 18 2024 - 10:38:38 EST


On Fri, 17 May 2024 19:12:04 -0700
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Wed, 15 May 2024 at 17:52, Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
> >
> > Probes updates for v6.10:
>
> Grr,
>
> This doesn't even build right.
>
> Yes, it builds cleanly in an allmoconfig build, which is what I did
> before I pushed out.
>
> But after pushing out, I notice that it doesn't build in more limited
> configurations and with clang, because:
>
> > Stephen Brennan (1):
> > kprobe/ftrace: bail out if ftrace was killed
>
> This is no longer valid C code, and hasn't been for a long long while:
>
> void kprobe_ftrace_kill()
> {
> kprobe_ftrace_disabled = true;
> }
>
> we require proper prototypes, not some ancient per-ANSI K&R syntax.
>
> It turns out that gcc apparently still accepts these things, but it
> really shouldn't. But with a clang build, you get a big error:
>
> kernel/kprobes.c:1140:24: error: a function declaration without a
> prototype is deprecated in all versions of C
> [-Werror,-Wstrict-prototypes]
>
> and the reason it didn't get noticed in -next is that this commit had
> apparently not *been* in linux-next.
>
> Dammit, that's now how any of this is supposed to work.
>
> Why was this untested crap sent to me?

Oops, sorry, I missed when I built it in local.
Ah, and I missed to build it with W=1.

I appologies that and built in W=1 build test.



>
> Linus


--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>