From: Eliot Blennerhassett <linux@audioscience.com>
To: alsa-devel@alsa-project.org
Cc: "Keith A. Milner" <maillist@superlative.org>
Subject: Re: CVS, git, or something else? Build patch failure.
Date: Tue, 25 Nov 2008 12:47:27 +1300 [thread overview]
Message-ID: <200811251247.27296.linux@audioscience.com> (raw)
In-Reply-To: <200811242310.29792.maillist@superlative.org>
On Tuesday 25 November 2008 12:10:29 Keith A. Milner wrote:
> I've been trying to check out the latest alsa-driver source to do some work
> on it. I followed the instructions at:
> http://www.alsa-project.org/main/index.php/GIT_Server#Occasional_Developers
>
> But when I cd alsa-drivers and gitcompile, it fails:
>
> make[1]: Entering directory
> `/homedirs/kamilner/Development/Workspace/alsa/alsa-driver/acore'
> copying file alsa-kernel/core/init.c
> patching file init.c
> Hunk #2 succeeded at 280 (offset 3 lines).
> Hunk #3 succeeded at 306 (offset 3 lines).
> Hunk #4 FAILED at 568.
> 1 out of 4 hunks FAILED -- saving rejects to file init.c.rej
> make[1]: *** [init.c] Error 1
> make[1]: Leaving directory
> `/homedirs/kamilner/Development/Workspace/alsa/alsa-driver/acore'
> make: *** [dep] Error 1
I see this too. My kernel: ubuntu 2.6.24-21-generic
Heres the .rej file.
***************
*** 552,560 ****
return -EINVAL;
#ifndef CONFIG_SYSFS_DEPRECATED
if (!card->card_dev) {
card->card_dev = device_create(sound_class, card->dev,
MKDEV(0, 0), NULL,
"card%i", card->number);
if (IS_ERR(card->card_dev))
card->card_dev = NULL;
}
--- 568,586 ----
return -EINVAL;
#ifndef CONFIG_SYSFS_DEPRECATED
if (!card->card_dev) {
+ #ifdef CONFIG_SND_HAS_DEVICE_CREATE_DRVDATA
+ card->card_dev = device_create_drvdata(sound_class, card->dev,
+ MKDEV(0, 0), NULL,
+ "card%i", card->number);
+ #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
card->card_dev = device_create(sound_class, card->dev,
MKDEV(0, 0), NULL,
"card%i", card->number);
+ #else
+ card->card_dev = device_create(sound_class, card->dev,
+ MKDEV(0, 0),
+ "card%i", card->number);
+ #endif
if (IS_ERR(card->card_dev))
card->card_dev = NULL;
}
>
> Do I have the right version? Am I going about this the right way? I see a
> lot of posts on this list talking about CVS but none mentioning git.
>
> Maybe I should be using CVS instead?
No. git is right.
--
--
Eliot Blennerhassett
www.audioscience.com
next prev parent reply other threads:[~2008-11-24 23:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 23:10 CVS, git, or something else? Keith A. Milner
2008-11-24 23:47 ` Eliot Blennerhassett [this message]
2008-11-24 23:56 ` CVS, git, or something else? Build patch failure Keith A. Milner
2008-11-25 0:45 ` Eliot Blennerhassett
2008-11-25 0:49 ` Takashi Iwai
2008-11-25 1:00 ` Eliot Blennerhassett
2008-11-25 1:18 ` Takashi Iwai
2008-11-25 20:41 ` Eliot Blennerhassett
2008-11-25 23:53 ` Keith A. Milner
2008-11-26 0:44 ` Keith A. Milner
2008-11-26 6:27 ` 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=200811251247.27296.linux@audioscience.com \
--to=linux@audioscience.com \
--cc=alsa-devel@alsa-project.org \
--cc=maillist@superlative.org \
/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.