From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQJQN-0000vZ-1w for qemu-devel@nongnu.org; Wed, 19 Mar 2014 12:33:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQJQM-00023o-2j for qemu-devel@nongnu.org; Wed, 19 Mar 2014 12:33:02 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:35029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQJQL-00022m-Tr for qemu-devel@nongnu.org; Wed, 19 Mar 2014 12:33:02 -0400 Received: by mail-ob0-f169.google.com with SMTP id va2so8456460obc.28 for ; Wed, 19 Mar 2014 09:33:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1395245708-22971-1-git-send-email-peter.maydell@linaro.org> References: <1395245708-22971-1-git-send-email-peter.maydell@linaro.org> Date: Wed, 19 Mar 2014 17:33:01 +0100 Message-ID: From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH buildfix for-2.0] linux-user: Fix build if headers don't define _LINUX_CAPABILITY_VERSION_1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Riku Voipio , "qemu-devel@nongnu.org" , Patch Tracking On Wed, Mar 19, 2014 at 5:15 PM, Peter Maydell wrote: > Older kernel headers don't define _LINUX_CAPABILITY_VERSION_1. > Switch to using the older _LINUX_CAPABILITY_VERSION; newer headers > still define this for source compatibility. > > Signed-off-by: Peter Maydell > Reported-by: Laurent Desnogues I'm not sure I should send "Reviewed-by" for issues I reported, but here it is. Reviewed-by: Laurent Desnogues Thanks, Laurent > --- > linux-user/syscall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index 366b695..2eac6d5 100644 > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -7698,7 +7698,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, > header.version = tswap32(target_header->version); > header.pid = tswap32(target_header->pid); > > - if (header.version != _LINUX_CAPABILITY_VERSION_1) { > + if (header.version != _LINUX_CAPABILITY_VERSION) { > /* Version 2 and up takes pointer to two user_data structs */ > data_items = 2; > } > -- > 1.9.0 >