lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 13 May 2015 20:23:40 +0200 (CEST)
From:	Hans Ulli Kroll <ulli.kroll@...glemail.com>
To:	Arnd Bergmann <arnd@...db.de>
cc:	Paul Bolle <pebolle@...cali.nl>,
	Hans Ulli Kroll <ulli.kroll@...glemail.com>,
	Alexandre Belloni <alexandre.belloni@...e-electrons.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCHv2 1/1] RTC:driver for Cortina's SOC



On Tue, 12 May 2015, Arnd Bergmann wrote:

> On Tuesday 12 May 2015 11:05:34 Paul Bolle wrote:
> > On Mon, 2015-05-11 at 18:25 +0200, Hans Ulli Kroll wrote:
> > > --- a/drivers/rtc/Kconfig
> > > +++ b/drivers/rtc/Kconfig
> > 
> > > +config RTC_DRV_GEMINI
> > > +     tristate "Gemini SoC RTC"
> > > +     help
> > > +       If you say Y here you will get support for the
> > > +       RTC found on Gemini SoC's.
> > > +
> > > +       This driver can also be built as a module. If so, the module
> > > +       will be called rtc-gemini.
> > 
> > This has, by the look of it, very little dependencies, probably just
> > RTC_CLASS. So I think that this symbol can be enabled in allyesconfig,
> > allmodconfig, and randconfig for most architectures. (I just tested this
> > - what a novel idea! - and it will indeed be set by allyesconfig and
> > allmodconfig on x86_64.)
> > 
> > > --- /dev/null
> > > +++ b/drivers/rtc/rtc-gemini.c
> > 
> > > +#include <mach/hardware.h>
> > 
> > Except for arm, builds using a .config containing
> >     CONFIG_RTC_DRV_GEMINI=[my]
> > 
> > will fail here. (*/mach/hardware.h is mainly used for arm.) That is
> > bound to generate, well, fanmail for you. Perhaps it's better if
> > RTC_DRV_GEMINI depends on, say, ARCH_GEMINI.
> 
> Well spotted, thanks for the report.
> 
> I have a patch that will turn mach-gemini into multiplatform, and
> at that point it will also fail there. The correct solution I think
> is to move the GEMINI_RTC_SECOND etc definitions into rtc-gemini.c
> itself and remove the #include.
> 

GEMINI_RTC_SECOND and other register offset are in the driver.
The only address I get from the #include is the base address of the RTC

> It still makes sense to have a dependency, but I'd express it
> as
> 
> 	depends on ARCH_GEMINI || COMPILE_TEST
> 

Is done in series three. Without COMPILE_TEST
Hmm I missied someone to send ...

Ulli

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ