Skip to contentSkip to conversation

qemu-options: replace constant 1 with HAS_ARG

PATCH Applied John Snow 4 participants 5 messages Feb 4, 2020 – Feb 6, 2020

lore
Share & tools
lore

John Snow

author
#0 lore raw

PATCH 1/1 qemu-options: replace constant 1 with HAS_ARG

This is the only instance of a non-zero constant not using a symbolic constant.

---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +1 -1
index 224a8e8712..ff3e806977 100644
@@ -1955,7 +1955,7 @@ STEXI
 Start in full screen.
 ETEXI
 
-DEF("g", 1, QEMU_OPTION_g ,
+DEF("g", HAS_ARG, QEMU_OPTION_g ,
     "-g WxH[xDEPTH]  Set the initial graphical resolution and depth\n",
     QEMU_ARCH_PPC | QEMU_ARCH_SPARC | QEMU_ARCH_M68K)
 STEXI
Signature · 1 line
2.21.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · John Snow

This is the only instance of a non-zero constant not using a symbolic constant.

---
  qemu-options.hx | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
qemu-options.hx +1 -1
index 224a8e8712..ff3e806977 100644
@@ -1955,7 +1955,7 @@ STEXI
  Start in full screen.
  ETEXI
 
-DEF("g", 1, QEMU_OPTION_g ,
+DEF("g", HAS_ARG, QEMU_OPTION_g ,
      "-g WxH[xDEPTH]  Set the initial graphical resolution and depth\n",
      QEMU_ARCH_PPC | QEMU_ARCH_SPARC | QEMU_ARCH_M68K)
  STEXI
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
#2 lore raw
In reply to John Snow
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series seems to have some coding style problems. See output below for more information:

Subject: [PATCH] qemu-options: replace constant 1 with HAS_ARG
Message-id: [email protected]
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test'
3af73ec qemu-options: replace constant 1 with HAS_ARG

=== OUTPUT BEGIN ===
ERROR: Missing Signed-off-by: line(s)

total: 1 errors, 0 warnings, 8 lines checked

Commit 3af73ec9eaff (qemu-options: replace constant 1 with HAS_ARG) has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1

The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]

author
#3 lore raw
In reply to John Snow
Quoted 2 lines · John Snow

This is the only instance of a non-zero constant not using a symbolic constant.

Quoted 18 lines
---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +1 -1
index 224a8e8712..ff3e806977 100644
@@ -1955,7 +1955,7 @@ STEXI
 Start in full screen.
 ETEXI
 
-DEF("g", 1, QEMU_OPTION_g ,
+DEF("g", HAS_ARG, QEMU_OPTION_g ,
     "-g WxH[xDEPTH]  Set the initial graphical resolution and depth\n",
     QEMU_ARCH_PPC | QEMU_ARCH_SPARC | QEMU_ARCH_M68K)
 STEXI
#4 lore raw
In reply to John Snow

Le 04/02/2020 à 17:56, John Snow a écrit :

Quoted 12 lines

This is the only instance of a non-zero constant not using a symbolic constant.

---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +0 -0
index 224a8e8712..ff3e806977 100644

qemu-options.hx STEXI · line 1961

Quoted 8 lines
qemu-options.hx +1 -1
@@ -1955,7 +1955,7 @@ STEXI
 Start in full screen.
 ETEXI
 
-DEF("g", 1, QEMU_OPTION_g ,
+DEF("g", HAS_ARG, QEMU_OPTION_g ,
     "-g WxH[xDEPTH]  Set the initial graphical resolution and depth\n",
     QEMU_ARCH_PPC | QEMU_ARCH_SPARC | QEMU_ARCH_M68K)
 STEXI

Applied to my trivial-patches branch.

Thanks,
Laurent