From patchwork Sat Jun 24 18:45:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 9807861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE7856086C for ; Sat, 24 Jun 2017 18:50:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B648728414 for ; Sat, 24 Jun 2017 18:50:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB3942873A; Sat, 24 Jun 2017 18:50:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46CD3286E1 for ; Sat, 24 Jun 2017 18:50:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755212AbdFXSun (ORCPT ); Sat, 24 Jun 2017 14:50:43 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34674 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755187AbdFXSul (ORCPT ); Sat, 24 Jun 2017 14:50:41 -0400 Received: by mail-pf0-f193.google.com with SMTP id d5so12276035pfe.1; Sat, 24 Jun 2017 11:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dWd0QOJ4xMh19LTeoTe6aIjY1zFopPYQXIgSVv7JAfY=; b=EZsMqLfcFzwmMd8lgdjbuS5Vsc/ZAjr34IVm5AKeywJFmWN4PEorl5F9giPo2GD2tY 48U+c97MeKxMRlsABPaY7s7QAujsxrfd3+RruqlS1w1eZQFfZv/iLQlt+Tqr1gzk+vs3 QzMHZjhrtCEwV9an0Ao2E8Ii01wDklHKmQgNDRfOIGjE8DfNGeLYFH5ej7EKOFQdi89q WpD7nqPnrtuhKKxxJV3+ueKOxDPlSBe0G8wSOL5pGDdvVNAx0Sjt8CzkqZ48N0/7YcY/ jRZ6Ox8hvJ7eezUjV2R0i0xb8Iy/xxZymF3XlBi3u1e5O+uJ7L4CIQQRoQ9I/F82jCj/ 164g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dWd0QOJ4xMh19LTeoTe6aIjY1zFopPYQXIgSVv7JAfY=; b=JWoDy8TrkzbKVRHcEF5uKfNIXvGwQGDdMtEAzDJDPzQHeWevIGAyPVgKQLU2kye0+E lQTz6qqRfhrWs/Rq+nqF3sZxU2H87a78YsUb9NPWbagB+dlh3pU50dhDh8Ak+8A7RxI8 Zy3LwO49hwH2XNi36o2yGQKFA1Tapn9NC6hb17gcWMZBHAm/nypZq7Z2CB82jKNLhdBK e1FVYRkUbjzqT4XPIb4v710YEycoje3AhtAKLMrQ1wWSdQ8zZXjcz/USeGRavWYiEFFR qTUzqXUQ/l/f2czze69VRs5Gok2UfHSdmKO9w1z6lAkRg4OdJGXFD5mW7+sJb0EUJg3A /jqQ== X-Gm-Message-State: AKS2vOyMdg+W88ZwESq07TkdLMMuyojSmCH+CMyx+/mINgN5UT6cm8ee ip93cUGGvrk07g== X-Received: by 10.101.90.75 with SMTP id z11mr14410630pgs.254.1498330235814; Sat, 24 Jun 2017 11:50:35 -0700 (PDT) Received: from localhost.localdomain ([2601:647:5000:6620:f5bf:c3b8:fb4d:c7d2]) by smtp.gmail.com with ESMTPSA id l4sm6289981pgr.21.2017.06.24.11.50.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Jun 2017 11:50:35 -0700 (PDT) From: Deepa Dinamani To: tglx@linutronix.de, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Cc: john.stultz@linaro.org, nicolas.pitre@linaro.org, arnd@arndb.de, y2038@lists.linaro.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v3 3/7] posix-stubs: Conditionally include COMPAT_SYS_NI defines Date: Sat, 24 Jun 2017 11:45:04 -0700 Message-Id: <20170624184508.21500-4-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170624184508.21500-1-deepa.kernel@gmail.com> References: <20170624184508.21500-1-deepa.kernel@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These apis only need to be defined if CONFIG_COMPAT is enabled. Signed-off-by: Deepa Dinamani --- kernel/time/posix-stubs.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index 38f3b20efa29..65878221cbfb 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c @@ -41,12 +41,6 @@ SYS_NI(setitimer); #ifdef __ARCH_WANT_SYS_ALARM SYS_NI(alarm); #endif -COMPAT_SYS_NI(timer_create); -COMPAT_SYS_NI(clock_adjtime); -COMPAT_SYS_NI(timer_settime); -COMPAT_SYS_NI(timer_gettime); -COMPAT_SYS_NI(getitimer); -COMPAT_SYS_NI(setitimer); /* * We preserve minimal support for CLOCK_REALTIME and CLOCK_MONOTONIC @@ -138,6 +132,13 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, } #ifdef CONFIG_COMPAT +COMPAT_SYS_NI(timer_create); +COMPAT_SYS_NI(clock_adjtime); +COMPAT_SYS_NI(timer_settime); +COMPAT_SYS_NI(timer_gettime); +COMPAT_SYS_NI(getitimer); +COMPAT_SYS_NI(setitimer); + COMPAT_SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, struct compat_timespec __user *, tp) {