public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] ASLA design, depth of code review and lack thereof
@ 2004-06-04 23:08 viro
  2004-06-04 23:14 ` viro
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: viro @ 2004-06-04 23:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: perex, torvalds

Ladies and gentlemen, may I politely ask what description would fit somebody
who have made the following

        case SNDRV_PCM_FORMAT_FLOAT_BE:
        {
                union {
                        float f;
                        u_int32_t i;
                } u;
                u.f = 0.0;
#ifdef SNDRV_LITTLE_ENDIAN
                return bswap_32(u.i);
#else
                return u.i;
#endif
        }
and quite a few similar, er, wonders an ioctl?

That's right.  This code just has to be in the kernel.  It can't be in
a library, oh no.  It can't be a trivial macro that would result in
compiler generating the constant, no sir - it just had to be proudly
dumped into the great barfbag in the tree.

And that leads to a really interesting question: how many people had ever
read that code?  Or documentation covering that ioctl, while we are at it.

Unless I'm mistaken, ALSA used revision control for a long, long time.
Jaroslav, could you please find the origin of that little wonder and
share with the class - who had done that, why it had been committed into
ALSA tree and how did it manage to survive until the merge into the main
tree?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-06-08 13:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-04 23:08 [RFC] ASLA design, depth of code review and lack thereof viro
2004-06-04 23:14 ` viro
2004-06-04 23:29 ` Linus Torvalds
2004-06-05  0:04   ` viro
2004-06-07 13:14     ` Takashi Iwai
2004-06-07 22:40       ` viro
2004-06-08 12:49         ` Takashi Iwai
2004-06-07 13:10   ` Takashi Iwai
2004-06-04 23:37 ` Jeff Garzik
2004-06-07 13:24   ` Takashi Iwai
2004-06-07 13:47     ` Jeff Garzik
2004-06-07 13:57       ` Takashi Iwai
2004-06-07 14:05         ` Jeff Garzik
2004-06-07 14:12           ` Takashi Iwai
2004-06-07 14:18         ` Russell King
2004-06-08 13:27           ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox