diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-11-26 23:34:54 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:54:50 -0800 |
commit | e7d0362dd41e760f340c1b500646cc92522bd9d5 (patch) | |
tree | d3535fd6d181c90fb027f90c43e0db04ec7dd8c4 | |
parent | f1267347353b586e1a89a7d02c142be975bae699 (diff) |
[PCOUNTER] Fix build error without CONFIG_SMP
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>
-rw-r--r-- | include/linux/pcounter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pcounter.h b/include/linux/pcounter.h index 620aaded4e9..9c4760a328f 100644 --- a/include/linux/pcounter.h +++ b/include/linux/pcounter.h @@ -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) |