Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4069949imw; Tue, 12 Jul 2022 00:42:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1solpf/Z89aBKZNECEpb+1GUmmzzJhKMWyuRoseKT8zDj99A9gg5vvnfv5V0G5ihx2gCGwO X-Received: by 2002:a62:b60d:0:b0:528:99aa:da09 with SMTP id j13-20020a62b60d000000b0052899aada09mr22634822pff.86.1657611726334; Tue, 12 Jul 2022 00:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657611726; cv=none; d=google.com; s=arc-20160816; b=skjSodF1nWJR8lRUObSGoeFV6LLEFeAjcrM4og/RK7La3/Bo0KIFn13/5sdFQpFH7j WJFDcakT9hYwNGo6yvI4pdptt+yeQeDrZcmk9LBABuC44Dyn0qKA5Fw/A03bRUqPhTb3 BkIFDrcgPc69XJB3DkZwu+ONAkLEg39QKP2Q/5SzhNGnJByEcPMvVlEpA+Rjy8Zts/9q h95PAtC+kgqV87iSxvExB4A17IvAclYO/3og/FEUkfA7AQsQZAfPsXnbEnoNF/T+PT2z yG6h4ouCxPWjMxrhxhPVHtcNnBqWJImUpaQrVtmGyqAhmJLikWiEySEnvnpD29NyHW6W 3h4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=EHjvu6y7/2YojqWSmEKVMsufu+19zzgWWK0dq1IW5LE=; b=avTVvy6Akj9wbqeIcR3l9g4RvW1DyObh5/dxA5nc6SEdUVktY/P9ZmPI+ttVwK3IIR xn5eZRwd+TcLK5UfFZy5axU6g5sbqR1HINOhV3Fc9aUFpTzya+OSzeGqIL+7FYWmxvk7 S8v1oZuYHIvyDcUs7MtHGx5uU0Cln62yPp3+Ho8O8tOiuwARe3bq/aWVGNQUif9nRgt2 0laddrQ697zNngBaMnku25IPbSAuYfjdh7VAxYYSZQdhlVtqx19ERaZGABMxXbyF8K9w UL4rvu0UNvktGMa2TIHOPVZ9RJjDXTUcmzd/LOnUdrFAkL8fN4Y5Q12vk8v9mnYPmEBT vt+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ja3CjxJ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020a6560d3000000b004124f034b49si13324961pgv.529.2022.07.12.00.41.53; Tue, 12 Jul 2022 00:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ja3CjxJ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232334AbiGLHTx (ORCPT + 99 others); Tue, 12 Jul 2022 03:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232295AbiGLHTv (ORCPT ); Tue, 12 Jul 2022 03:19:51 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85370DF97 for ; Tue, 12 Jul 2022 00:19:48 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220712071943epoutp03bd9b9a5ced5f48b1e3fd7fa467133557~BA9x69gKh0170801708epoutp03Q for ; Tue, 12 Jul 2022 07:19:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220712071943epoutp03bd9b9a5ced5f48b1e3fd7fa467133557~BA9x69gKh0170801708epoutp03Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1657610383; bh=EHjvu6y7/2YojqWSmEKVMsufu+19zzgWWK0dq1IW5LE=; h=From:To:Cc:Subject:Date:References:From; b=ja3CjxJ9JpsKbrfqaHyasOYntapJahQW4LTPX4UEn/YrPmFwV+RvigONK2rL/OeUC Dwjb5OW++BugoharaxywisJfjooWuygeqyPOfSVhfEZmdoxa3Cwfy52o6lFQLxCOLZ ZBl2Ug0nA4oCVcZVXNZyAYApeY4dyI39W9fG9BIE= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20220712071942epcas2p12cb4281c50858e5106d589095a5d116b~BA9xh3cgF1152111521epcas2p1k; Tue, 12 Jul 2022 07:19:42 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.100]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LhsZk299rz4x9QL; Tue, 12 Jul 2022 07:19:42 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id F0.6F.09650.E802DC26; Tue, 12 Jul 2022 16:19:42 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20220712071941epcas2p2faa87d8efe182e9c28a924ea3de15209~BA9wbs-n_2622626226epcas2p2Z; Tue, 12 Jul 2022 07:19:41 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220712071941epsmtrp158a6dd6acde05b08d9b4fe0e63491588~BA9wapZ6I1405214052epsmtrp1-; Tue, 12 Jul 2022 07:19:41 +0000 (GMT) X-AuditID: b6c32a46-8bff9a80000025b2-84-62cd208e6ce9 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id D2.E4.08802.D802DC26; Tue, 12 Jul 2022 16:19:41 +0900 (KST) Received: from perf.dsn.sec.samsung.com (unknown [10.229.95.91]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220712071941epsmtip226883a377075c6cd507195e56d0c0a26~BA9wMwcuA1227712277epsmtip2F; Tue, 12 Jul 2022 07:19:41 +0000 (GMT) From: Youngmin Nam To: arnd@arndb.de, jstultz@google.com, tglx@linutronix.de Cc: sboyd@kernel.org, linux-kernel@vger.kernel.org, youngmin.nam@samsung.com, chanho61.park@samsung.com, hajun.sung@samsung.com, hosung0.kim@samsung.com, d7271.choe@samsung.com Subject: [PATCH] time: remove useless "const" keyword in ns_to_kernel_old_timeval() and ns_to_timespec64() Date: Tue, 12 Jul 2022 16:47:05 +0900 Message-Id: <20220712074705.420399-1-youngmin.nam@samsung.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmmW6fwtkkg73/uC3+TjrGbnF5v7bF tb0T2S2a9l9itvh6/RG7xZ8TG9ksLu+aw2bx79pGFovNm6YyWyw+8Indgcvj969JjB4LNpV6 bFrVyebx7tw5do++LasYPT5vkgtgi8q2yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0 MFdSyEvMTbVVcvEJ0HXLzAE6TEmhLDGnFCgUkFhcrKRvZ1OUX1qSqpCRX1xiq5RakJJTYF6g V5yYW1yal66Xl1piZWhgYGQKVJiQnbFx0R3Wgoe8FbNvvmdvYLzC3cXIwSEhYCLR3hnUx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4LNpV6 bFrVyebx7tw5do++LasYPT5vkgtgi+KySUnNySxLLdK3S+DK2LjoDmvBQ96K2TffszcwXuHu YuTkkBAwkfizvI+li5GLQ0hgB6PEr0NL2CESMhK3V15mhbCFJe63HGGFKPrMKHHv1AewIjYB XYltJ/4xgtgiArYSH5bNYwcpYhbYwyjxbe48sG5hgSyJOysOghWxCKhKnH19iAnE5hWwk3i0 7zxbFyMH0AZ5iT+vBCDCghInZz5hAbGZgcLNW2czT2Dkm4UkNQtJagEj0ypGydSC4tz03GLD AqO81HK94sTc4tK8dL3k/NxNjOBQ1tLawbhn1Qe9Q4xMHIyHGCU4mJVEeP+cPZUkxJuSWFmV WpQfX1Sak1p8iFGag0VJnPdC18l4IYH0xJLU7NTUgtQimCwTB6dUA1M3+8TYn7WBZ8XPzzoR mWLSsStmvov+JJNOnqy7N+/EPz12dMtkqfMiR5KPvO9Nu7nj2cGNBvaGoeFXTqx0Npl6O3Pp yv1TGoKl//xZdv1X6dkFG140PQ8y4LqsEZGaGnrO7VDfpX9yiWlGImXphWd3TZe6YrtoSaX8 dGnJj2ffS5w5rOVw08Fxcffu+oh8u+Mz+t/EbZlxwbvESXnSxVkOfB3zTH6vDBHI/28wQ/61 q/JzdtvpsRwVGe1q/Eka65oWqRe84f/+rf/ipvIJdbxN3Evddbdz1Ipf8c8NO3Uj+vnDMzZ8 KvulHI5GX83+cmzhvbmTWDea+iVe//mxWK4ix4aF41Lb57KquQKRceVKLMUZiYZazEXFiQBR kd6L1AIAAA== X-CMS-MailID: 20220712071941epcas2p2faa87d8efe182e9c28a924ea3de15209 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220712071941epcas2p2faa87d8efe182e9c28a924ea3de15209 References: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As mentioned below, https://lore.kernel.org/lkml/CAK8P3a3nknJgEDESGdJH91jMj6R_xydFqWASd8r5BbesdvMBgA@mail.gmail.com/ The "const" keyword is useless, so we drop it from the function definition and declaration. Change-Id: If35bba78aa7757476e22be42afc719c27fb0f527 Signed-off-by: Youngmin Nam --- include/linux/time64.h | 2 +- kernel/time/time.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/time64.h b/include/linux/time64.h index 81b9686a2079..ee021da0966e 100644 --- a/include/linux/time64.h +++ b/include/linux/time64.h @@ -142,7 +142,7 @@ static inline s64 timespec64_to_ns(const struct timespec64 *ts) * * Returns the timespec64 representation of the nsec parameter. */ -extern struct timespec64 ns_to_timespec64(const s64 nsec); +extern struct timespec64 ns_to_timespec64(s64 nsec); /** * timespec64_add_ns - Adds nanoseconds to a timespec64 diff --git a/kernel/time/time.c b/kernel/time/time.c index 29923b20e0e4..526257b3727c 100644 --- a/kernel/time/time.c +++ b/kernel/time/time.c @@ -449,7 +449,7 @@ time64_t mktime64(const unsigned int year0, const unsigned int mon0, } EXPORT_SYMBOL(mktime64); -struct __kernel_old_timeval ns_to_kernel_old_timeval(const s64 nsec) +struct __kernel_old_timeval ns_to_kernel_old_timeval(s64 nsec) { struct timespec64 ts = ns_to_timespec64(nsec); struct __kernel_old_timeval tv; @@ -503,7 +503,7 @@ EXPORT_SYMBOL(set_normalized_timespec64); * * Returns the timespec64 representation of the nsec parameter. */ -struct timespec64 ns_to_timespec64(const s64 nsec) +struct timespec64 ns_to_timespec64(s64 nsec) { struct timespec64 ts = { 0, 0 }; s32 rem; -- 2.34.0