From patchwork Wed Mar 28 14:11:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132528 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp526146ljb; Wed, 28 Mar 2018 07:12:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/VxhMaXu5zG1wOkjuGo0Vv3cJVF+1xGUP2y10TU5lT9ztElNI7oNReMCl34QSjj02x6TVT X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr4025916plt.111.1522246354217; Wed, 28 Mar 2018 07:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522246354; cv=none; d=google.com; s=arc-20160816; b=Ar2Pa09cufEGA++u0ThW2LG0AAF7mIdW1gLXx7/oOqn5G5vgoWSiDbVhHvKMuQgR2T 3NkxfvtOzhp6daj8HpOAMJPDemN79mt9SOPfaYRazSR6Gla3TNf2NLxR1Gyf7vu2oeJO uK7MWMPEBXJKyaPxJO9mNyNVexmhN+XKLrkdwingvGofJ6/Z6ETmz1wWaQw4vVLQLESk 5kBIP1Fs3y1oJexoXRBRWANPVZTugdnxTSomBRSz7UB/r9GQjSqQvoXnJrMEFNMiQA/S kciJ8aHxufBiW8I7iOl1yG6yBpzC31uCP6l3FFrfYb9Qi08pfEZgBJsbEmujreaiXJcL fSkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gnKQmGVx4OABxD8S/iCyUcgUSw65vMJKPnsTk7dIEWI=; b=xF527Pszk3RnfINFacP8KTTlz7eNDariuDd3WXEf9b5WU4tW/jKoR5ZvpWQyNfWHJT 7FWL4ksglQKJGmdD4CkcCnwINu/ZCBN7EPgbONxTjaYn4vlakBcPg4EYi5MX5K9bhQ+V 1taLlGqkA7IyTYzk2wQXOVpPR+I/X3oi6NrnqhGtm0ApvpDtPHw++pGZ6kTMC1imfiDi oLKGs1H/a63CbO8nmft2Wkgv4LauzMJft2c3bU5Nagr8s8PGkeh9I4mxyhYSE6hsyX6w xtXbamv4y86UmbiQ6iidwT7eq1s1iUaaJTxyJ4Rw9/7ddUeweCoaumcbXeHbJebEwoPQ 3jmQ== 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 n19si2768593pff.256.2018.03.28.07.12.33; Wed, 28 Mar 2018 07:12:34 -0700 (PDT) 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 S1753501AbeC1OMa (ORCPT + 28 others); Wed, 28 Mar 2018 10:12:30 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:46763 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbeC1OM3 (ORCPT ); Wed, 28 Mar 2018 10:12:29 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lzkot-1eVTlD35CF-0154yi; Wed, 28 Mar 2018 16:12:08 +0200 From: Arnd Bergmann To: John Stultz , Thomas Gleixner Cc: Viresh Kumar , Zhang Rui , Arnd Bergmann , Stephen Boyd , Deepa Dinamani , Al Viro , linux-kernel@vger.kernel.org Subject: [PATCH] time: export nsec_to_clock_t Date: Wed, 28 Mar 2018 16:11:54 +0200 Message-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nm5DGX6U6byC7OEZxvfgs6 EEgizNeubF2dweumgNXwGN005U3cTuviITpO2Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nsec_to_clock_t was traditionally used only in the core kernel, now we have a sysfs file that needs it from a loadable module, causing a link-time error: ERROR: "nsec_to_clock_t" [drivers/thermal/thermal_sys.ko] undefined! This exports the function the same way that we do for related interfaces. Fixes: 96cea33badc5 ("thermal: Add cooling device's statistics in sysfs") Signed-off-by: Arnd Bergmann --- kernel/time/time.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 diff --git a/kernel/time/time.c b/kernel/time/time.c index 6fa99213fc72..97a262531f68 100644 --- a/kernel/time/time.c +++ b/kernel/time/time.c @@ -768,6 +768,7 @@ u64 nsec_to_clock_t(u64 x) return div_u64(x * 9, (9ull * NSEC_PER_SEC + (USER_HZ / 2)) / USER_HZ); #endif } +EXPORT_SYMBOL(nsec_to_clock_t); u64 jiffies64_to_nsecs(u64 j) {