From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752469AbcGUMwd (ORCPT ); Thu, 21 Jul 2016 08:52:33 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36942 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbcGUMw3 (ORCPT ); Thu, 21 Jul 2016 08:52:29 -0400 Date: Thu, 21 Jul 2016 14:52:24 +0200 From: Daniel Lezcano To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Wan Zongshun , devicetree@vger.kernel.org, jason@lakedaemon.net, Wan Zongshun , linux-kernel@vger.kernel.org, Russell King , p.zabel@pengutronix.de, Thomas Gleixner , linux-clk@vger.kernel.org Subject: Re: [PATCH v2 03/10] Clocksource: add nuc970 clocksource driver Message-ID: <20160721125224.GA10047@linaro.org> References: <1468135649-19980-1-git-send-email-vw@iommu.org> <3277576.eNgdG7zPqq@wuerfel> <57849D2B.60305@iommu.org> <26830152.1oBSpuVOM0@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26830152.1oBSpuVOM0@wuerfel> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2016 at 10:28:35AM +0200, Arnd Bergmann wrote: [ ... ] > > > Also the init function has changed its return type in linux-next: > > > > > >> +static void __init nuc970_timer_of_init(struct device_node *node) > > > > > > This now needs to return an error code or we get: > > > > > > ../include/linux/of.h:1004:20: error: comparison of distinct pointer types lacks a cast [-Werror] > > > .data = (fn == (fn_type)NULL) ? fn : fn } > > > > > > Daniel Lezcano seems to have implemented a migration strategy, but I > > > can't see what you are supposed to do here, since the > > > CLOCKSOURCE_OF_DECLARE_RET macro is no longer part of linux-next. > > > > Wait for Daniel's comments? or what should I do now? > > Yes, let's see what he says. I guess from the timing, this will probably > have to wait for linux-4.9 anyway, and then we have no problem because the > API change will make it into 4.8. CLOCKSOURCE_OF_DECLARE_RET was renamed back to CLOCKSOURCE_OF_DECLARE but it expects now an init function returning an 'int'. These changes are now in tip/timers/core, so in linux-next.