From patchwork Thu Oct 7 19:57:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 12542933 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 538EDC433EF for ; Thu, 7 Oct 2021 19:59:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1EDB3610C7 for ; Thu, 7 Oct 2021 19:59:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1EDB3610C7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=J2u7GOaLP0uB0M0oviAJuilno83NczpskGCdWFbA4Rs=; b=ZscAR3VLeDRNjr YgtahbhY5IL5DWtgdeLLFVv1cvpFT0RARgmpVuCO6HmJs+m/u5r1AzWo5sxmjBrUr6ApvCjCEeGnt gNLO2YF9IrughjsuIn4wMAjy4I85wRKSGR4YXvEaEdFCubmek/qU13TSaDlvpJpTenES+/bq2rN7w +AZDYXYSxf3TZe6CbHNrdeGVl57vcI9F+xTxlt508jleOuCWq51SDQgKaeZHfpveyCCIpZmOsTUJj iocwfYpYEBrDLvmK+A6UtcIiZLevLj3lfJlRcoV2UNzdYHVp9YABiyvLihXboYyPTL4SE+sOP+oRa rjEhmj5ho2/o0ECFewWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYZWj-000eim-Bj; Thu, 07 Oct 2021 19:58:01 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYZWf-000ei5-IT for linux-arm-kernel@lists.infradead.org; Thu, 07 Oct 2021 19:57:58 +0000 Received: by mail-lf1-x134.google.com with SMTP id m3so29759914lfu.2 for ; Thu, 07 Oct 2021 12:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gGor7P/MIIDgun+i6pgA/MAZ+H3uPhOwk6A6sZ0hHBg=; b=R21iyWGzTKdQqmMBYI2znBis9JMYix+KD+eQYwhHITr+sbTfzNgUKiXduLLARgrn4l TqxZuEYBstH7BalmGfU2HAdusajKhPsuPSBvzJKOpqxYrJDFEkw9mr4BtJ9qS+0pOh7w xCeUb/H937PWeZGJGy5WjbIsVyRMHY12UoH/cqReszvmjbXE1jkHRVafTnW3n2KaK0sF k5tPFpFjFqKR2FOGYFGMBjRby63e4yvkiUKvZ/8Lt1L7S+Qqfaf1HPjGmr5gI37oAO/J /aXxZiq8VqsdDL28ZH4ABKneC77tXtDR4PKwDvzPMru+4cRJd4UDVW6CNqyPpA7YJPv2 88Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gGor7P/MIIDgun+i6pgA/MAZ+H3uPhOwk6A6sZ0hHBg=; b=iGDF+xC5wEMNuKKDwIDRPxxG/k/Gz/exHt7gbAekIE7lOo10Q2JGQdbgX3rGPbkMHu /T/svOFqUZ+qikmGblIdUGeBDPzMk5CV3rCA6diObIQZkT0VxyDezT9P84Rvfl/QeVeT XTuh2/9S0bj8PcRtWfNg4MFvFdiNermvLTXbOT1YsdVyagf4I36N3g/wEiR56HZs/iho XhPbefgqRyR7hV8B4LRCm04WAOiDERa7Ve30k0O9ffadJ6SAl7J1nPMbgARKFS0/JWyq FTot09szlytIPLpciNqBkCzIXEeYp3FjAz8MB0NDeKgqybLzYjq00ndiPmSiitPVID8i Vfww== X-Gm-Message-State: AOAM531xFPnUbosRohafH1odTM1LnXLG2MPkBe6NctQkTcFbpicIbwaI IM8KkVu6YQvU/ZAyf4fVneFUBWe0Y01oZQ== X-Google-Smtp-Source: ABdhPJxdKUQ7lvhSAIpU8tyzVwN7scOF7NKER+x/zyBHDMQhvXRLE1KitpZP2CT/OyZGGgTxzSjtXA== X-Received: by 2002:a2e:8041:: with SMTP id p1mr6546011ljg.158.1633636676165; Thu, 07 Oct 2021 12:57:56 -0700 (PDT) Received: from localhost (c-9b28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.155]) by smtp.gmail.com with ESMTPSA id d26sm26925lfi.154.2021.10.07.12.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 12:57:55 -0700 (PDT) From: Anders Roxell To: catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] arm64: asm: vdso: gettimeofday: export common variables Date: Thu, 7 Oct 2021 21:57:54 +0200 Message-Id: <20211007195754.678124-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211007_125757_633296_4F532BF6 X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When building the kernel with sparse enabled 'C=1' the following warnings can be seen: arch/arm64/kernel/vdso/vgettimeofday.c:9:5: warning: symbol '__kernel_clock_gettime' was not declared. Should it be static? arch/arm64/kernel/vdso/vgettimeofday.c:15:5: warning: symbol '__kernel_gettimeofday' was not declared. Should it be static? arch/arm64/kernel/vdso/vgettimeofday.c:21:5: warning: symbol '__kernel_clock_getres' was not declared. Should it be static? Rework so the variables are exported, since these variables are created and used in vdso/vgettimeofday.c, also used in vdso.lds.S. Signed-off-by: Anders Roxell --- arch/arm64/include/asm/vdso/gettimeofday.h | 7 +++++++ arch/arm64/kernel/vdso/vgettimeofday.c | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/arm64/include/asm/vdso/gettimeofday.h b/arch/arm64/include/asm/vdso/gettimeofday.h index 4f7a629df81f..da8dfb119c30 100644 --- a/arch/arm64/include/asm/vdso/gettimeofday.h +++ b/arch/arm64/include/asm/vdso/gettimeofday.h @@ -12,6 +12,13 @@ #define VDSO_HAS_CLOCK_GETRES 1 +extern int __kernel_clock_gettime(clockid_t clock, + struct __kernel_timespec *ts); +extern int __kernel_gettimeofday(struct __kernel_old_timeval *tv, + struct timezone *tz); +extern int __kernel_clock_getres(clockid_t clock_id, + struct __kernel_timespec *res); + static __always_inline int gettimeofday_fallback(struct __kernel_old_timeval *_tv, struct timezone *_tz) diff --git a/arch/arm64/kernel/vdso/vgettimeofday.c b/arch/arm64/kernel/vdso/vgettimeofday.c index 4236cf34d7d9..1a44d1e32746 100644 --- a/arch/arm64/kernel/vdso/vgettimeofday.c +++ b/arch/arm64/kernel/vdso/vgettimeofday.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 ARM Limited * */ +#include int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)