From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from hauke-m.de ([5.39.93.123]:42883 "EHLO hauke-m.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701AbbLIWsH (ORCPT ); Wed, 9 Dec 2015 17:48:07 -0500 Subject: Re: [PATCH v2] backports: add ktime_get_seconds() To: Arend van Spriel , Johannes Berg , backports@vger.kernel.org References: <1445601179-3434-1-git-send-email-johannes@sipsolutions.net> <563E301B.7090609@hauke-m.de> <56669864.3050404@broadcom.com> Cc: Johannes Berg From: Hauke Mehrtens Message-ID: <5668AFA3.3070102@hauke-m.de> (sfid-20151209_234826_018800_C3315955) Date: Wed, 9 Dec 2015 23:48:03 +0100 MIME-Version: 1.0 In-Reply-To: <56669864.3050404@broadcom.com> Content-Type: text/plain; charset=windows-1252 Sender: backports-owner@vger.kernel.org List-ID: On 12/08/2015 09:44 AM, Arend van Spriel wrote: > On 11/07/2015 06:08 PM, Hauke Mehrtens wrote: >> On 10/23/2015 01:52 PM, Johannes Berg wrote: >>> From: Johannes Berg >>> >>> Since commit 84b00607aeb8 ("mac80211: use ktime_get_seconds") >>> mac80211 uses ktime_get_seconds(). This patch provide a backport >>> using ktime_get_ts() for it. >>> >>> [commit message and time64_t taken from Arend's patch] >>> >>> Signed-off-by: Arend van Spriel >>> Signed-off-by: Johannes Berg >>> --- >>> backport/backport-include/linux/ktime.h | 1 + >>> backport/backport-include/linux/timekeeping.h | 21 >>> +++++++++++++++++++++ >>> backport/backport-include/linux/types.h | 10 ++++++++++ >>> 3 files changed, 32 insertions(+) >>> create mode 100644 backport/backport-include/linux/timekeeping.h >>> create mode 100644 backport/backport-include/linux/types.h >>> >> Thank you for the patch, it was applied. > > Hi Hauke, Johannes, > > I hit a duplicate export of this function against Fedora 22 kernel > (v4.0.4). So they apparently backported it in their kernel. So I > manually removed the function from backports tarball. Could this be > automated by looking at Module.symvers of the kernel we build against? I > will explore that if you guys consider it useful. > > Regards, > Arend Hi, I think in this patch adding this should fix your concrete problem: #define ktime_get_seconds LINUX_BACKPORT(ktime_get_seconds) But it would still be nice to know what functions are in the mainline kernel so we can use them. Hauke -- To unsubscribe from this list: send the line "unsubscribe backports" in