]> git.baikalelectronics.ru Git - kernel.git/commit
acct: eliminate compile warning
authorYing Xue <ying.xue@windriver.com>
Thu, 9 Oct 2014 22:30:21 +0000 (15:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:26:04 +0000 (22:26 -0400)
commitc6399f66b9be2ea4029b61ef48c556b8950279d4
tree9e3613e3759e926e99486a433fe0152667954162
parentb1ba52b33c7f07825e8a75325339eafa31246f1e
acct: eliminate compile warning

If ACCT_VERSION is not defined to 3, below warning appears:
  CC      kernel/acct.o
  kernel/acct.c: In function `do_acct_process':
  kernel/acct.c:475:24: warning: unused variable `ns' [-Wunused-variable]

[akpm@linux-foundation.org: retain the local for code size improvements
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/acct.c