From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934750AbdAFPE1 (ORCPT ); Fri, 6 Jan 2017 10:04:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:53611 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752571AbdAFPET (ORCPT ); Fri, 6 Jan 2017 10:04:19 -0500 Date: Fri, 6 Jan 2017 16:04:17 +0100 From: Michal Hocko To: Kees Cook Cc: LKML Subject: next: s390 allyesconfig fails to compile samples/seccomp Message-ID: <20170106150417.GQ5556@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am not relly sure what went wrong, but I've noticed that allyesconfig doesn't compile with my s390 crosscompiler with a strange error messages for linux-next (next-20170106). Linus' tree compiles just fine. It smells like some headers include problems because $ git diff origin/master..next/master -- samples/seccomp/ doesn't show anything... samples/seccomp/bpf-helper.h:134:2: error: #error __BITS_PER_LONG value unusable. #error __BITS_PER_LONG value unusable. ^ In file included from samples/seccomp/bpf-fancy.c:12:0: samples/seccomp/bpf-fancy.c: In function ‘main’: samples/seccomp/bpf-fancy.c:37:11: error: ‘__NR_exit’ undeclared (first use in this function) SYSCALL(__NR_exit, ALLOW), ^ ./usr/include/linux/filter.h:51:69: note: in definition of macro ‘BPF_JUMP’ #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } ^ samples/seccomp/bpf-fancy.c:37:3: note: in expansion of macro ‘SYSCALL’ SYSCALL(__NR_exit, ALLOW), ^ samples/seccomp/bpf-fancy.c:37:11: note: each undeclared identifier is reported only once for each function it appears in SYSCALL(__NR_exit, ALLOW), ^ ./usr/include/linux/filter.h:51:69: note: in definition of macro ‘BPF_JUMP’ #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } ^ samples/seccomp/bpf-fancy.c:37:3: note: in expansion of macro ‘SYSCALL’ SYSCALL(__NR_exit, ALLOW), ^ samples/seccomp/bpf-fancy.c:38:11: error: ‘__NR_exit_group’ undeclared (first use in this function) SYSCALL(__NR_exit_group, ALLOW), ^ ./usr/include/linux/filter.h:51:69: note: in definition of macro ‘BPF_JUMP’ #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } ^ samples/seccomp/bpf-fancy.c:38:3: note: in expansion of macro ‘SYSCALL’ SYSCALL(__NR_exit_group, ALLOW), ^ samples/seccomp/bpf-fancy.c:39:11: error: ‘__NR_write’ undeclared (first use in this function) SYSCALL(__NR_write, JUMP(&l, write_fd)), ^ ./usr/include/linux/filter.h:51:69: note: in definition of macro ‘BPF_JUMP’ #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } ^ samples/seccomp/bpf-fancy.c:39:3: note: in expansion of macro ‘SYSCALL’ SYSCALL(__NR_write, JUMP(&l, write_fd)), -- Michal Hocko SUSE Labs