]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PCOUNTER] Fix build error without CONFIG_SMP
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Mon, 26 Nov 2007 15:34:54 +0000 (23:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:50 +0000 (14:54 -0800)
I keep getting this build error and couldn't find anyone fixing
it in archives. ...Maybe all net developers except me build
just SMP kernels :-).

In file included from include/net/sock.h:50,
                 from ipc/mqueue.c:35:
include/linux/pcounter.h: In function 'pcounter_add':
include/linux/pcounter.h:87: error: 'struct pcounter' has no
member named 'value'
make[1]: *** [ipc/mqueue.o] Error 1
make: *** [ipc] Error 2

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/pcounter.h

index 620aaded4e945fa3f8100d06efa0d660eff555ae..9c4760a328f32e43866a0dd7e524746a34eadadc 100644 (file)
@@ -84,7 +84,7 @@ static inline int pcounter_getval(const struct pcounter *self)
 
 static inline void pcounter_add(struct pcounter *self, int inc)
 {
-       self->value += inc;
+       self->val += inc;
 }
 
 static inline int pcounter_getval(const struct pcounter *self)