From patchwork Mon Nov 2 23:30:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7538901 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E6AECBEEA4 for ; Mon, 2 Nov 2015 23:40:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 19D13205E3 for ; Mon, 2 Nov 2015 23:40:17 +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 419192057F for ; Mon, 2 Nov 2015 23:40:16 +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 1ZtOgC-00039b-JN; Mon, 02 Nov 2015 23:38:24 +0000 Received: from mail-bl2on0092.outbound.protection.outlook.com ([65.55.169.92] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZtOcM-0006A2-Bo for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2015 23:34:55 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (109.252.143.100) by CO2PR07MB620.namprd07.prod.outlook.com (10.141.228.156) with Microsoft SMTP Server (TLS) id 15.1.312.18; Mon, 2 Nov 2015 23:34:22 +0000 From: Yury Norov To: , , , Subject: [PATCH v6 15/17] arm64:ilp32: use the native siginfo instead of the compat siginfo Date: Tue, 3 Nov 2015 02:30:44 +0300 Message-ID: <1446507046-24604-16-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [109.252.143.100] X-ClientProxiedBy: DB5PR03CA0022.eurprd03.prod.outlook.com (25.162.150.32) To CO2PR07MB620.namprd07.prod.outlook.com (10.141.228.156) X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB620; 2:zKjLD7LWAUX6flpjWNupW+4jxDaSZG+6ATzbpSMAOQgRBJGnTYlryOQCqkAzxIPTGoy+mlcv5ULSiMPIn1tQN7Bdbp0FTOdhL7H1nIjpr5sU3fCnwyTgL6gkfR6lnMh4SEVgFVDgtCX0MQniuHKe4zuAWzGZCJbjQc9hz8lI1Zk=; 3:uhRaSgK8pU5qK3wRZEUzTiObwAyRTNycKLSo5KeesuUl5bYM9bnwPmLfXoPUtNWaBNNRcmwFAteOGEfSWHSlTBCSr7nxxLwSQnhECKKiplyvhDEwI42+pWkrWZ8HyNDH+55xVUNNPGe7zamgdKCLDA==; 25:t/3L1u8qduR/UlI9IfgOUP7Z29k5egDl5pWPcaku2Fd9+vplEOIm5eE6ZuB22viSddUELd+gLrGV13GaBL2YXYwYC1/KgbNU6JcNYffQcTt4/3B7rBD3RDw6w2rJibRAD3NXAASMPeJWTBAUn0T8EKqjzb8grc5YL6aPnqCb3liB/mrWzrwO7DP4hSyRIFeHilzYzAFfgtd/jNJfYDMusi9xPposmf6HOE8ZcjyO5ToXOXukXefSYZy0An+fzIydZIFF9/7ouCmVcyaQ1czGSg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB620; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB620; 20:aF6Cc3k0q5yapGuVBd1SAANQ55jfOe94uRSLPbmMqVsd+Y994XXd7uSqKAbssB7D5vWMdNgee6v9IukvIAjO4oAIiecu7YF23x6UUukPa5A6ZE9NrctSoZ1DeOO0nivJfub53/JlSQ7w8AFE9MlhA0AcuDrBSjw9N/PXs9JzQxn/fsaU+t3jc6jzk7BvZ9IkBEeWn0edD8MqofgmNZBJJxo/YalNROBzr3S0M1UAi3O0QokkgBEmLzD3PqzNUEkkO/gH574h21RKrZB3LMzEBi3NQb3pBRMnfX25epjXf0y3FsIaaHr2GZHAO29oqaUwyhc0OnyEQdWIEyFJh3maD3RIR6myiQnv5x0Bwq/8sRJilRcwk0vg79nLRx7KMy9MCfH8xFBGT0oQhtTLSnv8bs726zITTnKTCwT3qz64bEhf9XUhHbzOQrNIhiIz5wkZNEK+OjVTxSeMTmiEDI3RmVToVE8sD34nVepSJt4+redZP1WtBceUsNk5ul4sab/YLzIKuPOxLQ7q3pClQAZjhWN4WXQY/QEKmOizuApzyDcpr7b61R2ZXPCbTHieezbMZa0aI2H0kUaNvt59vP4lZRqt+1l/nqKc4fdjuRN7R8s= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046); SRVR:CO2PR07MB620; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB620; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB620; 4:tgtSuZpMpW1cdel1wb4FldFJ+2Fl4/LrTusz8NxkcNjGoTAdiVOeKD9jP3yO4TRQq2X5aEqCtaqXsrffr7ggJg4AWr37ywQLKjguVaQ52A8yx4e87OsgpOXROTEbGUWqnbbImnpDVccrC6SMVPa2TdVzE+hl5Nq+z2gPys7h1NrKRF7vSMp0QZGfh/fd8AN7fX5m0HylU3PoBYpGzVdQKMfb8xDanoLqlfZtsyRSiYZXpHEYdNMydriU2r14wxAM6h/QhB/+8w2Uj89a5zW2d5UXdVwlDbZ8dlQ2C+IROdk4xg/HrpDCy0wOqnQ8i11JlLpJbNluxPN1uFaFmyIq/erFmzIsHTsSyNruDIgDkiQR51GFTYNkA6kWKHi+wJZh X-Forefront-PRVS: 0748FF9A04 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(199003)(66066001)(48376002)(50986999)(47776003)(5007970100001)(5004730100002)(5003940100001)(4001430100002)(40100003)(42186005)(101416001)(50466002)(76506005)(19580395003)(19580405001)(33646002)(76176999)(50226001)(105586002)(107886002)(106356001)(189998001)(5008740100001)(229853001)(122386002)(5001960100002)(2201001)(2950100001)(36756003)(87976001)(5001770100001)(81156007)(77096005)(92566002)(97736004)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB620; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; CO2PR07MB620; 23:+WcjkBJDrFzJGc63Zc5umHtdmH/P46QoFEMuC7xOqV?= =?us-ascii?Q?kcgDnQM9B6iFjM1RF48mHqcJm9tMHgexgNd5s6YQqosptgo6Ve1JfnbVl/8n?= =?us-ascii?Q?PocIDXfPzFRFx7xX4WBh+9BqdLawpzTuRd594ocUE+HP/qhO7Yv19BQWGMyk?= =?us-ascii?Q?fbleKC85C+82yAHeo5s0I76zdINRy8tdg0OuWSscMYeZM1tOpYYJ3lAKeH5x?= =?us-ascii?Q?Ov3SFa80gQblvsHLcwVUZINTS5og8UWYKkcr1UrTKIPp/e5lFuXBp+JH6t3r?= =?us-ascii?Q?JAIcY0g1Ce+9OATSLkvMzjg2mPbg9BHIxn2zVQeDSbNwRlx58kNnxgTH4euK?= =?us-ascii?Q?WSOvzidY8yZA8nLgpeJpX/Si911/eEdmjcmmtJIh+RSRnCZDuxRYuSQ85kxq?= =?us-ascii?Q?TJRb/GBmIDKZ+pd1zjRg32eBPuaqyvH9HK5a1lB6oK49wtWBqEYuoOJMxNKS?= =?us-ascii?Q?rP0NpYsSlC2PUIMkA95xuA/r3BlVROLJCfD5VzqRv2okF7felOPtGh/MeXff?= =?us-ascii?Q?BI+20HmL9qbW57HHiFNA2cLMiBAQu41Ozb8AcVzHOZPVFynknGXA1uVM3kEO?= =?us-ascii?Q?5+/3YSle2qr9awCtVai3CSfpGQK0YNqrgosHHY5LS4TcgXVwnRCkNkKgR37s?= =?us-ascii?Q?ocjd5ZQKdBGxAAkcOjXejnTQ5ywRl/i3gjuDs6Ai/QG9juUB5//HtcBm5vQl?= =?us-ascii?Q?rEhLOC6rUEzhJNyo7EH7SGN1b3FdPxyghxOlQq+2KCaYZywz2IjfI086d0Qa?= =?us-ascii?Q?Y47F4n1t089NifeP3spC+vvsArOI2nqKN5cofWkDQPLTc7jRo229X9n0kwV/?= =?us-ascii?Q?aZXt6XkE/0f5BJiq9IOyDsdWoxBp8q0PD3Tz5YHURQXvny11ABKnP3fDgWh/?= =?us-ascii?Q?SkT28mYWf06Mnga6vaCL1cHI2KP8HA57x3hAoYFLwylJm4LXVWA5lBISA/1C?= =?us-ascii?Q?RFw9sJycrgYMj4fHfmQsiVD3rUYmRo1lkkPrILKF2PPzZ+ZFE7p5qVWIf6TV?= =?us-ascii?Q?FnbqU8QVN5JxXX6RxyceoD4UvDvhswXZOtHBHT8CSYxifxmfH0Lw3C4Yhm30?= =?us-ascii?Q?Am3x4IkjtrnZbEwtN4E3UWB7FILze12AukbtJev4e869Xakg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB620; 5:4Gj1d65ocXqZRgvYvesaFl/DetFsLOV7rJ9JWi7pX1kD2UeanTummMaTUeoNfMG+q3+wVRkaXhwCcLowqOZhktYt3Hxm5LnU37eRvWfenXGubf3n+XzHE6nALmym9PNHB7LpBc1ypf27OHImOGQiCQ==; 24:PodEUI9AYXOzB2wwOYRimfFD46jdBoL7Z+TiUknCqyFrzGFrsMA4Ht0NOnT9qOU/3EUEFTlneUolUwvb20lCyypUdnfhbXfPaTU2hLuiqVQ=; 20:xG53SeN9UhYDddt/ZQOFXORLerFStgHv5h8vYhDdRKyRYCMVS/jnusH8TjzzXLXrtFWL7rInGVLRS2fxAgJJ4Q== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2015 23:34:22.1833 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB620 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151102_153427_272452_3AE12DE8 X-CRM114-Status: UNSURE ( 7.40 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , broonie@kernel.org, jan.dakinevich@gmail.com, Andrew Pinski , ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, Yury Norov , philipp.tomsich@theobroma-systems.com, andrey.konovalov@linaro.org, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" 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 From: Andrew Pinski Set COMPAT_USE_NATIVE_SIGINFO to be true for non AARCH32 tasks. Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski Reviewed-by: David Daney --- arch/arm64/include/asm/compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 95d2d72..087f21b 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -214,6 +214,9 @@ typedef struct compat_siginfo { } _sifields; } compat_siginfo_t; +/* ILP32 uses the native siginfo and not the compat struct */ +#define COMPAT_USE_NATIVE_SIGINFO !is_a32_compat_task() + #define COMPAT_OFF_T_MAX 0x7fffffff #define COMPAT_LOFF_T_MAX 0x7fffffffffffffffL