GCC 8.0.1 as shipped with Fedora 28 beta fails to build Linux-stable 4.16.5 and 4.14.37. Cherry-picking the below commits from mainline fixes the build. Build and boot tested on x86-64
4.16.5: 854e55ad289e objtool, perf: Fix GCC 8 -Wrestrict error
4.14.37: 854e55ad289e objtool, perf: Fix GCC 8 -Wrestrict error ad343a98e74e tools/lib/subcmd/pager.c: do not alias select() params
Regards, Fredrik