linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH resend] rtc: Rename lib_test to rtc_lib_test
@ 2025-06-30  7:47 Geert Uytterhoeven
  2025-06-30 13:54 ` Alexandre Belloni
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2025-06-30  7:47 UTC (permalink / raw)
  To: Alexandre Belloni, Brendan Higgins, David Gow, Rae Moar,
	linux-kernel
  Cc: linux-rtc, linux-kselftest, kunit-dev, Geert Uytterhoeven

When compiling the RTC library functions test as a module, the module
has the non-descriptive name "lib_test.ko".  Fix this by adding the
subsystem's name as a prefix.

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

diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index 4619aa2ac4697591..aa08d1c8a32ec23d 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)	+= rtc_lib_test.o
 
 # Keep the list ordered.
 
diff --git a/drivers/rtc/lib_test.c b/drivers/rtc/rtc_lib_test.c
similarity index 100%
rename from drivers/rtc/lib_test.c
rename to drivers/rtc/rtc_lib_test.c
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH resend] rtc: Rename lib_test to rtc_lib_test
  2025-06-30  7:47 [PATCH resend] rtc: Rename lib_test to rtc_lib_test Geert Uytterhoeven
@ 2025-06-30 13:54 ` Alexandre Belloni
  2025-07-01  7:45   ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Belloni @ 2025-06-30 13:54 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Brendan Higgins, David Gow, Rae Moar, linux-kernel, linux-rtc,
	linux-kselftest, kunit-dev

On 30/06/2025 09:47:54+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 adding the
> subsystem's name as a prefix.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>  drivers/rtc/Makefile                       | 2 +-
>  drivers/rtc/{lib_test.c => rtc_lib_test.c} | 0
>  2 files changed, 1 insertion(+), 1 deletion(-)
>  rename drivers/rtc/{lib_test.c => rtc_lib_test.c} (100%)
> 
> diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
> index 4619aa2ac4697591..aa08d1c8a32ec23d 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)	+= rtc_lib_test.o

I'd rather have test_rtc_lib as only the drivers are currently prefixed with
rtc.

>  
>  # Keep the list ordered.
>  
> diff --git a/drivers/rtc/lib_test.c b/drivers/rtc/rtc_lib_test.c
> similarity index 100%
> rename from drivers/rtc/lib_test.c
> rename to drivers/rtc/rtc_lib_test.c
> -- 
> 2.43.0
> 

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH resend] rtc: Rename lib_test to rtc_lib_test
  2025-06-30 13:54 ` Alexandre Belloni
@ 2025-07-01  7:45   ` Geert Uytterhoeven
  0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2025-07-01  7:45 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Brendan Higgins, David Gow, Rae Moar, linux-kernel, linux-rtc,
	linux-kselftest, kunit-dev

Hi Alex.

On Mon, 30 Jun 2025 at 15:54, Alexandre Belloni
<alexandre.belloni@bootlin.com> wrote:
> On 30/06/2025 09:47:54+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 adding the
> > subsystem's name as a prefix.
> >
> > Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> > ---
> >  drivers/rtc/Makefile                       | 2 +-
> >  drivers/rtc/{lib_test.c => rtc_lib_test.c} | 0
> >  2 files changed, 1 insertion(+), 1 deletion(-)
> >  rename drivers/rtc/{lib_test.c => rtc_lib_test.c} (100%)
> >
> > diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
> > index 4619aa2ac4697591..aa08d1c8a32ec23d 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)     += rtc_lib_test.o
>
> I'd rather have test_rtc_lib as only the drivers are currently prefixed with
> rtc.

Your wish is my command; v2 sent.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-01  7:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30  7:47 [PATCH resend] rtc: Rename lib_test to rtc_lib_test Geert Uytterhoeven
2025-06-30 13:54 ` Alexandre Belloni
2025-07-01  7:45   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).