igb_uio: fix build with lock down checks
authorDavid Marchand <david.marchand@6wind.com>
Fri, 29 Jun 2018 10:13:57 +0000 (12:13 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Jul 2018 16:49:21 +0000 (18:49 +0200)
commite533e9ef060e5a7c948286cf8abe7c21ed616c90
tree09d416ab255670363d267f20b0e7badaad9e9008
parentfc6c9066e40d35187c09a372d410ea35ad29be4e
igb_uio: fix build with lock down checks

Caught on ubuntu-16.04 with hwe kernel for aarch64:

$ uname -a
Linux ubuntu1604arm64es 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu May
17 13:08:01 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

== Build kernel/linux/igb_uio
  CC [M] .../kernel/linux/igb_uio/igb_uio.o
In file included from .../kernel/linux/igb_uio/igb_uio.c:20:0:
.../igb_uio/compat.h: In function ‘igbuio_kernel_is_locked_down’:
.../igb_uio/compat.h:146:7:
error: "CONFIG_EFI_SECURE_BOOT_LOCK_DOWN" is not defined [-Werror=undef]
 #elif CONFIG_EFI_SECURE_BOOT_LOCK_DOWN
       ^
cc1: all warnings being treated as errors

Fixes: d67014c3d38b ("igb_uio: fail and log if kernel lock down is enabled")

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/igb_uio/compat.h