From patchwork Sun Jun 4 11:59:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 101354 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp494503qgd; Sun, 4 Jun 2017 05:01:54 -0700 (PDT) X-Received: by 10.84.177.164 with SMTP id x33mr148233plb.43.1496577714268; Sun, 04 Jun 2017 05:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496577714; cv=none; d=google.com; s=arc-20160816; b=tJCYgfTfzbBLNoQYxD1wBDQJpLpxTHmasozcq29/0z6xLhcJdVIxfF74DluY5uVrOn qa9AWm6/6reaQWSkQ33cA2pmQDmp/ts5BDCsH6pl87LDSJKLaMabMGo7k5dUwhoTNEHP vvt1irA732+bloTtXXO6YyLiYHegLhoev8i8WQgqe/orMqKj66oy4LKvqIkHWUYzpctM SILvomdMC6QkwKFcxK2U7iz5L0sN8P3ihwvUz0zic/h6qWTr3rYeVuSRiCZu36GDN7G0 7wRY4NV04wLUAZYLgBxylsgjwj9jssshg6USSee2Y8/gOYeLQ6deg7QKt/aSVgnCWF+U KIRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=3wQxTq1a1FL7MaacYBCAG2hPeEXJ+xEWRu2YzkPLVws=; b=SB9cdTEzQ/QafG5bwjcVb10ctJsDcnOm3kkQNd0hdLVFPZgAZFzwh4FU+YK291icSi a3xI0wwCAxAOpPrPH7lp3fl11tuNsjRd12PNvwFVknS8OAG/8+oc98m9ofgjiYyodB1o EOeic58FEYtoYOv5aD6cD3w5L6OhETcgs2F0ArsJikald2bdOcsPcEpm1oszcUvjt0Jg 9uEe6sF0i+nPCy+IvEMeiBBQYJ47fd+nkdI5+F1Fyh70/YFziT8Xhe/ovx9TkpGoRz0q oJYO2+hpFksyJNAfdBi+b8mj1ppBHFlS9b3zDuouW4d0MpCFEiYs919B17eZAbQ/zEqb R8gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si4555573plk.63.2017.06.04.05.01.53; Sun, 04 Jun 2017 05:01:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbdFDMB2 (ORCPT + 25 others); Sun, 4 Jun 2017 08:01:28 -0400 Received: from mail-co1nam03on0088.outbound.protection.outlook.com ([104.47.40.88]:52522 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751198AbdFDMBW (ORCPT ); Sun, 4 Jun 2017 08:01:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3wQxTq1a1FL7MaacYBCAG2hPeEXJ+xEWRu2YzkPLVws=; b=BtqAW7BxAUZNT1WQlYGZei45lAwxYoVYfJ4pdbJ3iKRcpQDJxJ7FTFCMcTMZGlaRrcEWBsZAtJCWNTq3Wi6A9JyHY8yAD56XOI+AMaBc7yRHYyclPFAJ4FRzh8MgYUzfqWmm1qkUowIjo8tbiuYbUjgIvhQRMJiNQZ6tKY3N/7Y= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (176.59.55.28) by BN3PR0701MB1266.namprd07.prod.outlook.com (10.160.118.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Sun, 4 Jun 2017 12:01:04 +0000 From: Yury Norov To: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann Cc: Yury Norov , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky@de.ibm.com, broonie@kernel.org, Joseph Myers , christoph.muellner@theobroma-systems.com, szabolcs.nagy@arm.com, klimov.linux@gmail.com, Nathan_Lynch@mentor.com, agraf@suse.de, Prasun.Kapoor@caviumnetworks.com, geert@linux-m68k.org, philipp.tomsich@theobroma-systems.com, manuel.montezelo@gmail.com, linyongting@huawei.com, davem@davemloft.net, zhouchengming1@huawei.com, James Hogan , linux-arch@vger.kernel.org, linux-snps-arc@lists.infradead.org, Will Deacon , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org, Richard Kuo , linux-hexagon@vger.kernel.org, linux-metag@vger.kernel.org, Jonas Bonn , linux@lists.openrisc.net, Chen Liqin , Lennox Wu , Guan Xuetao , Ley Foon Tan , nios2-dev@lists.rocketboards.org, Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp Subject: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Date: Sun, 4 Jun 2017 14:59:52 +0300 Message-Id: <20170604120009.342-4-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170604120009.342-1-ynorov@caviumnetworks.com> References: <20170604120009.342-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.55.28] X-ClientProxiedBy: HE1PR09CA0090.eurprd09.prod.outlook.com (10.174.50.162) To BN3PR0701MB1266.namprd07.prod.outlook.com (10.160.118.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0701MB1266: X-MS-Office365-Filtering-Correlation-Id: a8181a8d-47e6-44d9-b98d-08d4ab416093 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 3:ZJNH/Hxv7l9Txy6WGPE8QHqc+pUutK7Ixc70aooH4g7u9IQ79HDR8qerDbdOaXQ8jQYF/y0eGHLRX7qElia56gy9mfMd5mRQyHJOjt2KlFC/xuHkevxbvDS3Xo9PQY+Dlwe+FSUKHkPWxgJUoAGIll9jCpX2SE1o9hjNjE5cgbthoJ4jsM1oC0BJmF+gg0BW5l+ehDzGc287NLSTLUrQAWKL8QAIMwEU4IMHYYDdmO8KAU2+q+naiGfAoJuDAnjkqjlxEugy0EC8aLUsKpl1VYXVvrrG10FRPnmk2mYiP2xHtOcJttzJOxjMCTJmJhCc8bofGC+KcPzTJRwWKPh5CA==; 25:EHhSW+KzOclrDWzWlBxapmpEh6d5iBAyu7NzUTn3i2qr5k7Y3caQ450esxyDqPbafLlgmXL6YzoMoO9VsK2ACpzCWLxMeEqPe5T+hdohaNby4rpkNhXpQiGvOjMs5/OkRFvkYt3B+ghh1uySBOZtRFEEL/DtdSo+In5TknrQlYnViBDZ+bqwc6w3/MzvOrB1VNJLwIgUY4yBIlLFVFvUXVbeoHVh7nU/iqPeyTBMR688GitmQkR02s0PZFN101wtvJ6HwJO0Gbyx8IfnPHynzWQICPRXc/qYN2LLf2ioO/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3UamQ1HWPvJ4la63Irw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(31051911155226)(9452136761055)(80048183373757)(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0701MB1266; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0701MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 4:vuu/Df2S1bRG4iKvaozUHJcCKMBEIEzMsyNm008obVK6eHoeaiqFOnExzRNnBBCVU8ATciABHfdqLdwNL/7rqdkRSvJpwqvcwci/gS+ANhOZZphXMV1gnCr7/l6d9pdiyMsNbGebFJTPlhiOXN58UF2o5cybzTJk6qckn9H0mCaaZMYpeIjzQ5KIWjf8FrtYfsJzzVrSZZPl4P3jpiVgI+GWrniEg7R8uj/tT3yGnaf31RYamn2OAAsypdHlo9uYRsl0z0tImTahzeb5DQckF7OYfjEY2R5QjLgqfqIKYROVqOPR2ImqSjL5w8O+KgDFDjN7FMeP6VHLkoKcL15estnSBOSIUMERnzKdCGJFIY04g3uSxbYxM6YkmWyr/U3gCvAc5dGx0MLiC4JuyKcRXYl/+0EHEr+HKL3akAt5OpOuF2l6y2YkLvJfLiLOmdpUmfG6dNqYSES+2fU7uIFoixxrSfIx1HTGcLiicOOEIKs6J1YhdLQyKn/SKoLBUQK+ED0OYF5IaBWO4VFFivve8NYO8vxi12Kt/sHDDyrqtkWpLplRfeeX9qjEFbRXYCoQzvaN8PBiC09GFs0DSgyo1yfI6gv+/r8xnSA7iIbiXB31Jv5TH9ttg7+/EjLKvt9I4rNUs6A8m7zM2JDdKDhdGA/aa5xVL2ZeTTGXG2SQUTJVnAqv4WoeHO1EwYGBes0bsmr5u/KT8fXpkUOFTGFsW8sW/RB0HkoC3t+1wr3UIz7Y42MtOjmWQcKp79za4aRjVpodV1hVKtXn9vR+/fHXsgrVDviWP4icEDbtEKv5hWAPyzchziwPifqX6w38f8P+oUN6Ml7WrBKZxD6K08hrWR+/x1i3cw7zLi10PBlEjtjnDraafoe0Q+M4s2XZYM4rOc1jx+oASw7XTeLnjTaPcrefesBJgv8PHw1CyMHqqfqZRT8WKsy03ymwItdHAQpdudpctRSQXVFDSqFKvawqnUxFvZHqkeZIgekaNotdBs7EyLGQs/RcRLXz0kIQ3Lo+1qIjghtackIgGYUM4Mwb12/lqQ5gzfaIrutx9WY2+rT9g090Tr2TMbSg5j5LpQ1AI1gJqw9ouDuRyhI91Xfz9pglWJaA1DTVWIwmFBInqKrbudiD7BbccHc9UICGoT7mwQ7AHnMQJsrPPJniURm7jvbwtjvjqUb1X6BSfSWeR4CBJ5Dm8XAmGOjQBSR4xwQmLTQJjHJHrlnnIimZeBZG+X6UrX2FblgwyhiLo91MwVOpSki/+GPB5kmO6sD8BAyrCBv47Dh99A0l4EC8SGe0QrGN2LX3576acHigqrfWTJM= X-Forefront-PRVS: 03283976A6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39850400002)(39400400002)(39410400002)(1076002)(7416002)(50986999)(76176999)(72206003)(2906002)(305945005)(189998001)(478600001)(47776003)(5003940100001)(5660300001)(6666003)(6496005)(2950100002)(42882006)(7406005)(42186005)(53936002)(6486002)(38730400002)(33646002)(54906002)(8666007)(76506005)(48376002)(4326008)(575784001)(8676002)(25786009)(81166006)(36756003)(50466002)(66066001)(6116002)(3846002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB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6sxq/qOz8DAn91/aPeQDdE2DWvS4W1rwbuxnHcQHuo+johq10B0GGVFcxJKgPsxAxQZTAGTwPh0Sbb7qFfDy9KmA0j6JQL+Yx4mXX91VG+iAtB4Adns50Glgn8RVh3v30+oU3SYH; 24:Se961WCwu16sdOUVj2Na6mLSLSA2zYoLmCeOGYkafCeBysBXOgz0RPpoRCvW+PXzdMej+dChlfdsmdfcJGj5/PX5ShIKGQJqf9DWld3qs0E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 7:rD/cowVgrakI3zAWl6p1oQu92qU5Gr7Je2KERjSZn8U5pHkEb+aCGpiuJ6Yx0pU9uNikc8R+XuVjqY5M6gOjxsWsep/FIvK0HenkM4huiwlxNR6qZMYG9Ms30ECXC+ZHuARcFBKIkviCMzI0CwC/qx32w5DI6/9/kZddscfmekPWNXcH++ruKGJ9nNDTJePVSE+eHUxoO9GNyzsFr3fnPtajccmLa+qQY3PdiEfhuFc414D+vyHtePIzvfs3MjbcvbPG0X9IMf+J2FWlrM3yHmPLPpMurbhNaXKJ/U+lWFzCKk2trskKK3c8QEjau3btCeQpaczsT9aYjh2C4YZXXg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2017 12:01:04.2131 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1266 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newer prlimit64 syscall provides all the functionality provided by the getrlimit and setrlimit syscalls and adds the pid of target process, so future architectures won't need to include getrlimit and setrlimit. Therefore drop getrlimit and setrlimit syscalls from the generic syscall list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's unistd.h prior to including asm-generic/unistd.h, and adjust all architectures using the generic syscall list to define it so that no in-tree architectures are affected. Cc: Arnd Bergmann Cc: James Hogan Cc: linux-arch@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Cc: Mark Salter Cc: Aurelien Jacquiot Cc: linux-c6x-dev@linux-c6x.org Cc: Richard Kuo Cc: linux-hexagon@vger.kernel.org Cc: linux-metag@vger.kernel.org Cc: Jonas Bonn Cc: linux@lists.openrisc.net Cc: Chen Liqin Cc: Lennox Wu Cc: Chris Metcalf Cc: Guan Xuetao Cc: Ley Foon Tan Cc: nios2-dev@lists.rocketboards.org Cc: Yoshinori Sato Cc: uclinux-h8-devel@lists.sourceforge.jp Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked-by: Mark Salter [c6x] Acked-by: James Hogan [metag] Acked-by: Ley Foon Tan [nios2] Acked-by: Stafford Horne [openrisc] Acked-by: Will Deacon [arm64] Acked-by: Vineet Gupta #arch/arc bits --- arch/arc/include/uapi/asm/unistd.h | 1 + arch/arm64/include/uapi/asm/unistd.h | 1 + arch/c6x/include/uapi/asm/unistd.h | 1 + arch/h8300/include/uapi/asm/unistd.h | 1 + arch/hexagon/include/uapi/asm/unistd.h | 1 + arch/metag/include/uapi/asm/unistd.h | 1 + arch/nios2/include/uapi/asm/unistd.h | 1 + arch/openrisc/include/uapi/asm/unistd.h | 1 + arch/score/include/uapi/asm/unistd.h | 1 + arch/tile/include/uapi/asm/unistd.h | 1 + arch/unicore32/include/uapi/asm/unistd.h | 1 + include/uapi/asm-generic/unistd.h | 5 +++++ 12 files changed, 16 insertions(+) -- 2.11.0 diff --git a/arch/arc/include/uapi/asm/unistd.h b/arch/arc/include/uapi/asm/unistd.h index 9a34136d84b2..ac6496527ad6 100644 --- a/arch/arc/include/uapi/asm/unistd.h +++ b/arch/arc/include/uapi/asm/unistd.h @@ -16,6 +16,7 @@ #define _UAPI_ASM_ARC_UNISTD_H #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/arm64/include/uapi/asm/unistd.h b/arch/arm64/include/uapi/asm/unistd.h index 043d17a21342..48355a683e25 100644 --- a/arch/arm64/include/uapi/asm/unistd.h +++ b/arch/arm64/include/uapi/asm/unistd.h @@ -15,5 +15,6 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 12d73d9d81f5..f67623137853 100644 --- a/arch/c6x/include/uapi/asm/unistd.h +++ b/arch/c6x/include/uapi/asm/unistd.h @@ -15,6 +15,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_CLONE /* Use the standard ABI for syscalls. */ diff --git a/arch/h8300/include/uapi/asm/unistd.h b/arch/h8300/include/uapi/asm/unistd.h index 7dd20ef7625a..2f98394b77d4 100644 --- a/arch/h8300/include/uapi/asm/unistd.h +++ b/arch/h8300/include/uapi/asm/unistd.h @@ -1,5 +1,6 @@ #define __ARCH_NOMMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #include diff --git a/arch/hexagon/include/uapi/asm/unistd.h b/arch/hexagon/include/uapi/asm/unistd.h index 21517600432b..52d585c5cdb2 100644 --- a/arch/hexagon/include/uapi/asm/unistd.h +++ b/arch/hexagon/include/uapi/asm/unistd.h @@ -28,6 +28,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK diff --git a/arch/metag/include/uapi/asm/unistd.h b/arch/metag/include/uapi/asm/unistd.h index 459b6ec15848..16b5cb32ec21 100644 --- a/arch/metag/include/uapi/asm/unistd.h +++ b/arch/metag/include/uapi/asm/unistd.h @@ -8,6 +8,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls. */ #include diff --git a/arch/nios2/include/uapi/asm/unistd.h b/arch/nios2/include/uapi/asm/unistd.h index 51a32c71ce2b..b0dda4de2bc7 100644 --- a/arch/nios2/include/uapi/asm/unistd.h +++ b/arch/nios2/include/uapi/asm/unistd.h @@ -18,6 +18,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT /* Use the standard ABI for syscalls */ #include diff --git a/arch/openrisc/include/uapi/asm/unistd.h b/arch/openrisc/include/uapi/asm/unistd.h index 471905bd7745..6812d81b3c6c 100644 --- a/arch/openrisc/include/uapi/asm/unistd.h +++ b/arch/openrisc/include/uapi/asm/unistd.h @@ -21,6 +21,7 @@ #define sys_mmap2 sys_mmap_pgoff #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_CLONE diff --git a/arch/score/include/uapi/asm/unistd.h b/arch/score/include/uapi/asm/unistd.h index d4008c339e89..7ad1bdcb8615 100644 --- a/arch/score/include/uapi/asm/unistd.h +++ b/arch/score/include/uapi/asm/unistd.h @@ -1,6 +1,7 @@ #define __ARCH_HAVE_MMU #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #define __ARCH_WANT_SYSCALL_NO_AT #define __ARCH_WANT_SYSCALL_NO_FLAGS #define __ARCH_WANT_SYSCALL_OFF_T diff --git a/arch/tile/include/uapi/asm/unistd.h b/arch/tile/include/uapi/asm/unistd.h index 24e9187e85a8..cf0505fe4b9c 100644 --- a/arch/tile/include/uapi/asm/unistd.h +++ b/arch/tile/include/uapi/asm/unistd.h @@ -13,6 +13,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #if !defined(__LP64__) || defined(__SYSCALL_COMPAT) /* Use the flavor of this syscall that matches the 32-bit API better. */ #define __ARCH_WANT_SYNC_FILE_RANGE2 diff --git a/arch/unicore32/include/uapi/asm/unistd.h b/arch/unicore32/include/uapi/asm/unistd.h index 9cf71c7bedb1..76ece524ab70 100644 --- a/arch/unicore32/include/uapi/asm/unistd.h +++ b/arch/unicore32/include/uapi/asm/unistd.h @@ -11,6 +11,7 @@ */ #define __ARCH_WANT_RENAMEAT +#define __ARCH_WANT_SET_GET_RLIMIT #ifndef CONFIG_UNICORE32_OLDABI diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 429dd335def6..ef90d53ac9b6 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -464,10 +464,15 @@ __SYSCALL(__NR_uname, sys_newuname) __SYSCALL(__NR_sethostname, sys_sethostname) #define __NR_setdomainname 162 __SYSCALL(__NR_setdomainname, sys_setdomainname) + +#ifdef __ARCH_WANT_SET_GET_RLIMIT +/* getrlimit and setrlimit are superseded with prlimit64 */ #define __NR_getrlimit 163 __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit) #define __NR_setrlimit 164 __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit) +#endif + #define __NR_getrusage 165 __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage) #define __NR_umask 166