Files
android_kernel_samsung_msm8…/include/linux
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
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2013-06-20 10:46:21 -07:00
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-02 15:14:10 +02:00
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 09:13:24 +02:00
…
…
…
…
…
…
2014-01-16 18:16:12 -08:00
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
2019-08-05 14:21:59 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 09:13:25 +02:00
2019-08-05 14:20:47 +02:00
…
…
…
…
…
2019-08-05 14:20:47 +02:00
2014-07-22 14:33:44 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-10-07 12:28:53 +05:30
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
2013-11-17 11:31:01 +02:00
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2013-12-26 14:33:32 -08:00
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…