From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBTg-0007bF-OH for qemu-devel@nongnu.org; Mon, 06 Oct 2014 12:49:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbBTb-0004NK-Uy for qemu-devel@nongnu.org; Mon, 06 Oct 2014 12:49:40 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:60754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBTb-0004NB-Nc for qemu-devel@nongnu.org; Mon, 06 Oct 2014 12:49:35 -0400 Received: by mail-la0-f45.google.com with SMTP id q1so4752251lam.4 for ; Mon, 06 Oct 2014 09:49:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Mon, 6 Oct 2014 17:49:14 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 0/5] linux-user patches for 2.2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: QEMU Developers On 6 October 2014 15:59, Peter Maydell wrote: > Hi. I'm afraid this doesn't compile on my ARM box: > > /root/qemu/linux-user/syscall.c: In function =E2=80=98do_syscall=E2=80=99= : > /root/qemu/linux-user/syscall.c:9695:9: error: implicit declaration of > function =E2=80=98timerfd_create=E2=80=99 [-Werror=3Dimplicit-function-de= claration] > /root/qemu/linux-user/syscall.c:9695:9: error: nested extern > declaration of =E2=80=98timerfd_create=E2=80=99 [-Werror=3Dnested-externs= ] > /root/qemu/linux-user/syscall.c:9705:13: error: implicit declaration > of function =E2=80=98timerfd_gettime=E2=80=99 [-Werror=3Dimplicit-functio= n-declaration] > /root/qemu/linux-user/syscall.c:9705:13: error: nested extern > declaration of =E2=80=98timerfd_gettime=E2=80=99 [-Werror=3Dnested-extern= s] > /root/qemu/linux-user/syscall.c:9728:13: error: implicit declaration > of function =E2=80=98timerfd_settime=E2=80=99 [-Werror=3Dimplicit-functio= n-declaration] > /root/qemu/linux-user/syscall.c:9728:13: error: nested extern > declaration of =E2=80=98timerfd_settime=E2=80=99 [-Werror=3Dnested-extern= s] > cc1: all warnings being treated as errors Specifically, this is because of the patch which adds #ifdef CONFIG_TIMERFD ... #endif -- it is doing so earlier in the file than the include of "qemu-common.h" which pulls in the file defining the CONFIG_* macros, so sys/timerfd.h is now never included. -- PMM