[PATCH v2] rtc: Rename lib_test to test_rtc_lib

Geert Uytterhoeven posted 1 patch 3 months, 1 week ago
drivers/rtc/Makefile                       | 2 +-
drivers/rtc/{lib_test.c => test_rtc_lib.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename drivers/rtc/{lib_test.c => test_rtc_lib.c} (100%)
[PATCH v2] rtc: Rename lib_test to test_rtc_lib
Posted by Geert Uytterhoeven 3 months, 1 week ago
When compiling the RTC library functions test as a module, the module
has the non-descriptive name "lib_test.ko".  Fix this by renaming it to
"test_rtc_lib.ko".

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
v2:
  - s/rtc_lib_test/test_rtc_lib/.
---
 drivers/rtc/Makefile                       | 2 +-
 drivers/rtc/{lib_test.c => test_rtc_lib.c} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename drivers/rtc/{lib_test.c => test_rtc_lib.c} (100%)

diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index 4619aa2ac4697591..789bddfea99d8fcd 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -15,7 +15,7 @@ rtc-core-$(CONFIG_RTC_INTF_DEV)		+= dev.o
 rtc-core-$(CONFIG_RTC_INTF_PROC)	+= proc.o
 rtc-core-$(CONFIG_RTC_INTF_SYSFS)	+= sysfs.o
 
-obj-$(CONFIG_RTC_LIB_KUNIT_TEST)	+= lib_test.o
+obj-$(CONFIG_RTC_LIB_KUNIT_TEST)	+= test_rtc_lib.o
 
 # Keep the list ordered.
 
diff --git a/drivers/rtc/lib_test.c b/drivers/rtc/test_rtc_lib.c
similarity index 100%
rename from drivers/rtc/lib_test.c
rename to drivers/rtc/test_rtc_lib.c
-- 
2.43.0
Re: [PATCH v2] rtc: Rename lib_test to test_rtc_lib
Posted by Alexandre Belloni 2 months, 2 weeks ago
On Tue, 01 Jul 2025 09:44:39 +0200, Geert Uytterhoeven wrote:
> When compiling the RTC library functions test as a module, the module
> has the non-descriptive name "lib_test.ko".  Fix this by renaming it to
> "test_rtc_lib.ko".
> 
> 

Applied, thanks!

[1/1] rtc: Rename lib_test to test_rtc_lib
      https://git.kernel.org/abelloni/c/0c6f0d77ab62

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com