[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANpmjNNK_viqTuPxywfvZSZSdWGRsb5-u1-oR=RZYTh7YKk8cQ@mail.gmail.com>
Date: Wed, 23 Oct 2024 08:57:02 +0200
From: Marco Elver <elver@...gle.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Arnd Bergmann <arnd@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
Sabyrzhan Tasbolatov <snovitoll@...il.com>, Andrey Konovalov <andreyknvl@...il.com>,
Arnd Bergmann <arnd@...db.de>, linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm: export copy_to_kernel_nofault
On Wed, 23 Oct 2024 at 08:53, Christoph Hellwig <hch@...radead.org> wrote:
>
> On Fri, Oct 18, 2024 at 03:11:09PM +0000, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@...db.de>
> >
> > This symbol is now used on the kasan test module, so it needs to be
> > exported.
> >
> > ERROR: modpost: "copy_to_kernel_nofault" [mm/kasan/kasan_test.ko] undefined!
>
> Meh, it would be great not to export internal helpers just because
> someone wants to test them. Please just mark that test built-in only
> instead.
We have EXPORT_SYMBOL_IF_KUNIT. See include/kunit/visibility.h -
that's more appropriate, and also adjust kasan_test.c to do
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING).
Powered by blists - more mailing lists