Skip to contentSkip to conversation

tty: serial: samsung: rename to fix build warning

PATCH Superseded Sudip Mukherjee 2 participants 4 messages Oct 18, 2019 – Nov 14, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: serial: samsung: rename to fix build warning

The build of arm allmodconfig gives a warning:

warning: same module names found:
drivers/tty/serial/samsung.ko
drivers/mtd/nand/onenand/samsung.ko

Rename drivers/tty/serial/samsung.c to drivers/tty/serial/samsung_tty.c to fix the warning.

---
 drivers/tty/serial/Makefile                     | 2 +-
 drivers/tty/serial/{samsung.c => samsung_tty.c} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename drivers/tty/serial/{samsung.c => samsung_tty.c} (100%)
drivers/tty/serial/Makefile +1 -1
index 863f47056539..d056ee6cca33 100644
@@ -30,7 +30,7 @@ obj-$(CONFIG_SERIAL_PXA_NON8250) += pxa.o
 obj-$(CONFIG_SERIAL_PNX8XXX) += pnx8xxx_uart.o
 obj-$(CONFIG_SERIAL_SA1100) += sa1100.o
 obj-$(CONFIG_SERIAL_BCM63XX) += bcm63xx_uart.o
-obj-$(CONFIG_SERIAL_SAMSUNG) += samsung.o
+obj-$(CONFIG_SERIAL_SAMSUNG) += samsung_tty.o
 obj-$(CONFIG_SERIAL_MAX3100) += max3100.o
 obj-$(CONFIG_SERIAL_MAX310X) += max310x.o
 obj-$(CONFIG_SERIAL_IP22_ZILOG) += ip22zilog.o
drivers/tty/serial/samsung_tty.c renamed from drivers/tty/serial/samsung.c +0 -0
similarity index 100%
rename from drivers/tty/serial/samsung.c
rename to drivers/tty/serial/samsung_tty.c
Signature · 1 line
2.11.0
#1 lore raw
Quoted 36 lines · Sudip Mukherjee

The build of arm allmodconfig gives a warning:

warning: same module names found:
drivers/tty/serial/samsung.ko
drivers/mtd/nand/onenand/samsung.ko

Rename drivers/tty/serial/samsung.c to drivers/tty/serial/samsung_tty.c to fix the warning.

---
 drivers/tty/serial/Makefile                     | 2 +-
 drivers/tty/serial/{samsung.c => samsung_tty.c} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename drivers/tty/serial/{samsung.c => samsung_tty.c} (100%)
drivers/tty/serial/Makefile +1 -1
index 863f47056539..d056ee6cca33 100644
@@ -30,7 +30,7 @@ obj-$(CONFIG_SERIAL_PXA_NON8250) += pxa.o
 obj-$(CONFIG_SERIAL_PNX8XXX) += pnx8xxx_uart.o
 obj-$(CONFIG_SERIAL_SA1100) += sa1100.o
 obj-$(CONFIG_SERIAL_BCM63XX) += bcm63xx_uart.o
-obj-$(CONFIG_SERIAL_SAMSUNG) += samsung.o
+obj-$(CONFIG_SERIAL_SAMSUNG) += samsung_tty.o
 obj-$(CONFIG_SERIAL_MAX3100) += max3100.o
 obj-$(CONFIG_SERIAL_MAX310X) += max310x.o
 obj-$(CONFIG_SERIAL_IP22_ZILOG) += ip22zilog.o
drivers/tty/serial/samsung_tty.c renamed from drivers/tty/serial/samsung.c +0 -0
similarity index 100%
rename from drivers/tty/serial/samsung.c
rename to drivers/tty/serial/samsung_tty.c
Signature · 1 line
2.11.0

What are you going to break if you rename this module?

What configs enable both of these other than allmodconfig? Why rename the tty driver and not the mtd driver? Why not both?

thanks,

greg k-h

#2 lore raw

Hi Greg,

Quoted 11 lines · Greg Kroah-Hartman
Quoted 9 lines · Sudip Mukherjee

The build of arm allmodconfig gives a warning:

warning: same module names found:
drivers/tty/serial/samsung.ko
drivers/mtd/nand/onenand/samsung.ko

Rename drivers/tty/serial/samsung.c to drivers/tty/serial/samsung_tty.c to fix the warning.

<snip>

Quoted 3 lines

What are you going to break if you rename this module?

hopefully nothing.

Quoted 3 lines

What configs enable both of these other than allmodconfig? Why rename the tty driver and not the mtd driver? Why not both?

But, there is no other config defined which has both enabled. Though I can make one, but since it is not defined and no one else has reported this, I think its better if you discard this. ( I think you already have :) ) or if you want I can
send a v2 renaming both.

Signature · 2 lines
Regards
Sudip
#3 lore raw
Quoted 23 lines · Sudip Mukherjee

Hi Greg,

Quoted 11 lines · Greg Kroah-Hartman
Quoted 9 lines · Sudip Mukherjee

The build of arm allmodconfig gives a warning:

warning: same module names found:
drivers/tty/serial/samsung.ko
drivers/mtd/nand/onenand/samsung.ko

Rename drivers/tty/serial/samsung.c to drivers/tty/serial/samsung_tty.c to fix the warning.

<snip>

Quoted 3 lines

What are you going to break if you rename this module?

hopefully nothing.

Quoted 1 line
Quoted 8 lines
Quoted 2 lines

What configs enable both of these other than allmodconfig? Why rename the tty driver and not the mtd driver? Why not both?

But, there is no other config defined which has both enabled. Though I can make one, but since it is not defined and no one else has reported this, I think its better if you discard this. ( I think you already have :) ) or if you want I can
send a v2 renaming both.

Let's rename both and cause equal pain :)

thanks,

greg k-h