Doc: percpu_counter doc code for better readability
Subsystems (3)
PATCH 1/1 Doc: percpu_counter doc code for better readability
Help people reading the percpu_counter code, to notice the ifdef else statement that seperates CONFIG_SMP.
---
include/linux/percpu_counter.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/percpu_counter.h +1 -1
@@ -83,7 +83,7 @@ static inline int percpu_counter_initialized(struct percpu_counter *fbc)return (fbc->counters !=NULL ); } -#else +#else /* No CONFIG_SMP */ struct percpu_counter { s64 count;
Tejun Heo
maintainerQuoted 14 lines · Jesper Dangaard Brouer
Help people reading the
percpu_countercode, to notice the ifdef else statement that seperatesCONFIG_SMP.Signed-off-by Jesper Dangaard Brouer <[email protected]>---
include/linux/percpu_counter.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/linux/percpu_counter.h +0
-0
include/linux/percpu_counter.h static inline int percpu_counter_initialized(struct percpu_counter *fbc) · line 86
Quoted 5 lines
include/linux/percpu_counter.h +1
-1@@ -83,7 +83,7 @@ static inline int percpu_counter_initialized(struct percpu_counter *fbc) return (fbc->counters != NULL); } -#else +#else /* No CONFIG_SMP */
"#else /* !CONFIG_SMP */" would be more conventional. Can you please change that and repost it w/ my Acked-by and [TRIVIAL] tag added and Jiri Kosina <[email protected]> cc'd?
Thanks.
Signature · 1 line
tejun
PATCH v2 1/1 Doc: percpu_counter doc code for better readability
Help people reading the percpu_counter code, to notice the ifdef else statement that seperates CONFIG_SMP.
---
include/linux/percpu_counter.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/percpu_counter.h +1 -1
@@ -83,7 +83,7 @@ static inline int percpu_counter_initialized(struct percpu_counter *fbc)return (fbc->counters !=NULL ); } -#else +#else /* !CONFIG_SMP */ struct percpu_counter { s64 count;
Tejun Heo
maintainerQuoted 5 lines · Jesper Dangaard Brouer
Help people reading the
percpu_countercode, to notice the ifdef else statement that seperatesCONFIG_SMP.Signed-off-by Jesper Dangaard Brouer <[email protected]>Acked-by Tejun Heo <[email protected]>
Jiri, can you please take this?
Thank you.
Signature · 1 line
tejun
Quoted 7 lines · Tejun Heo
Quoted 5 lines
Help people reading the
percpu_countercode, to notice the ifdef else statement that seperatesCONFIG_SMP.Signed-off-by Jesper Dangaard Brouer <[email protected]>Acked-by Tejun Heo <[email protected]>Jiri, can you please take this?
Absolutely, now applied. Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs