Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752848AbbBRKnP (ORCPT ); Wed, 18 Feb 2015 05:43:15 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:65455 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751948AbbBRKnL (ORCPT ); Wed, 18 Feb 2015 05:43:11 -0500 From: Arnd Bergmann To: Andrew Morton Cc: Joshua Kinard , Ralf Baechle , Alessandro Zummo , Linus Torvalds , linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com Subject: [PATCH] rtc: ds1685: fix ds1685_rtc_alarm_irq_enable build error Date: Wed, 18 Feb 2015 11:42:44 +0100 Message-ID: <2372645.cW5yq1J1VV@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:GQfnz/34hgFZBPAF+4oa8be59zRji0z7U2AUw5DpQ7dPUDjpTqg Hpwn7FmJ9NiOtnysMGay/GXQfx4weg8754brpmtKMLbLSlvXGnBA49Ty4E+cJekzIfkHjBl YpsrrLxrvjD23VpFa3KhNsu7JhdGAwc4WTsbmKpXBx06ex/BwwdYqqbWHtwP/IpbTC13G5F sMLdRnlItyox3mHZ3f1qA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1939 Lines: 48 The newly added ds1685 driver causes a build error in linux-next when enabled without CONFIG_RTC_INTF_DEV: drivers/rtc/rtc-ds1685.c:919:22: error: 'ds1685_rtc_alarm_irq_enable' undeclared here (not in a function) .alarm_irq_enable = ds1685_rtc_alarm_irq_enable, Apparently the driver was incorrectly changed to reflect the interface change from 16380c153a69c ("RTC: Convert rtc drivers to use the alarm_irq_enable method"), which removed the respective #ifdef from all other rtc drivers. This does the same change that was merged for the other drivers before and removes the #ifdef, allowing the interrupts to be enabled through the in-kernel rtc interface independent of the existence of /dev/rtc. Signed-off-by: Arnd Bergmann Fixes: aaaf5fbf56f ("rtc: add driver for DS1685 family of real time clocks") --- For some reason, this error never showed up in linux-next, but it does now that the driver has made it into mainline, while doing ARM randconfig testing. diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c index 8c3bfcb115b7..5dc1ef9d0008 100644 --- a/drivers/rtc/rtc-ds1685.c +++ b/drivers/rtc/rtc-ds1685.c @@ -528,7 +528,6 @@ ds1685_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) /* ----------------------------------------------------------------------- */ /* /dev/rtcX Interface functions */ -#ifdef CONFIG_RTC_INTF_DEV /** * ds1685_rtc_alarm_irq_enable - replaces ioctl() RTC_AIE on/off. * @dev: pointer to device structure. @@ -557,7 +556,6 @@ ds1685_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) return 0; } -#endif /* ----------------------------------------------------------------------- */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/