Will Drewry e4da89d02f 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>
2012-04-18 12:24:50 +10:00
..
2012-04-07 09:52:46 -07:00
2012-03-28 16:36:37 +02:00
2010-09-30 09:43:32 +09:00
2010-01-12 15:22:26 +09:00
2012-03-28 18:30:03 +01:00
2010-06-02 16:31:42 +09:00
2010-11-01 09:49:04 -04:00
2010-11-01 09:49:04 -04:00
2010-10-07 14:08:55 +01:00
2010-06-14 17:06:10 +09:00
2010-04-26 19:08:55 +09:00
2010-11-01 09:49:04 -04:00
2009-09-01 17:38:32 +09:00
2012-03-28 18:30:03 +01:00
2010-06-14 15:16:53 +09:00
2012-03-28 18:30:03 +01:00
2009-03-18 18:57:43 +09:00
2011-12-08 10:22:08 -08:00
2010-01-12 18:42:52 +09:00
2009-03-10 12:55:40 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-07-26 16:49:47 -07:00
2011-10-28 15:03:43 +09:00