Skip to content

Commit d49653f

Browse files
krzktorvalds
authored andcommitted
mm: mmu_notifier: fix and extend kerneldoc
Fix W=1 compile warnings (invalid kerneldoc): mm/mmu_notifier.c:187: warning: Function parameter or member 'interval_sub' not described in 'mmu_interval_read_bgin' mm/mmu_notifier.c:708: warning: Function parameter or member 'subscription' not described in 'mmu_notifier_registr' mm/mmu_notifier.c:708: warning: Excess function parameter 'mn' description in 'mmu_notifier_register' mm/mmu_notifier.c:880: warning: Function parameter or member 'subscription' not described in 'mmu_notifier_put' mm/mmu_notifier.c:880: warning: Excess function parameter 'mn' description in 'mmu_notifier_put' mm/mmu_notifier.c:982: warning: Function parameter or member 'ops' not described in 'mmu_interval_notifier_insert' Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: http://lkml.kernel.org/r/20200728171109.28687-4-krzk@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent af161be commit d49653f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎mm/mmu_notifier.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void mn_itree_inv_end(struct mmu_notifier_subscriptions *subscriptions)
166166
/**
167167
* mmu_interval_read_begin - Begin a read side critical section against a VA
168168
* range
169-
* interval_sub: The interval subscription
169+
* @interval_sub: The interval subscription
170170
*
171171
* mmu_iterval_read_begin()/mmu_iterval_read_retry() implement a
172172
* collision-retry scheme similar to seqcount for the VA range under
@@ -686,7 +686,7 @@ EXPORT_SYMBOL_GPL(__mmu_notifier_register);
686686

687687
/**
688688
* mmu_notifier_register - Register a notifier on a mm
689-
* @mn: The notifier to attach
689+
* @subscription: The notifier to attach
690690
* @mm: The mm to attach the notifier to
691691
*
692692
* Must not hold mmap_lock nor any other VM related lock when calling
@@ -856,7 +856,7 @@ static void mmu_notifier_free_rcu(struct rcu_head *rcu)
856856

857857
/**
858858
* mmu_notifier_put - Release the reference on the notifier
859-
* @mn: The notifier to act on
859+
* @subscription: The notifier to act on
860860
*
861861
* This function must be paired with each mmu_notifier_get(), it releases the
862862
* reference obtained by the get. If this is the last reference then process
@@ -965,7 +965,8 @@ static int __mmu_interval_notifier_insert(
965965
* @interval_sub: Interval subscription to register
966966
* @start: Starting virtual address to monitor
967967
* @length: Length of the range to monitor
968-
* @mm : mm_struct to attach to
968+
* @mm: mm_struct to attach to
969+
* @ops: Interval notifier operations to be called on matching events
969970
*
970971
* This function subscribes the interval notifier for notifications from the
971972
* mm. Upon return the ops related to mmu_interval_notifier will be called

0 commit comments

Comments
 (0)