Message ID | 1443564860-31208-6-git-send-email-ynorov@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 57B119F39B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:20:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8D4D5205EC for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:20:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A0ED6205C6 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 29 Sep 2015 22:20:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh3EH-0003kV-Mc; Tue, 29 Sep 2015 22:18:33 +0000 Received: from mail-bl2on0073.outbound.protection.outlook.com ([65.55.169.73] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh3C4-0002w6-Rt for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2015 22:16:17 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (91.78.158.8) by DM2PR07MB622.namprd07.prod.outlook.com (10.141.177.146) with Microsoft SMTP Server (TLS) id 15.1.280.20; Tue, 29 Sep 2015 22:15:53 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <catalin.marinas@arm.com>, <arnd@arndb.de>, <agraf@suse.de>, <bamvor.zhangjian@huawei.com> Subject: [PATCH v5 05/23] arm64:ilp32: expose 'kernel_long' as 'long long' for ILP32 Date: Wed, 30 Sep 2015 01:14:02 +0300 Message-ID: <1443564860-31208-6-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> References: <1443564860-31208-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [91.78.158.8] X-ClientProxiedBy: HE1PR03CA0005.eurprd03.prod.outlook.com (25.163.170.143) To DM2PR07MB622.namprd07.prod.outlook.com (10.141.177.146) X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB622; 2:oc1UHq6UDRnJ4aXUlzlo6IRw475JogJu2vw53j6zKOt+R+62GZ6hEmRXa+hSUd0XnJN4DMZ6RpWWk6wjVwHP8rZRdPkIp+RJalVosKAKdnV8DIk+6n3qWLXJm2dh1ZLD4bsGBg9zMJ6nZrGSyP8pH7Wglv5neBWubUQRHKfMHlo=; 3:tk+lLe7586+2BeJ44P0ylAYeERR7P57KNXtf3bPkBjPFDxpH3DvU89jrX9WpbYhkNle7Kbzwx02fgu09lRIh3tpRLZ2Ti9pCsBHiQTqiIAWj8tuW2mN6gURbG4KTCH71ueMyHNSZxpfxiqlR79j//g==; 25:DRZ6ye0/wl/aKsNYDx9ga0kwL+H37U1UYV41Ta+dOQHaXhADBZqzF83RjiRtnEh20780p3Sy1c8L3cmWnQQB+91PJ9+Fw4Ai2b+/tm8SNhZ3FgSKrUp3nT68wvg3eLX5lmylKW4JF9SMkqgAchClqu6lz6MW2Xxy7ulnLDj30z8FoIO/5lnAYMzlFexBWxc4oUHDwNWAQygosrz36knX/AEbOr9c3xjMprSP5Y212004mpnun9nY836ejrmQ6cvzP3uvAZoDgQR7t2SdSARSvg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB622; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB622; 20:OSHW8WM0VpL9qZD0a+0X66umwfld0B8IffoPytEXID3VShO74ixzr/2ILiihBBuVSnAvbsEE2PhBS61Rr+xfTU1QIiUjiNEhlt8IPlSsHDtHWnDsucARANQQLqtVNnuU/ow9s9TlHyA2ZyGwSelHes/GRWt7vHegBJ1+00qwyoSo4cY2DXM0wglRXm/5ZMeh0Qj+G4azJ3QT2HNxwcqlzQo9yxOHoZRvmWNhAw8HV7ZcLKHjp5Rfq9xwT8zJ6BRD3hQUMxrE+lUjrBtSfh208A9G265366yu+nT32IFG/6KJIUM6bgGNAAbwDsf1nrwKt982QxtNmZGm4eX2OoV2uCkFki7PWMD7Rvf1ycYshEwZxH98dRl9GjhzdCaWfiyaAQ3DY7ZLK1oicXEDeU7mGLVZMAeDJG9MyrLtqUXFBeCulCw5vuD5U9cpTVyViszx50l6UgnNiM7613dXED14mIBGXPrJWGvUmeLjSI/xIJ0G/pZyUrJtZRM19cQY6m5Qfoy65HAJFFY2/Y6h0tT2RUNjI+o26y0G5Ds8JlD0no2Koz+JH/ygsdtXCIEOHx9vW6GdIEUJHKjnPye+djWdJ8468p3o6mPbDU9du8ey130= X-Microsoft-Antispam-PRVS: <DM2PR07MB62260D4C335EF943B6E1710EE4E0@DM2PR07MB622.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001); SRVR:DM2PR07MB622; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB622; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB622; 4:EdRCGe7XyJ0jV+/3MrJk/iUBcSE0ElbnqhOJw2ZtNQYQJURY8XINZVTUfdsVKhylwJ936frxXyfLecKgVPPVuy5mx26RnDE/uSzMgggaC27537Qw2Bn+kgsQc8+hurk9pSDqqaFGLJe5RqGgmMprcV6Lha247xJiK8ZFMq+S4SRN3Niuz9Sj8crq/GM0f9JWUsSPrrnxY7fvLyN0w07S9ZSp6rnS0SpK1n/VUyS6rmQM6vq1ksejGBtzRzPj9DE3XKh8/XSUpSRpBddJYXBi/CELx/Ovfp2PU386YgN6QG1HTUHe6zy8wSwYsgr5ZR9hLEVXRWEsquccBg49z0cFwBhg1vVCx3FuTboMwr7kDS4= X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(5007970100001)(5008740100001)(64706001)(47776003)(189998001)(50226001)(107886002)(122386002)(50986999)(66066001)(76176999)(36756003)(87976001)(42186005)(46102003)(48376002)(77096005)(76506005)(68736005)(5004730100002)(229853001)(5003940100001)(2950100001)(105586002)(106356001)(40100003)(5001860100001)(5001830100001)(19580405001)(97736004)(2201001)(19580395003)(50466002)(4001540100001)(5001770100001)(5001960100002)(92566002)(33646002)(62966003)(81156007)(77156002)(101416001)(223183001)(4001430100001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB622; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB622; 23:nbaJwk6/5FBfqs/QtpzDqZvQHHR5iZkzAvVAb87jYV?= =?us-ascii?Q?x0k0BXWn2klgr6o7f/rScXwHH4QnjA2CYLt4Rn4/qNLn4tKgcIyr/fzo3Vvh?= =?us-ascii?Q?jn6M/QpfT6OvfWZ0o4oM86O8sZQY0EG8yd6/jE6PeToVPutYL8RaoGerhqwx?= =?us-ascii?Q?A68ERxIg3hba1SzuN5lN51x1pKxeYicaFg3qt2SBYugxkJauaTBs3t7n/K1u?= =?us-ascii?Q?nVAJa5ZLgptGR4LR4yQxzOFozeTNSd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ii?Q?hirPOxTiHSPRoKr/dt67OUeLRvNcDKdFDpQD3awqK0ElqajbAQH/1c0ViLBU?= =?us-ascii?Q?D+X9pwuQQfWKLsZ9JSrvkT8C6T89cwcZKi9ffTfWEpbj1xiGBuDQKAZKnDHC?= =?us-ascii?Q?o9QFeeb4025aSaL8pMkWBKO1jQ7IhQq0m90+lMJugbpeMN1YeZk+hShpovr/?= =?us-ascii?Q?AxypNWb8ll6LXkXLCQ+4zRvWO5q4h7JJi7xuXUV9YK?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB622; 5:N+721V8OL7vbASJ0uxFGXpDUKRj9sgixKvrtthi8JCFmyfLuZItqYL27i4SXOwSkwAKji6gBsem4IRnC35vpnhyMVVOaMe4j14agBDh5e+T/n0yMyJmFQ+y9T9KGNkV1RPwQjUrlF0UpuFprfU44HA==; 24:1IQpUBUhNMtD/+djsa8lQB2mJNI+Ct8HEHxha3aR6yZdMIcxHK8QcPP3yngpUAS4bm3qFwpriSxmSKByIK/Or1SCUUj2zVPp1WOz5LsgBTE=; 20:BzQA7VL+sCtAgrAlUuOjlGFdrRei1B6GTmbqVoLyxBxjOmLmuTC7jyQP6Lk4L+9hlF/0tlLgrFSRZO9dNlvkLw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 22:15:53.4892 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB622 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150929_151617_101618_08828DD1 X-CRM114-Status: UNSURE ( 7.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: yury.norov@gmail.com, klimov.linux@gmail.com, Yury Norov <ynorov@caviumnetworks.com>, apinski@cavium.com, philipp.tomsich@theobroma-systems.com, christoph.muellner@theobroma-systems.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/include/uapi/asm/posix_types.h b/arch/arm64/include/uapi/asm/posix_types.h index 7985ff6..d6a7cb5 100644 --- a/arch/arm64/include/uapi/asm/posix_types.h +++ b/arch/arm64/include/uapi/asm/posix_types.h @@ -5,6 +5,16 @@ typedef unsigned short __kernel_old_uid_t; typedef unsigned short __kernel_old_gid_t; #define __kernel_old_uid_t __kernel_old_uid_t +#if defined(__ILP32__) +/* The ILP32 kernel ABI reuses LP64 system calls where possible; to + this end, the equivalent ILP32 type definitions are used (a 64bit + 'long'-type in LP64 corresponds to a 'long long' in LP64). */ + +typedef long long __kernel_long_t; +typedef unsigned long long __kernel_ulong_t; +#define __kernel_long_t __kernel_long_t +#endif /* defined(__ILP32__) */ + #include <asm-generic/posix_types.h> -#endif /* __ASM_POSIX_TYPES_H */ +#endif /* __ASM_POSIX_TYPES_H */