* [PATCH v2] s390/con3215: Use macros for hardcoded values
@ 2025-07-09 19:08 Xose Vazquez Perez
2025-07-10 6:35 ` Heiko Carstens
0 siblings, 1 reply; 2+ messages in thread
From: Xose Vazquez Perez @ 2025-07-09 19:08 UTC (permalink / raw)
Cc: Xose Vazquez Perez, Heiko Carstens, Vasily Gorbik,
Alexander Gordeev, Christian Borntraeger, Sven Schnelle, S390 ML
Similar as in sclp_vt220
v2: fix RAW3215_CONSOLE_NAME
Cc: Heiko Carstens <hca@linux.ibm.com> (maintainer:S390 ARCHITECTURE,commit_signer:1/2=50%)
Cc: Vasily Gorbik <gor@linux.ibm.com> (maintainer:S390 ARCHITECTURE)
Cc: Alexander Gordeev <agordeev@linux.ibm.com> (maintainer:S390 ARCHITECTURE)
Cc: Christian Borntraeger <borntraeger@linux.ibm.com> (reviewer:S390 ARCHITECTURE)
Cc: Sven Schnelle <svens@linux.ibm.com> (reviewer:S390 ARCHITECTURE,commit_signer:1/2=50%)
Cc: S390 ML <linux-s390@vger.kernel.org> (open list:S390 ARCHITECTURE
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
Trivial, but uncompiled!!
Now easier to read/find:
$ git grep -E "define.*(DEVICE|CONSOLE)_NAME"
con3215.c:#define RAW3215_DEVICE_NAME "ttyS"
con3215.c:#define RAW3215_CONSOLE_NAME "ttyS"
con3270.c:#define TTY3270_DEVICE_NAME "3270/tty"
con3270.c:#define TTY3270_CONSOLE_NAME "tty3270"
sclp_tty.c:#define SCLP_TTY_DEVICE_NAME "sclp_line"
sclp_con.c:#define SCLP_TTY_CONSOLE_NAME "ttyS"
sclp_vt220.c:#define SCLP_VT220_DEVICE_NAME "ttysclp"
sclp_vt220.c:#define SCLP_VT220_CONSOLE_NAME "ttysclp"
---
drivers/s390/char/con3215.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c
index 56e43d43c713..3dfddf769015 100644
--- a/drivers/s390/char/con3215.c
+++ b/drivers/s390/char/con3215.c
@@ -35,6 +35,12 @@
#include "ctrlchar.h"
+#define RAW3215_MAJOR TTY_MAJOR
+#define RAW3215_MINOR 64
+#define RAW3215_DRIVER_NAME "tty3215"
+#define RAW3215_DEVICE_NAME "ttyS"
+#define RAW3215_CONSOLE_NAME "ttyS"
+
#define NR_3215 1
#define NR_3215_REQ (4*NR_3215)
#define RAW3215_BUFFER_SIZE 65536 /* output buffer size */
@@ -887,7 +893,7 @@ static struct notifier_block on_reboot_nb = {
* The console structure for the 3215 console
*/
static struct console con3215 = {
- .name = "ttyS",
+ .name = RAW3215_CONSOLE_NAME,
.write = con3215_write,
.device = con3215_device,
.flags = CON_PRINTBUFFER,
@@ -1168,10 +1174,10 @@ static int __init tty3215_init(void)
* proc_entry, set_termios, flush_buffer, set_ldisc, write_proc
*/
- driver->driver_name = "tty3215";
- driver->name = "ttyS";
- driver->major = TTY_MAJOR;
- driver->minor_start = 64;
+ driver->driver_name = RAW3215_DRIVER_NAME;
+ driver->name = RAW3215_DEVICE_NAME;
+ driver->major = RAW3215_MAJOR;
+ driver->minor_start = RAW3215_MINOR;
driver->type = TTY_DRIVER_TYPE_SYSTEM;
driver->subtype = SYSTEM_TYPE_TTY;
driver->init_termios = tty_std_termios;
--
2.50.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] s390/con3215: Use macros for hardcoded values
2025-07-09 19:08 [PATCH v2] s390/con3215: Use macros for hardcoded values Xose Vazquez Perez
@ 2025-07-10 6:35 ` Heiko Carstens
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Carstens @ 2025-07-10 6:35 UTC (permalink / raw)
To: Xose Vazquez Perez
Cc: Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
Sven Schnelle, S390 ML
On Wed, Jul 09, 2025 at 09:08:09PM +0200, Xose Vazquez Perez wrote:
> Similar as in sclp_vt220
>
> v2: fix RAW3215_CONSOLE_NAME
>
> Cc: Heiko Carstens <hca@linux.ibm.com> (maintainer:S390 ARCHITECTURE,commit_signer:1/2=50%)
> Cc: Vasily Gorbik <gor@linux.ibm.com> (maintainer:S390 ARCHITECTURE)
> Cc: Alexander Gordeev <agordeev@linux.ibm.com> (maintainer:S390 ARCHITECTURE)
> Cc: Christian Borntraeger <borntraeger@linux.ibm.com> (reviewer:S390 ARCHITECTURE)
> Cc: Sven Schnelle <svens@linux.ibm.com> (reviewer:S390 ARCHITECTURE,commit_signer:1/2=50%)
> Cc: S390 ML <linux-s390@vger.kernel.org> (open list:S390 ARCHITECTURE
> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
> ---
> drivers/s390/char/con3215.c | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
This, and the other patches you sent, are just pointless code churn, may
introduce subtle bugs (trivial and v2...) and eat up maintainer's time.
If this would come together in the context of meaningful code changes this
would be a different story.
Therefore NAK for all of the patches.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-10 6:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-09 19:08 [PATCH v2] s390/con3215: Use macros for hardcoded values Xose Vazquez Perez
2025-07-10 6:35 ` Heiko Carstens
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).