From patchwork Sat Dec 7 19:10:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 180946 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2406579ile; Sat, 7 Dec 2019 11:11:47 -0800 (PST) X-Google-Smtp-Source: APXvYqwaPdc4Yi+ikmVao0WxCDH0a6N5oyovz+eGi0H/RHtdBf1vpG5Ppyte4DzgwIjT6T0uBzLA X-Received: by 2002:aca:fc06:: with SMTP id a6mr11593301oii.12.1575745906960; Sat, 07 Dec 2019 11:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575745906; cv=none; d=google.com; s=arc-20160816; b=aCWT+Texbt6cgMcvVkgU6x6giYinDNM83HaZEsZRQ1na4KWJV1mbzhYROy88J8Zq4x ufoGwt4ArqjFusQOS53QG8JXsPeWP6Xopy2WSn5xQdi7m3tjCv/CeQSAEDEazOl4msF8 sd02Tzh24Od7YUlw/PxO/4hyIJnobyPByrjPArHQG6C+UpsffTdYg6ICiTg4sh81dVB0 57qai6ZAR6xY8cfi/OTKJAEkf1BjMA6E3UzTv2XuzmgJYoX6e0IvxcoKgep8BAGkBXqt edzVgpkrMfhmewTbCAYk2mEdqjN60O3l1x/tkmP+GrTu6oFiJ6uc/HyIaCpJOKHRTM0h T7oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=m3dlB2iYOlIGa4eK/PWdKjd+H0/lqMSL8Ilqx4m5CXQ=; b=NXhgjsI57qEqu3r5OFo7ovvc0rXPjKv0FEo7VcgXxWEMj5T5ITIP2k5+KUEB2VtO05 C9wIr/yQ9D9ecGdlrgY7OLEuNtd2ulPEhIKtuNl+YTNx6m0W5mqpDv2ozckrA6EIwBni HiorSHsahOcKUJLqFiCdTrikPoeW99N6kg/oxRnUEkLIb4U1/xscStBI3oWKtu1uomo5 YvfRTKd+RWkLwv0EGcSQKa20uHRDkhR541qH/vzypmn5eqU2uwbc841fYCDjd29YqtxQ 3xXnWRerRs1LiLaRowu5SEfJBKn9PERrjEjsOo4Mp9QqXl2VdIQ0LlkdXwSN6eIlCEyT +QvQ== ARC-Authentication-Results: i=1; mx.google.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 z13si10076304oti.272.2019.12.07.11.11.46; Sat, 07 Dec 2019 11:11:46 -0800 (PST) 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; 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 S1726654AbfLGTLc (ORCPT + 27 others); Sat, 7 Dec 2019 14:11:32 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:55327 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbfLGTLb (ORCPT ); Sat, 7 Dec 2019 14:11:31 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MYedH-1iGj1o0shn-00VfUD; Sat, 07 Dec 2019 20:10:47 +0100 From: Arnd Bergmann To: Thomas Gleixner , Andrew Morton Cc: linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , Arnd Bergmann , Guenter Roeck , kbuild test robot , linux-kernel@vger.kernel.org Subject: [PATCH] time: posix-stubs: provide compat itimer supoprt for alpha Date: Sat, 7 Dec 2019 20:10:26 +0100 Message-Id: <20191207191043.656328-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:FnOMuTqNkYh1zOphjAXkeSa0YP/RgdiwY9sOcbhXU8ppye9esY5 RK4bhWuGfTpD7jPJmjzT6gDuJrAtXBfoiHwn+BasAafwJ0ivKuBsuNh8P/c5ia2zXAyT76t VQwC9W/r8z/cAQUAQnKokfOcRhthwuDdpiPNBai5M9+4B0806NSQIFTotfPThhlIK4nevpA pPd/6PbAhDC3nvdu7KhCA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:k7jGVmzOwJk=:KveIdCulhuTvHXyjjP/N53 91of+zTxJv9LtN29iaSW7LQJNZJ3UeZ2UwkLLnPN7fpDPD7UOKrB9GTQmNGnA83GSs5R465uc QSFCt1rvdwRIJwxUGq/PHgbeJblUwlkD6hP1+SPgs26OfAHwdL363WOStNOp+HDyksZaeNfT1 SkFBuW5K3iiY4APopNRNUCXreMFslq0b5UmAIrqiuP2zVLBeU4EgplBMiSv/PmXTwQ4Z7UNqx MmGPleFPwqsPgt+D+1bI9TiejcrNUQMFINktBjnPJioEUi/uqN3PnLtt6Rk4Wq07bDVYT9Ozb AWFNlJuIkVmbIqU47WcqHAzYzZEUjWdge9HpEcCsl3e0Uw0Ndp7C607Vk7/fmVqpNTkngrwH2 /rWMeG5uorz/RFVLriEaSZMdE4I2RwsDqV6dyykiqC4VBTTwjiWGfGBQctvkAQD7lVMDBdXT1 5wNy+EsxjT0dRngrMqLnRQq3LhrZaSJlyfPADrS+veAA9K8vX++8pUHmtUWFE4zcRcHL4LOoM kMpdFiv0nBA9N7ZQhUf2oc2FuTOzCeuEpNqDDqbNtxXOyT6RFXcFWW9ZOTTKEX2R8lzklY6yJ 0LJv+1UOps+CzEc+6DMGEzK1Vl4Aa3d3qwj5DSUzmiVYolgkWB1oflrpAJFYbiGodvN5R8YgK VnCJlP62KgjfiqX1UXm1MWQ+HMt+faZwz86uI1oQkZ7sVxQwUma1QszTDwL9HWZIK08wxmI67 tT0PA2qZ8Q0a7fFHpqOyGL7kapjuuwLGrs/MfslrFRgXkEKZ4qIuwDErfEbGEW1w2ClgmAcJR sWenC2H+X3Ehlo+XohNmDpYtJrJ6xmfZ/4GjapnbRmRgjWi7mVAJ7oEWN/RA1DLmgm4Svjsjx XSuCguz3tGBnfq3sEmfw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using compat_sys_getitimer and compat_sys_setitimer on alpha causes a link failure in the Alpha tinyconfig and other configurations that turn off CONFIG_POSIX_TIMERS. Use the same #ifdef check for the stub version as well. Reported-by: Guenter Roeck Reported-by: kbuild test robot Fixes: 4c22ea2b9120 ("y2038: use compat_{get,set}_itimer on alpha") Signed-off-by: Arnd Bergmann --- kernel/time/posix-stubs.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.0 Tested-by: Guenter Roeck diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index 67df65f887ac..20c65a7d4e3a 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c @@ -151,6 +151,9 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, #ifdef CONFIG_COMPAT COMPAT_SYS_NI(timer_create); +#endif + +#if defined(CONFIG_COMPAT) || defined(CONFIG_ALPHA) COMPAT_SYS_NI(getitimer); COMPAT_SYS_NI(setitimer); #endif