From: Takashi Iwai <tiwai@suse.de>
To: alsa-devel@lists.sourceforge.net
Subject: Clean up of magic allocators/casts
Date: Tue, 29 Jun 2004 18:38:55 +0200 [thread overview]
Message-ID: <s5hoen2b9pc.wl@alsa2.suse.de> (raw)
Hi,
I applied big patches to clean up the magic allocator/cast and
snd_kcalloc() stuff on ALSA CVS tree.
If you have a local driver code, please correct as the following:
- Replace snd_kcalloc() with kcalloc()
kcalloc() takes three arguments, two for the normal calloc() and
the third one as the GFP_* flag.
- Replace snd_magic_kmalloc(), snd_magic_kcalloc(), snd_magic_kfree()
with kmalloc(), kcalloc() and kfree(), respectively.
Also, replace snd_magic_cast() with the normal cast.
The magic-cast check facility is no longer provided on ALSA tree
to simplify the code base.
- _snd_pcm_substream_chip(), _snd_timer_chip() are _snd_control_chip()
replaced with the one without the first underscore
(e.g. snd_pcm_substream_chip()).
- No longer need to define chip_t.
Because we don't have magic-cast, it's useless now.
After CVS update, please run cvscompile to rebuild the configure
script.
If someone still wants a magic-cast check, I'll consider to provide in
a different way (without implementing it implicitly in the allocator),
but it won't appear in alsa-kernel tree but only in alsa-driver tree
anyway.
thanks,
Takashi
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
reply other threads:[~2004-06-29 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=s5hoen2b9pc.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
/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