staging: gdm724x: Align descendant argument to the open parenthesis
PATCH 1/1 staging: gdm724x: Align descendant argument to the open parenthesis
Mute the following checkpatch error:
CHECK: Alignment should match open parenthesis
--- drivers/staging/gdm724x/gdm_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/gdm724x/gdm_tty.c +2 -2
@@ -272,8 +272,8 @@ int register_lte_tty_driver(void)int ret;for (i =0 ; i <TTY_MAX_COUNT ; i++) { - tty_driver =tty_alloc_driver (GDM_TTY_MINOR , -TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ); + tty_driver =tty_alloc_driver (GDM_TTY_MINOR ,TTY_DRIVER_REAL_RAW | +TTY_DRIVER_DYNAMIC_DEV );if (IS_ERR (tty_driver))return PTR_ERR (tty_driver);
Signature · 1 line
2.34.1
Quoted 4 lines · TaheraFahimi
Mute the following checkpatch error:
CHECK: Alignment should match open parenthesisSigned-off-by Tahera Fahimi <[email protected]>
Tahera,
I'm seeing this from checkpatch:
WARNING: From:/Signed-off-by: email name mismatch: 'From: TaheraFahimi <[email protected]>' != 'Signed-off-by: Tahera Fahimi <[email protected]>'
Folks sometimes miss checkpatch reports if they only run checkpatch on their head commit. Please run it on the formatted patch before sending it.
Please refer to checkpatch documentation, but if it's useful, here's what I do:
While developing a patch do this:
$ git show HEAD | scripts/checkpatch.pl --strict --codespell
Confirm with this before sending a patch to a mailing list:
$ scripts/checkpatch.pl --no-tree --strict --codespell $1 ($1 is the formatted patch and that location is usually out of tree in my development environment.)
--Alison
Quoted 23 lines
--- drivers/staging/gdm724x/gdm_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/gdm724x/gdm_tty.c +2
-2@@ -272,8 +272,8 @@ int register_lte_tty_driver(void)int ret;for (i =0 ; i <TTY_MAX_COUNT ; i++) { - tty_driver =tty_alloc_driver (GDM_TTY_MINOR , -TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ); + tty_driver =tty_alloc_driver (GDM_TTY_MINOR ,TTY_DRIVER_REAL_RAW | +TTY_DRIVER_DYNAMIC_DEV );if (IS_ERR (tty_driver))return PTR_ERR (tty_driver);Signature · 1 line
2.34.1
Hello Alison,
Thanks for the heads up. I resolved the mismatches.
Quoted 3 lines · Tahera Fahimi
Hello Alison,
Thanks for the heads up. I resolved the mismatches.
Tahera,
Once a thread has begun, we always group reply.
Never drop folks or mailing lists from a thread. Sometimes we have to add someone or a list to a thread in progress, but we never drop.
Your response is not visible here:
https://lore.kernel.org/linux-staging/ZgXupx0nXwIOjy7F@tahera-OptiPlex-5000/
--Alison
Quoted 2 lines · TaheraFahimi
Mute the following checkpatch error:
CHECK: Alignment should match open parenthesis
It's not aligned either before or after. It should have been:
[tab][tab][tab][tab][tab][space][space][space][space][space][space]TTY_DRIVER_...
Quoted 11 lines
Signed-off-by Tahera Fahimi <[email protected]>--- drivers/staging/gdm724x/gdm_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/gdm724x/gdm_tty.c +0
-0
drivers/staging/gdm724x/gdm_tty.c int register_lte_tty_driver(void) · line 276
Quoted 7 lines
drivers/staging/gdm724x/gdm_tty.c +2
-2@@ -272,8 +272,8 @@ int register_lte_tty_driver(void)int ret;for (i =0 ; i <TTY_MAX_COUNT ; i++) { - tty_driver =tty_alloc_driver (GDM_TTY_MINOR , -TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ); + tty_driver =tty_alloc_driver (GDM_TTY_MINOR ,TTY_DRIVER_REAL_RAW | +TTY_DRIVER_DYNAMIC_DEV );
"TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV" goes together. Don't split that up over two lines. Checkpatch is a tool which is supposed to help readability. It's not a ruler which must be obeyed. If checkpatch tells you to do something which makes the code less readable then just ignore it.
regards,
dan carpenter