Skip to content

Commit 053f8fc

Browse files
keesJonathan Corbet
authored andcommitted
docs: Fix function name trailing double-()s
I noticed a double-() in the deprecated.rst rendering today. Fix that one and two others in the Documentation/ tree. Acked-by: "Paul E. McKenney" <paulmck@kernel.org> # For RCU Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20200817233207.4083538-1-keescook@chromium.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 15ab856 commit 053f8fc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/RCU/lockdep.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ checking of rcu_dereference() primitives:
4949
is invoked by both RCU-sched readers and updaters.
5050
srcu_dereference_check(p, c):
5151
Use explicit check expression "c" along with
52-
srcu_read_lock_held()(). This is useful in code that
52+
srcu_read_lock_held(). This is useful in code that
5353
is invoked by both SRCU readers and updaters.
5454
rcu_dereference_raw(p):
5555
Don't check. (Use sparingly, if at all.)

Documentation/process/deprecated.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ only NUL-terminated strings. The safe replacement is strscpy().
142142
(Users of strscpy() still needing NUL-padding should instead
143143
use strscpy_pad().)
144144

145-
If a caller is using non-NUL-terminated strings, strncpy()() can
145+
If a caller is using non-NUL-terminated strings, strncpy() can
146146
still be used, but destinations should be marked with the `__nonstring
147147
<https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html>`_
148148
attribute to avoid future compiler warnings.

Documentation/translations/it_IT/process/deprecated.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ chi usa solo stringe terminate. La versione sicura da usare è
130130
strscpy(). (chi usa strscpy() e necessita di estendere la
131131
terminazione con NUL deve aggiungere una chiamata a memset())
132132

133-
Se il chiamate no usa stringhe terminate con NUL, allore strncpy()()
133+
Se il chiamate no usa stringhe terminate con NUL, allore strncpy()
134134
può continuare ad essere usata, ma i buffer di destinazione devono essere
135135
marchiati con l'attributo `__nonstring <https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html>`_
136136
per evitare avvisi durante la compilazione.

0 commit comments

Comments
 (0)