]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: make mtd_test.c a separate module
authorArnd Bergmann <arnd@arndb.de>
Wed, 29 May 2024 09:50:39 +0000 (11:50 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Jul 2024 09:56:25 +0000 (11:56 +0200)
commita5cf054d325e6f362e82fe6d124a1871a4af8174
tree49169a953ea0661a3e566e26c78d99e0916e4e01
parentcf4ccd1c029e60bae787a9c8f75623b37ec2a558
mtd: make mtd_test.c a separate module

This file gets linked into nine different modules, which causes a warning:

scripts/Makefile.build:236: drivers/mtd/tests/Makefile: mtd_test.o is added to multiple modules: mtd_nandbiterrs mtd_oobtest mtd_pagetest mtd_readtest mtd_speedtest mtd_stresstest mtd_subpagetest mtd_torturetest

Make it a separate module instead.

Fixes: a995c792280d ("mtd: tests: rename sources in order to link a helper object")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240529095049.1915393-1-arnd@kernel.org
drivers/mtd/tests/Makefile
drivers/mtd/tests/mtd_test.c