From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbcGUMzv (ORCPT ); Thu, 21 Jul 2016 08:55:51 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:49936 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349AbcGUMzr (ORCPT ); Thu, 21 Jul 2016 08:55:47 -0400 From: Arnd Bergmann To: Daniel Lezcano 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 Date: Thu, 21 Jul 2016 14:54:42 +0200 Message-ID: <6378088.D2hhHiJIV0@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-28-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20160721125224.GA10047@linaro.org> References: <1468135649-19980-1-git-send-email-vw@iommu.org> <26830152.1oBSpuVOM0@wuerfel> <20160721125224.GA10047@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:DjHfe+2lK8GiW/4shHx7rdeP/oP9QuCrqk8FuLForCKQcoHjU5Y CrZ4hCWqsRLDlSiCnmwCzg3B+/uftKsO0TJwYzL2C3sSkNB2boNnC1S4oVbpBUUf7Kvr7gG uYISENEQYsla6x0ZX41IAGGyYDs73pEQIM5QNViUM/0pKUpBHXe27nzfwv9ptP3bcuHZRQ0 j4o6onf4yjMK7/kn8FawQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:iM2ry9dPK/M=:Z5SNK+elz2imdn5Ow/GzB+ xRScWnTao2slwpTiDqtgMWk7Tb+gQ+dJAonBWN/gFOvkttG6SXiCo5xMAjlyjHph6PKhDBzGI O8NvXXH9ZnFuuVOW1VnCUL+XhJmAF1JVfWDgRVeftWNhgzPWZPI9IbuSBIqZLzzrF5TjuMd+8 AYMW0i6igJ+icogmFjDVDfq+aiXxKRrmGtuQeo6cBFbmuJfBSJy40b5gXRDO/+brf9qYD0cs2 cn3DvcYpWWW841T5ILlKgWZTJ7qzznV6UqkiLphNnyo7fqlyfi302VmrvBc3lTVHDLCtu8DDx n8ioBg+V1VGRkQgKQaCjXwhASHNqTd8SozRubRjmtYvRGZVG/eKtm/lFGa940Oy9YRo3K5TYh Hx+25QixXF/psitUYPlatC7Z3dlXV5T+0qGlvuFN77r++FNadxaUNEFQwmwyTZsVbvYudH8Rm ci75+3bH6Ie0DWqj3bRZwZ2foz6AYvXsgABgpgGoF8MUDUrxrpkljQAN586hOEkvePwWA71df /dQJe9Wp3wJPnM+uPxOU9gawxh8rjiTjQpe+vJPNnY+TZpNPudwlTyWg2tBLhGxq+e/yUe1Pp 3jHomfPjeV2cVUMWGlai9jdg/ATAkNI1bNbaPtN3R8VagOsETnQK8wRfwap/nYNjF+a2KQBdb zjqiEhsSVgFIymCGx2Sfj/+idjDAKf8AAfN1CRE4jSs4MIVK+Cmmb0LtWxx1XLC68Rjym2Pwn SJshcjmOZ6o1Hi6Q Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, July 21, 2016 2:52:24 PM CEST Daniel Lezcano wrote: > 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. Ok, so the driver could be merged on top of that, but it's really late for 4.8 now, so we'd just wait until after the merge window anyway. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 03/10] Clocksource: add nuc970 clocksource driver Date: Thu, 21 Jul 2016 14:54:42 +0200 Message-ID: <6378088.D2hhHiJIV0@wuerfel> References: <1468135649-19980-1-git-send-email-vw@iommu.org> <26830152.1oBSpuVOM0@wuerfel> <20160721125224.GA10047@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20160721125224.GA10047-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Daniel Lezcano Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Wan Zongshun , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org, Wan Zongshun , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Russell King , p.zabel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Thomas Gleixner , linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Thursday, July 21, 2016 2:52:24 PM CEST Daniel Lezcano wrote: > 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. Ok, so the driver could be merged on top of that, but it's really late for 4.8 now, so we'd just wait until after the merge window anyway. Arnd -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Thu, 21 Jul 2016 14:54:42 +0200 Subject: [PATCH v2 03/10] Clocksource: add nuc970 clocksource driver In-Reply-To: <20160721125224.GA10047@linaro.org> References: <1468135649-19980-1-git-send-email-vw@iommu.org> <26830152.1oBSpuVOM0@wuerfel> <20160721125224.GA10047@linaro.org> Message-ID: <6378088.D2hhHiJIV0@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thursday, July 21, 2016 2:52:24 PM CEST Daniel Lezcano wrote: > 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. Ok, so the driver could be merged on top of that, but it's really late for 4.8 now, so we'd just wait until after the merge window anyway. Arnd