public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rostislav Lisovy <lisovy@gmail.com>
To: Hartley Sweeten <HartleyS@visionengravers.com>
Cc: Chen Gang <gang.chen.5i5j@gmail.com>,
	"abbotti@mev.co.uk" <abbotti@mev.co.uk>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"luca.ellero@brickedbrain.com" <luca.ellero@brickedbrain.com>,
	"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Richard Weinberger <richard@nod.at>
Subject: Re: [PATCH] drivers/staging/comedi/Kconfig: Let COMEDI_II_PCI20KC depend on HAS_IOMEM
Date: Thu, 02 Oct 2014 19:26:11 +0200	[thread overview]
Message-ID: <1412270771.20184.1.camel@lolumad> (raw)
In-Reply-To: <DC148C5AA1CEBA4E87973D432B1C2D8825FCE627@P3PWEX4MB008.ex4.secureserver.net>

On Thu, 2014-10-02 at 17:01 +0000, Hartley Sweeten wrote:
> On Thursday, October 02, 2014 7:41 AM, Chen Gang wrote:
> > COMEDI_II_PCI20KC needs HAS_IOMEM, so depend on it. The related error (
> > with allmodconfig under um):
> >
> >     CC [M]  drivers/staging/comedi/drivers/ii_pci20kc.o
> >   drivers/staging/comedi/drivers/ii_pci20kc.c: In function ‘ii20k_attach’:
> >   drivers/staging/comedi/drivers/ii_pci20kc.c:442:2: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]
> >     dev->mmio = ioremap(membase, II20K_SIZE);
> >     ^
> >   drivers/staging/comedi/drivers/ii_pci20kc.c:442:12: warning: assignment makes pointer from integer without a cast [enabled by default]
> >     dev->mmio = ioremap(membase, II20K_SIZE);
> >               ^
> >   drivers/staging/comedi/drivers/ii_pci20kc.c: In function ‘ii20k_detach’:
> >   drivers/staging/comedi/drivers/ii_pci20kc.c:512:3: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
> >      iounmap(dev->mmio);
> >      ^
> >
> > Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> > ---
> >  drivers/staging/comedi/Kconfig | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/staging/comedi/Kconfig b/drivers/staging/comedi/Kconfig
> > index a8bc2b5..b709736 100644
> > --- a/drivers/staging/comedi/Kconfig
> > +++ b/drivers/staging/comedi/Kconfig
> > @@ -426,6 +426,7 @@ config COMEDI_AIO_IIRO_16
> >  
> >  config COMEDI_II_PCI20KC
> >  	tristate "Intelligent Instruments PCI-20001C carrier support"
> > +	depends on HAS_IOMEM
> >  	---help---
> >  	  Enable support for Intelligent Instruments PCI-20001C carrier
> >  	  PCI-20001, PCI-20006 and PCI-20341
> 
> This seems appropriate.
> 
> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> 

Since "egrep -irn "ioremap" drivers/staging/comedi/drivers | wc -l"
shows "39" does it mean that this should be added to all the other
drivers as well?

Rostislav Lisovy


  reply	other threads:[~2014-10-02 17:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 14:41 [PATCH] drivers/staging/comedi/Kconfig: Let COMEDI_II_PCI20KC depend on HAS_IOMEM Chen Gang
2014-10-02 17:01 ` Hartley Sweeten
2014-10-02 17:26   ` Rostislav Lisovy [this message]
2014-10-02 17:44     ` Hartley Sweeten
2014-10-03 11:39 ` Ian Abbott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1412270771.20184.1.camel@lolumad \
    --to=lisovy@gmail.com \
    --cc=HartleyS@visionengravers.com \
    --cc=abbotti@mev.co.uk \
    --cc=devel@driverdev.osuosl.org \
    --cc=gang.chen.5i5j@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.ellero@brickedbrain.com \
    --cc=richard@nod.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox