[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200713162644.56a2e7a1@oasis.local.home>
Date: Mon, 13 Jul 2020 16:26:44 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org, mhiramat@...nel.org,
bristot@...hat.com, jbaron@...mai.com,
torvalds@...ux-foundation.org, tglx@...utronix.de,
mingo@...nel.org, namit@...are.com, hpa@...or.com, luto@...nel.org,
ard.biesheuvel@...aro.org, jpoimboe@...hat.com,
pbonzini@...hat.com, mathieu.desnoyers@...icios.com,
linux@...musvillemoes.dk
Subject: Re: [PATCH v6 11/17] static_call: Simple self-test
On Sat, 11 Jul 2020 12:27:02 +0200
Peter Zijlstra <peterz@...radead.org> wrote:
> > static int __init test_static_call_init(void)
> > {
> > int i;
> >
> > for (i = 0; i < ARRAY_SIZE(static_call_data); i++ ) {
> > if (static_call_data[i].func)
> > static_call_update(sc_selftest, static_call_data[i].func);
> > WARN_ON(run_static_call(static_call_data[i].val) != static_call_data[i].expect);
> > }
> >
> > return 0;
> > }
>
> Lots of compile errors with that, fixed them all :-)
Hey, I wrote that all without compiling it. I would have been surprised
if it was clean.
-- Steve
Powered by blists - more mailing lists