android_kernel_samsung_msm8226/include
Will Drewry 027ae4effb seccomp: ignore secure_computing return values
This change is inspired by
  https://lkml.org/lkml/2012/4/16/14
which fixes the build warnings for arches that don't support
CONFIG_HAVE_ARCH_SECCOMP_FILTER.

In particular, there is no requirement for the return value of
secure_computing() to be checked unless the architecture supports
seccomp filter.  Instead of silencing the warnings with (void)
a new static inline is added to encode the expected behavior
in a compiler and human friendly way.

v2: - cleans things up with a static inline
    - removes sfr's signed-off-by since it is a different approach
v1: - matches sfr's original change

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Will Drewry <wad@chromium.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2019-08-05 14:22:33 +02:00
..
acpi Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
asm-generic seccomp: Add SECCOMP_RET_TRAP 2019-08-05 14:22:31 +02:00
crypto Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
drm Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
keys
linux seccomp: ignore secure_computing return values 2019-08-05 14:22:33 +02:00
math-emu
media Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
misc
mtd
net Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
pcmcia
rdma Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
rxrpc
scsi Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
sound Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
target Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
trace Merge remote-tracking branch 'f2fs-stable/linux-3.4.y' into lineage-16.0 2019-08-05 14:21:53 +02:00
uapi avtimer: msm: allow driver to register to SSR framework 2014-10-30 22:27:18 -07:00
video Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
xen Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
Kbuild