Skip to contentSkip to conversation

powerpc/eeh_cache: fix a W=1 kernel-doc warning

PATCH Applied Qian Cai 3 participants 4 messages Jun 5, 2019 – Jul 3, 2019

Subsystems (2)
lore
Share & tools
lore

Qian Cai

author
#0 lore raw

PATCH 1/1 powerpc/eeh_cache: fix a W=1 kernel-doc warning

The opening comment mark "/**" is reserved for kernel-doc comments, so it will generate a warning with "make W=1".

arch/powerpc/kernel/eeh_cache.c:37: warning: cannot understand function
prototype: 'struct pci_io_addr_range

Since this is not a kernel-doc for the struct below, but rather an overview of this source eeh_cache.c, just use the free-form comments kernel-doc syntax instead.

---
 arch/powerpc/kernel/eeh_cache.c | 3 +++
 1 file changed, 3 insertions(+)
arch/powerpc/kernel/eeh_cache.c +3 -0
index 320472373122..05ffd32b3416 100644
@@ -18,6 +18,8 @@
 
 
 /**
+ * DOC: Overview
+ *
  * The pci address cache subsystem.  This subsystem places
  * PCI device address resources into a red-black tree, sorted
  * according to the address range, so that given only an i/o
@@ -34,6 +36,7 @@
  * than any hash algo I could think of for this problem, even
  * with the penalty of slow pointer chases for d-cache misses).
  */
+
 struct pci_io_addr_range {
 	struct rb_node rb_node;
 	resource_size_t addr_lo;
Signature · 1 line
1.8.3.1
author
#1 lore raw

Ping.

Quoted 36 lines · Qian Cai

The opening comment mark "/**" is reserved for kernel-doc comments, so it will generate a warning with "make W=1".

arch/powerpc/kernel/eeh_cache.c:37: warning: cannot understand function
prototype: 'struct pci_io_addr_range

Since this is not a kernel-doc for the struct below, but rather an overview of this source eeh_cache.c, just use the free-form comments kernel-doc syntax instead.

---
 arch/powerpc/kernel/eeh_cache.c | 3 +++

 1 file changed, 3 insertions(+)
arch/powerpc/kernel/eeh_cache.c +0 -0
index 320472373122..05ffd32b3416 100644
@@ -18,6 +18,8 @@



 /**
+ * DOC: Overview
+ *
  * The pci address cache subsystem.  This subsystem places
  * PCI device address resources into a red-black tree, sorted
  * according to the address range, so that given only an i/o

arch/powerpc/kernel/eeh_cache.c +1 -0
@@ -34,6 +36,7 @@
   * than any hash algo I could think of for this problem, even
   * with the penalty of slow pointer chases for d-cache misses).
   */
+
  struct pci_io_addr_range {
  	struct rb_node rb_node;
  	resource_size_t addr_lo;
Acked-by on v1 1/1
#2 lore raw
In reply to Qian Cai
Quoted 8 lines · Qian Cai

The opening comment mark "/**" is reserved for kernel-doc comments, so
it will generate a warning with "make W=1".

arch/powerpc/kernel/eeh_cache.c:37: warning: cannot understand function
prototype: 'struct pci_io_addr_range

Quoted 5 lines

Since this is not a kernel-doc for the struct below, but rather an overview of this source eeh_cache.c, just use the free-form comments kernel-doc syntax instead.

Looks good to me.

#3 lore raw
In reply to Qian Cai
Quoted 6 lines · Qian Cai

The opening comment mark "/**" is reserved for kernel-doc comments, so it will generate a warning with "make W=1".

arch/powerpc/kernel/eeh_cache.c:37: warning: cannot understand function
prototype: 'struct pci_io_addr_range

Quoted 6 lines

Since this is not a kernel-doc for the struct below, but rather an overview of this source eeh_cache.c, just use the free-form comments kernel-doc syntax instead.

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/3becd11dffe5d4a7467ebd841172f3e091fbcbd0

cheers