Skip to content

Commit

Permalink
[PCOUNTER] Fix build error without CONFIG_SMP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Jan 28, 2008
1 parent f126734 commit e7d0362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pcounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7d0362

Please sign in to comment.