exec/memory: Fix kernel-doc warning
PATCH 1/1 exec/memory: Fix kernel-doc warning
During build the kernel-doc script complains about the following issue:
src/docs/../include/exec/memory.h:1741: warning: Function parameter or member 'n' not described in 'memory_region_unmap_iommu_notifier_range' src/docs/../include/exec/memory.h:1741: warning: Excess function parameter 'notifier' description in 'memory_region_unmap_iommu_notifier_range'
Settle on "notifier" for consistency with other memory functions.
("memory: introduce memory_region_unmap_iommu_notifier_range()")
--- include/exec/memory.h | 2 +- softmmu/memory.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
include/exec/memory.h +1 -1
@@ -1738,7 +1738,7 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier,* * @notifier: the notifier to be notified */ -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n); +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier);/**
softmmu/memory.c +4 -4
@@ -1996,17 +1996,17 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier, } } -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n) +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier) {IOMMUTLBEvent event; event.type =IOMMU_NOTIFIER_UNMAP ; event.entry.target_as = &address_space_memory; - event.entry.iova = n->start; + event.entry.iova = notifier->start; event.entry.perm =IOMMU_NONE ; - event.entry.addr_mask = n->end - n->start; + event.entry.addr_mask = notifier->end - notifier->start; -memory_region_notify_iommu_one (n, &event); +memory_region_notify_iommu_one (notifier, &event); } void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
Signature · 1 line
2.40.0
Quoted 20 lines · Bernhard Beschow
During build the kernel-doc script complains about the following issue:
src/docs/../include/exec/memory.h:1741: warning: Function parameter or member 'n' not described in 'memory_region_unmap_iommu_notifier_range'src/docs/../include/exec/memory.h:1741: warning: Excess function parameter 'notifier' description in 'memory_region_unmap_iommu_notifier_range'Settle on "notifier" for consistency with other memory functions.
Fixes 7caebbf9ea53("memory: introduce
memory_region_unmap_iommu_notifier_range()")Signed-off-by Bernhard Beschow <[email protected]>--- include/exec/memory.h | 2 +- softmmu/memory.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)include/exec/memory.h +0
-0
include/exec/memory.h void memory_region_notify_iommu_one(IOMMUNotifier *notifier, · line 1741
Quoted 5 lines
include/exec/memory.h +1
-1@@ -1738,7 +1738,7 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier,* * @notifier: the notifier to be notified */ -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n); +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier);
This is ...:
https://lore.kernel.org/qemu-devel/[email protected]/
Quoted 15 lines
include/exec/memory.h +0
-0/** softmmu/memory.c +1
-1@@ -1996,17 +1996,17 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier, } } -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n) +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier) {IOMMUTLBEvent event; event.type =IOMMU_NOTIFIER_UNMAP ;
softmmu/memory.c void memory_region_notify_iommu_one(IOMMUNotifier *notifier, · line 2010
Quoted 10 lines
softmmu/memory.c +3
-3event.entry.target_as = &address_space_memory; - event.entry.iova = n->start; + event.entry.iova = notifier->start; event.entry.perm =IOMMU_NONE ; - event.entry.addr_mask = n->end - n->start; + event.entry.addr_mask = notifier->end - notifier->start; -memory_region_notify_iommu_one (n, &event); +memory_region_notify_iommu_one (notifier, &event); }
... but your patch matches the implementation with the declaration, so:
Since you are looking at this, maybe you could also have a look at:
https://lore.kernel.org/qemu-devel/[email protected]/
+ qemu-trivial
Am 15. März 2023 07:25:52 UTC schrieb Bernhard Beschow <[email protected]>:
Quoted 54 lines
During build the kernel-doc script complains about the following issue:
src/docs/../include/exec/memory.h:1741: warning: Function parameter or member 'n' not described in 'memory_region_unmap_iommu_notifier_range'src/docs/../include/exec/memory.h:1741: warning: Excess function parameter 'notifier' description in 'memory_region_unmap_iommu_notifier_range'Settle on "notifier" for consistency with other memory functions.
Fixes 7caebbf9ea53("memory: introduce
memory_region_unmap_iommu_notifier_range()")Signed-off-by Bernhard Beschow <[email protected]>---
include/exec/memory.h| 2 +-softmmu/memory.c| 8 ++++----2 files changed, 5 insertions(+), 5 deletions(-)include/exec/memory.h +1
-1@@ -1738,7 +1738,7 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier,* * @notifier: the notifier to be notified */ -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n); +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier);/** softmmu/memory.c +4
-4@@ -1996,17 +1996,17 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier, } } -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n) +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier) {IOMMUTLBEvent event; event.type =IOMMU_NOTIFIER_UNMAP ; event.entry.target_as = &address_space_memory; - event.entry.iova = n->start; + event.entry.iova = notifier->start; event.entry.perm =IOMMU_NONE ; - event.entry.addr_mask = n->end - n->start; + event.entry.addr_mask = notifier->end - notifier->start; -memory_region_notify_iommu_one (n, &event); +memory_region_notify_iommu_one (notifier, &event); } void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
Laurent Vivier
AppliedLe 15/03/2023 à 08:57, Bernhard Beschow a écrit :
Quoted 52 lines
+ qemu-trivial
Am 15. März 2023 07:25:52 UTC schrieb Bernhard Beschow <[email protected]>:
Quoted 49 lines
During build the kernel-doc script complains about the following issue:
src/docs/../include/exec/memory.h:1741: warning: Function parameter or member 'n' not described in 'memory_region_unmap_iommu_notifier_range'src/docs/../include/exec/memory.h:1741: warning: Excess function parameter 'notifier' description in 'memory_region_unmap_iommu_notifier_range'Settle on "notifier" for consistency with other memory functions.
Fixes 7caebbf9ea53("memory: introduce
memory_region_unmap_iommu_notifier_range()")Signed-off-by Bernhard Beschow <[email protected]>---
include/exec/memory.h| 2 +-softmmu/memory.c| 8 ++++----2 files changed, 5 insertions(+), 5 deletions(-)include/exec/memory.h +1
-1@@ -1738,7 +1738,7 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier,* * @notifier: the notifier to be notified */ -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n); +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier);/** softmmu/memory.c +3
-3@@ -1996,17 +1996,17 @@ void memory_region_notify_iommu_one(IOMMUNotifier *notifier, } } -void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *n) +void memory_region_unmap_iommu_notifier_range (IOMMUNotifier *notifier) {IOMMUTLBEvent event; event.type =IOMMU_NOTIFIER_UNMAP ; event.entry.target_as = &address_space_memory; - event.entry.iova = n->start; + event.entry.iova = notifier->start; event.entry.perm =IOMMU_NONE ; - event.entry.addr_mask = n->end - n->start; + event.entry.addr_mask = notifier->end - notifier->start;
Quoted 6 lines
softmmu/memory.c void memory_region_notify_iommu_one(IOMMUNotifier *notifier, · line 2012
Quoted 5 lines
softmmu/memory.c +1
-1-memory_region_notify_iommu_one (n, &event); +memory_region_notify_iommu_one (notifier, &event); } void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr,
Applied to my trivial-patches branch.
Thanks,
Laurent
Quoted 11 lines · Bernhard Beschow
During build the kernel-doc script complains about the following issue:
src/docs/../include/exec/memory.h:1741: warning: Function parameter or member 'n' not described in 'memory_region_unmap_iommu_notifier_range'src/docs/../include/exec/memory.h:1741: warning: Excess function parameter 'notifier' description in 'memory_region_unmap_iommu_notifier_range'Settle on "notifier" for consistency with other memory functions.
Fixes 7caebbf9ea53("memory: introduce
memory_region_unmap_iommu_notifier_range()")Signed-off-by Bernhard Beschow <[email protected]>---
Signature · 3 lines
Thanks, David / dhildenb