From: Ilpo Järvinen Date: Mon, 26 Nov 2007 15:34:54 +0000 (+0800) Subject: [PCOUNTER] Fix build error without CONFIG_SMP X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e7d0362dd41e760f340c1b500646cc92522bd9d5;p=mv-sheeva.git [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 Acked-by: Arnaldo Carvalho de Melo Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- 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)