Merge branch 'for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Sep 2019 22:58:50 +0000 (15:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Sep 2019 22:58:50 +0000 (15:58 -0700)
Pull percpu updates from Dennis Zhou:
 "A couple of updates to clean up the code with no change in behavior"

* 'for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu:
  percpu: Use struct_size() helper
  percpu: fix typo in pcpu_setup_first_chunk() comment
  percpu: Make pcpu_setup_first_chunk() void function

1  2 
arch/ia64/mm/discontig.c

diff --combined arch/ia64/mm/discontig.c
@@@ -245,10 -245,7 +245,7 @@@ void __init setup_per_cpu_areas(void
                gi->cpu_map             = &cpu_map[unit];
        }
  
-       rc = pcpu_setup_first_chunk(ai, base);
-       if (rc)
-               panic("failed to setup percpu area (err=%d)", rc);
+       pcpu_setup_first_chunk(ai, base);
        pcpu_free_alloc_info(ai);
  }
  #endif
@@@ -396,7 -393,8 +393,7 @@@ static void __meminit scatter_node_data
   *
   * Each node's per-node area has a copy of the global pg_data_t list, so
   * we copy that to each node here, as well as setting the per-cpu pointer
 - * to the local node data structure.  The active_cpus field of the per-node
 - * structure gets setup by the platform_cpu_init() function later.
 + * to the local node data structure.
   */
  static void __init initialize_pernode_data(void)
  {