Skip to content

Commit

Permalink
percpu: pcpu-stats change void buffer to int buffer
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dennisszhou authored and htejun committed Jul 17, 2017
1 parent 5771a8c commit cd6a884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/percpu-stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cd6a884

Please sign in to comment.