All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Grzegorz Daniluk <g.daniluk@elproma.com.pl>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/2] acore: deprecated function in wrappers.c
Date: Fri, 25 Feb 2011 16:55:06 +0100	[thread overview]
Message-ID: <s5hhbbsqfc5.wl%tiwai@suse.de> (raw)
In-Reply-To: <4D67D019.80807@elproma.com.pl>

At Fri, 25 Feb 2011 16:51:53 +0100,
Grzegorz Daniluk wrote:
> 
> Takashi Iwai wrote:
> >
> > Erm... this code is defined _only_ for very old kernels just for
> > compatible wrapper, so following the rule for new kernels doesn't make
> > sense.
> >
> >
> >   
> Then something else is wrong, since this code caused the compilation 
> error(attached below) when I was doing the cross-compilation for the 
> system without PCI for the 2.6.35 kernel (the kernel version was 
> correctly recognized during ./configure):
> 
> /root/alsa-driver-1.0.24/acore/wrappers.c: In function 
> 'snd_pci_dev_present':
> /root/alsa-driver-1.0.24/acore/wrappers.c:200: error: implicit 
> declaration of function 'pci_find_device'
> make[3]: *** [/root/alsa-driver-1.0.24/acore/wrappers.o] Error 1

Then configure script didn't detect the condition properly.
Check CONFIG_HAVE_PCI_DEV_PRESENT in you config.log.  Most likely
a wrong gcc option or path is given, and the check is screwed up.


Takashi



> 
> Greg
> 
> >> Signed-off-by: Grzegorz Daniluk <g.daniluk@elproma.com.pl>
> >> ---
> >>
> >> diff -uprN a/acore/wrappers.c b/acore/wrappers.c
> >> --- a/acore/wrappers.c    2011-01-27 12:09:20.000000000 +0000
> >> +++ b/acore/wrappers.c    2011-02-25 13:41:46.000000000 +0000
> >> @@ -197,7 +197,7 @@ EXPORT_SYMBOL(snd_compat_devfs_mk_cdev);
> >>  int snd_pci_dev_present(const struct pci_device_id *ids)
> >>  {
> >>      while (ids->vendor || ids->subvendor) {
> >> -        if (pci_find_device(ids->vendor, ids->subvendor, NULL))
> >> +        if (pci_get_device(ids->vendor, ids->subvendor, NULL))
> >>              return 1;
> >>          ids++;
> >>      }
> >> _______________________________________________
> >> Alsa-devel mailing list
> >> Alsa-devel@alsa-project.org
> >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> >>
> >>     
> >
> >   
> 

  reply	other threads:[~2011-02-25 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25 15:35 [PATCH 1/2] acore: deprecated function in wrappers.c Grzegorz Daniluk
2011-02-25 15:41 ` Takashi Iwai
2011-02-25 15:51   ` Grzegorz Daniluk
2011-02-25 15:55     ` Takashi Iwai [this message]
2011-02-28 11:43       ` Grzegorz Daniluk
2011-02-28 11:49         ` Takashi Iwai

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=s5hhbbsqfc5.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=g.daniluk@elproma.com.pl \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.