From nobody Sat Apr 18 02:47:59 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6791C433EF for ; Tue, 19 Jul 2022 08:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237175AbiGSI40 (ORCPT ); Tue, 19 Jul 2022 04:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237159AbiGSI4X (ORCPT ); Tue, 19 Jul 2022 04:56:23 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086561FCEB for ; Tue, 19 Jul 2022 01:56:21 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 966A434B89; Tue, 19 Jul 2022 08:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1658220980; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GIWvK6SdOkdTzLJ2dgaOPeK8zxVvAr1FGwnG8t4MDVQ=; b=lA27UtdXd6BYpr2fHMRc/+rXqPbnU+dk/9tcQBYL1Ih5iPFQObdKP0+89QKxemOIfrN2U1 iWJrxg+EwpXCsDi9f7VRoVs575XFLbh3gBYaXxl1LUIam8/jE1v2aHN6KTjGWkaKfm0Ar/ 7miOWPk1Pr95yUc5pQfqiOZOGac+P/U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1658220980; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GIWvK6SdOkdTzLJ2dgaOPeK8zxVvAr1FGwnG8t4MDVQ=; b=Fb1TUitTC+JzYVidc8leyHcSjUHGwt76YjXhpmpPOzR3/+zlHG6jMt295m3I1pIPHkSrvt BK86lzVaBGlQjVDQ== Received: from localhost.localdomain (unknown [10.100.201.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 7405F2C141; Tue, 19 Jul 2022 08:56:20 +0000 (UTC) From: Jiri Slaby To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH] posix-timers: make do_clock_gettime() static Date: Tue, 19 Jul 2022 10:56:20 +0200 Message-Id: <20220719085620.30567-1-jslaby@suse.cz> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org do_clock_gettime() is used only in posix-stubs.c, so make it static. It avo= ids a compiler warning too: time/posix-stubs.c:73:5: warning: no previous prototype for =E2=80=98do_clo= ck_gettime=E2=80=99 [-Wmissing-prototypes] Cc: Thomas Gleixner Signed-off-by: Jiri Slaby --- kernel/time/posix-stubs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/time/posix-stubs.c b/kernel/time/posix-stubs.c index fcb3b21d8bdc..90ea5f373e50 100644 --- a/kernel/time/posix-stubs.c +++ b/kernel/time/posix-stubs.c @@ -70,7 +70,7 @@ SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clo= ck, return do_sys_settimeofday64(&new_tp, NULL); } =20 -int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) +static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) { switch (which_clock) { case CLOCK_REALTIME: @@ -90,6 +90,7 @@ int do_clock_gettime(clockid_t which_clock, struct timesp= ec64 *tp) =20 return 0; } + SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) { --=20 2.37.1