[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201030160242.GC20201@alley>
Date: Fri, 30 Oct 2020 17:02:42 +0100
From: Petr Mladek <pmladek@...e.com>
To: Rasmus Villemoes <linux@...musvillemoes.dk>
Cc: Shuah Khan <shuah@...nel.org>, Kees Cook <keescook@...omium.org>,
Willy Tarreau <w@....eu>, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
Arpitha Raghunandan <98.arpi@...il.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Brendan Higgins <brendanhiggins@...gle.com>
Subject: Re: [PATCH 2/4] kselftest_module.h: unconditionally expand the
KSTM_MODULE_GLOBALS() macro
On Sun 2020-10-25 22:48:40, Rasmus Villemoes wrote:
> Two out of three users of the kselftest_module.h header
> manually define the failed_tests/total_tests variables instead of
> making use of the KSTM_MODULE_GLOBALS() macro. However, instead of
> just replacing those definitions with an invocation of that macro,
> just unconditionally define them in the header file itself.
>
> A coming change will add a few more global variables, and at least one
> of those will be referenced from kstm_report() - however, that's not
> possible currently, since when the definition is postponed until the
> test module invokes KSTM_MODULE_GLOBALS(), the variable is not defined
> by the time the compiler parses kstm_report().
>
> Signed-off-by: Rasmus Villemoes <linux@...musvillemoes.dk>
Reviewed-by: Petr Mladek <pmladek@...e.com>
Best Regards,
Petr
Powered by blists - more mailing lists