lineage_android_kernel_sams.../arch/microblaze
Will Drewry 8ad5fec136 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>
2014-09-18 21:18:09 -05:00
..
boot Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2012-03-30 18:15:43 -07:00
configs microblaze: Update microblaze defconfigs 2013-08-20 08:26:27 -07:00
include/asm Merge branch 'for-linus' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping 2012-04-04 17:13:43 -07:00
kernel seccomp: ignore secure_computing return values 2014-09-18 21:18:09 -05:00
lib Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into next 2012-03-30 12:10:03 +02:00
mm Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
oprofile
pci microblaze/PCI: get rid of device resource fixups 2012-02-23 20:19:02 -07:00
platform Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig microblaze: Do not select GENERIC_GPIO by default 2012-06-10 00:36:05 +09:00
Kconfig.debug microblaze: remove obsolete DEBUG_BOOTMEM 2011-01-10 09:29:51 +01:00
Makefile Fix common misspellings 2011-03-31 11:26:23 -03:00