Skip to content

Commit

Permalink
percpu: add dummy pcpu_lpage_remapped() for !CONFIG_SMP
Browse files Browse the repository at this point in the history
!CONFIG_SMP was missing pcpu_lpage_remapped() definition causing build
failure.  Add dummy implementation.  This was discovered by linux-next
testing.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
  • Loading branch information
Tejun Heo committed Jul 15, 2009
1 parent 872fb6d commit a76761b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ static inline void free_percpu(void *p)

static inline void __init setup_per_cpu_areas(void) { }

static inline void *pcpu_lpage_remapped(void *kaddr)
{
return NULL;
}

#endif /* CONFIG_SMP */

#define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \
Expand Down

0 comments on commit a76761b

Please sign in to comment.