All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] docs: Remove stray ()
@ 2020-08-21  1:08 Chris Packham
  2020-08-21  1:08 ` [PATCH 1/2] docs: deprecated.rst: " Chris Packham
  2020-08-21  1:09 ` [PATCH 2/2] docs: RCU: " Chris Packham
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Packham @ 2020-08-21  1:08 UTC (permalink / raw)
  To: corbet; +Cc: linux-doc, linux-kernel, Chris Packham

I noticed the stray () while reading over deprecated.rst. I found the RCU one
when grepping around.

Chris Packham (2):
  docs: deprecated.rst: Remove stray ()
  docs: RCU: Remove stray ()

 Documentation/RCU/lockdep.rst                           | 2 +-
 Documentation/process/deprecated.rst                    | 2 +-
 Documentation/translations/it_IT/process/deprecated.rst | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.28.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] docs: deprecated.rst: Remove stray ()
  2020-08-21  1:08 [PATCH 0/2] docs: Remove stray () Chris Packham
@ 2020-08-21  1:08 ` Chris Packham
  2020-08-21  1:09 ` [PATCH 2/2] docs: RCU: " Chris Packham
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Packham @ 2020-08-21  1:08 UTC (permalink / raw)
  To: corbet; +Cc: linux-doc, linux-kernel, Chris Packham, Federico Vaga

A reference to strncpy() had an extra (), remove it.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
 Documentation/process/deprecated.rst                    | 2 +-
 Documentation/translations/it_IT/process/deprecated.rst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/process/deprecated.rst b/Documentation/process/deprecated.rst
index 4a9aa4f0681e..918e32d76fc4 100644
--- a/Documentation/process/deprecated.rst
+++ b/Documentation/process/deprecated.rst
@@ -142,7 +142,7 @@ only NUL-terminated strings. The safe replacement is strscpy().
 (Users of strscpy() still needing NUL-padding should instead
 use strscpy_pad().)
 
-If a caller is using non-NUL-terminated strings, strncpy()() can
+If a caller is using non-NUL-terminated strings, strncpy() can
 still be used, but destinations should be marked with the `__nonstring
 <https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html>`_
 attribute to avoid future compiler warnings.
diff --git a/Documentation/translations/it_IT/process/deprecated.rst b/Documentation/translations/it_IT/process/deprecated.rst
index e108eaf82cf6..a642ff3fdc8b 100644
--- a/Documentation/translations/it_IT/process/deprecated.rst
+++ b/Documentation/translations/it_IT/process/deprecated.rst
@@ -130,7 +130,7 @@ chi usa solo stringe terminate. La versione sicura da usare è
 strscpy(). (chi usa strscpy() e necessita di estendere la
 terminazione con NUL deve aggiungere una chiamata a memset())
 
-Se il chiamate no usa stringhe terminate con NUL, allore strncpy()()
+Se il chiamate no usa stringhe terminate con NUL, allore strncpy()
 può continuare ad essere usata, ma i buffer di destinazione devono essere
 marchiati con l'attributo `__nonstring <https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html>`_
 per evitare avvisi durante la compilazione.
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] docs: RCU: Remove stray ()
  2020-08-21  1:08 [PATCH 0/2] docs: Remove stray () Chris Packham
  2020-08-21  1:08 ` [PATCH 1/2] docs: deprecated.rst: " Chris Packham
@ 2020-08-21  1:09 ` Chris Packham
  2020-08-21 14:20   ` Paul E. McKenney
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Packham @ 2020-08-21  1:09 UTC (permalink / raw)
  To: corbet
  Cc: linux-doc, linux-kernel, Chris Packham, Paul E. McKenney,
	Josh Triplett, Steven Rostedt, Mathieu Desnoyers, Lai Jiangshan,
	Joel Fernandes, rcu

A reference to srcu_read_lock_held() had an extra (). Remove it,

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---
 Documentation/RCU/lockdep.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/RCU/lockdep.rst b/Documentation/RCU/lockdep.rst
index f1fc8ae3846a..cc860a0c296b 100644
--- a/Documentation/RCU/lockdep.rst
+++ b/Documentation/RCU/lockdep.rst
@@ -49,7 +49,7 @@ checking of rcu_dereference() primitives:
 		is invoked by both RCU-sched readers and updaters.
 	srcu_dereference_check(p, c):
 		Use explicit check expression "c" along with
-		srcu_read_lock_held()().  This is useful in code that
+		srcu_read_lock_held().  This is useful in code that
 		is invoked by both SRCU readers and updaters.
 	rcu_dereference_raw(p):
 		Don't check.  (Use sparingly, if at all.)
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] docs: RCU: Remove stray ()
  2020-08-21  1:09 ` [PATCH 2/2] docs: RCU: " Chris Packham
@ 2020-08-21 14:20   ` Paul E. McKenney
  0 siblings, 0 replies; 4+ messages in thread
From: Paul E. McKenney @ 2020-08-21 14:20 UTC (permalink / raw)
  To: Chris Packham
  Cc: corbet, linux-doc, linux-kernel, Josh Triplett, Steven Rostedt,
	Mathieu Desnoyers, Lai Jiangshan, Joel Fernandes, rcu

On Fri, Aug 21, 2020 at 01:09:00PM +1200, Chris Packham wrote:
> A reference to srcu_read_lock_held() had an extra (). Remove it,
> 
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

Good eyes, but someone beat you to this one.

							Thanx, Paul

> ---
>  Documentation/RCU/lockdep.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/RCU/lockdep.rst b/Documentation/RCU/lockdep.rst
> index f1fc8ae3846a..cc860a0c296b 100644
> --- a/Documentation/RCU/lockdep.rst
> +++ b/Documentation/RCU/lockdep.rst
> @@ -49,7 +49,7 @@ checking of rcu_dereference() primitives:
>  		is invoked by both RCU-sched readers and updaters.
>  	srcu_dereference_check(p, c):
>  		Use explicit check expression "c" along with
> -		srcu_read_lock_held()().  This is useful in code that
> +		srcu_read_lock_held().  This is useful in code that
>  		is invoked by both SRCU readers and updaters.
>  	rcu_dereference_raw(p):
>  		Don't check.  (Use sparingly, if at all.)
> -- 
> 2.28.0
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-21 14:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21  1:08 [PATCH 0/2] docs: Remove stray () Chris Packham
2020-08-21  1:08 ` [PATCH 1/2] docs: deprecated.rst: " Chris Packham
2020-08-21  1:09 ` [PATCH 2/2] docs: RCU: " Chris Packham
2020-08-21 14:20   ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.