From patchwork Wed Dec 12 15:32:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 13512 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C1F9A23FCD for ; Wed, 12 Dec 2012 15:32:08 +0000 (UTC) Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) by fiordland.canonical.com (Postfix) with ESMTP id 65C2EA1985E for ; Wed, 12 Dec 2012 15:32:08 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id c13so2043813ieb.17 for ; Wed, 12 Dec 2012 07:32:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:date:from :to:subject:message-id:mime-version:content-type:content-disposition :x-message-flag:user-agent:x-gm-message-state; bh=rDq47sOUEG4mziK2P2upMWVVZmo02iFRQFwDD+b7zCE=; b=Ks27SitXFQDdQ/EAqTtCtRDeGWvXy3MF14O1UqVRIrg88IrK4BMDSwolyLFE+46pTB /2xQ8yF5/PQvmibzwTo8exAb/uqek5w6oeLZhC3oRVGOkY8K/IfvXrehet40Lfk9dlj6 Z/XBnIt6uUkdQQQDEtcdhLniaDOzaNuTMZQDWfZ/98Oi1FKab0VFSyvN0t2MeKjKCb2i B7JQOXBBeOMcehYDlcAxoXtye+Leo5T6qvQPTsH/McxjWZSoU2p0OmHPhGKDN1N3ydc/ 0J9EJy82QrSWENW00tIPd1cwk4rglRy9zrsUpwGY7ZOemkB0zq/JptA5wncbO/nMYkDq 5UmQ== Received: by 10.50.42.168 with SMTP id p8mr13551741igl.57.1355326327660; Wed, 12 Dec 2012 07:32:07 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp206662igt; Wed, 12 Dec 2012 07:32:07 -0800 (PST) Received: by 10.194.235.100 with SMTP id ul4mr2704957wjc.7.1355326326097; Wed, 12 Dec 2012 07:32:06 -0800 (PST) Received: from afflict.kos.to (afflict.kos.to. [92.243.29.197]) by mx.google.com with ESMTPS id ci15si6861070wjb.6.2012.12.12.07.32.04 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 07:32:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of nchip@afflict.kos.to designates 92.243.29.197 as permitted sender) client-ip=92.243.29.197; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of nchip@afflict.kos.to designates 92.243.29.197 as permitted sender) smtp.mail=nchip@afflict.kos.to Received: by afflict.kos.to (Postfix, from userid 1000) id 23107264C1; Wed, 12 Dec 2012 16:32:03 +0100 (CET) Date: Wed, 12 Dec 2012 17:32:03 +0200 From: Riku Voipio To: acl-devel@nongnu.org, patches@linaro.org Subject: [PATCH] add 64-bit Arm xattr syscall numbers Message-ID: <20121212153203.GA29278@afflict.kos.to> MIME-Version: 1.0 Content-Disposition: inline X-message-flag: Warning: message not sent with a DRM-Certified client User-Agent: Mutt/1.5.20 (2009-06-14) X-Gm-Message-State: ALoCoQl8bSNo0z39I7dYR60PKejmeEFVk/brR6GH6MZRgVVwg1HoBv3xjdq7XuXygn1XvVWnlC8G Hi, The syscall numbers for Aarch64 (The official name for 64Bit arm) are defined in include/uapi/asm-generic/unistd.h. these numbers are also used by other architectures where there is no historic numbering of syscalls. Thus this patch uses the numbers on tilera (__tile__) and unicore (__unicore32__), Applying this patch makes attr "make tests" pass on ext4 with Linux 3.7 on the 64-Bit arm simulator. Also, when making the next attr and acl release tarballs, make sure you run autoreconf autotools-dev 20120210.1 or later, to get aarch64 strings in config.sub and config.guess. Cheers, Riku --- a/libattr/syscalls.c +++ b/libattr/syscalls.c @@ -189,6 +189,21 @@ # define __NR_removexattr 232 # define __NR_lremovexattr 233 # define __NR_fremovexattr 234 +#elif defined(__aarch64__) || defined(__tile__) || defined(__unicore32__) +/* Architectures using generic syscall numbers */ +# define HAVE_XATTR_SYSCALLS 1 +# define __NR_setxattr 5 +# define __NR_lsetxattr 6 +# define __NR_fsetxattr 7 +# define __NR_getxattr 8 +# define __NR_lgetxattr 9 +# define __NR_fgetxattr 10 +# define __NR_listxattr 11 +# define __NR_llistxattr 12 +# define __NR_flistxattr 13 +# define __NR_removexattr 14 +# define __NR_lremovexattr 15 +# define __NR_fremovexattr 16 #else # warning "Extended attribute syscalls undefined for this architecture" # define HAVE_XATTR_SYSCALLS 0