]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add const qual to local_read() parameter
authorEric Dumazet <edumazet@google.com>
Wed, 20 Nov 2019 01:14:51 +0000 (12:14 +1100)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 24 Nov 2019 23:06:33 +0000 (15:06 -0800)
commit630d397518d8e39304fb5384c3430745b60234b4
tree632551955321257d53ace796a16e90dad67b49f5
parentd45318d0df6b6a4783f7d951cd404a48db20cb32
powerpc: Add const qual to local_read() parameter

A patch in net-next triggered a compile error on powerpc:

  include/linux/u64_stats_sync.h: In function 'u64_stats_read':
  include/asm-generic/local64.h:30:37: warning: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type

This seems reasonable to relax powerpc local_read() requirements.

Fixes: 3d32a4a42ee1 ("u64_stats: provide u64_stats_t type")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: kbuild test robot <lkp@intel.com>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Stephen Rothwell <sfr@canb.auug.org.au> # build only
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
arch/powerpc/include/asm/local.h