projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5771a8c
)
percpu: pcpu-stats change void buffer to int buffer
author
Dennis Zhou (Facebook)
<
[email protected]
>
Sun, 16 Jul 2017 02:23:06 +0000
(22:23 -0400)
committer
Tejun Heo
<
[email protected]
>
Mon, 17 Jul 2017 14:45:42 +0000
(10:45 -0400)
Changes the use of a void buffer to an int buffer for clarity.
Signed-off-by: Dennis Zhou <
[email protected]
>
Signed-off-by: Tejun Heo <
[email protected]
>
mm/percpu-stats.c
patch
|
blob
|
history
diff --git
a/mm/percpu-stats.c
b/mm/percpu-stats.c
index 03524a56eefff19c9b093da5343e9196023068bb..0d810443785f07b83f075996f19260254b06ea3f 100644
(file)
--- a/
mm/percpu-stats.c
+++ b/
mm/percpu-stats.c
@@
-49,7
+49,7
@@
static int find_max_map_used(void)
* the beginning of the chunk to the last allocation.
*/
static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
-
void
*buffer)
+
int
*buffer)
{
int i, s_index, last_alloc, alloc_sign, as_len;
int *alloc_sizes, *p;
@@
-113,7
+113,7
@@
static int percpu_stats_show(struct seq_file *m, void *v)
{
struct pcpu_chunk *chunk;
int slot, max_map_used;
-
void
*buffer;
+
int
*buffer;
alloc_buffer:
spin_lock_irq(&pcpu_lock);