Skip to content

Commit

Permalink
ovs-rcu: Comment fixes.
Browse files Browse the repository at this point in the history
A comment referred to a "Usage" section but the section was named "Use".
This fixes the problem (also a grammar error).

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Alex Wang <[email protected]>
  • Loading branch information
blp committed Jun 12, 2015
1 parent 2541d75 commit be9d0de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ovs-rcu.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014 Nicira, Inc.
* Copyright (c) 2014, 2015 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -80,8 +80,8 @@
* All functions postponed by a single thread are guaranteed to execute in the
* order they were postponed, however.
*
* Use
* ---
* Usage
* -----
*
* Use OVSRCU_TYPE(TYPE) to declare a pointer to RCU-protected data, e.g. the
* following declares an RCU-protected "struct flow *" named flowp:
Expand Down Expand Up @@ -204,7 +204,7 @@ static inline void ovsrcu_set__(struct ovsrcu_pointer *pointer,
#define ovsrcu_init(VAR, VALUE) atomic_init(&(VAR)->p, VALUE)

/* Calls FUNCTION passing ARG as its pointer-type argument following the next
* grace period. See "Usage" above for example. */
* grace period. See "Usage" above for an example. */
void ovsrcu_postpone__(void (*function)(void *aux), void *aux);
#define ovsrcu_postpone(FUNCTION, ARG) \
((void) sizeof((FUNCTION)(ARG), 1), \
Expand Down

0 comments on commit be9d0de

Please sign in to comment.