lkml.org 
[lkml]   [2012]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] vmevent: Fix build for SWAP=n case
On Sat, 3 Mar 2012, Anton Vorontsov wrote:
> Caught this build failure:
>
> CC mm/vmevent.o
> mm/vmevent.c:17:6: error: expected identifier or '(' before numeric constant
> mm/vmevent.c:18:1: warning: no semicolon at end of struct or union [enabled by default]
> mm/vmevent.c: In function 'vmevent_sample':
> mm/vmevent.c:84:36: error: expected identifier before numeric constant
> make[1]: *** [mm/vmevent.o] Error 1
> make: *** [mm/] Error 2
>
> This is because linux/swap.h defines nr_swap_pages to 0L, and so things
> break.
>
> Fix this by undefinding it back, as we don't use it anyway.
>
> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

Applied, thanks!


\
 
 \ /
  Last update: 2012-03-04 17:39    [W:0.031 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site