Re: Moving sound/* to drivers/ ?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Takashi Iwai <tiwai@...>
Cc: <linux-kernel@...>, <alsa-devel@...>, <perex@...>
Date: Wednesday, May 21, 2008 - 5:44 pm

On Wed, 21 May 2008, Takashi Iwai wrote:

I would certainly personally like drivers/sound more, and the placement at 
the top level is actually because the sound maintainers wanted it that 
way, probably to avoid the confusion with the old OSS drivers that used to 
live in drivers/sound.

I forget the exact details. It's been many many years, and there may have 
been some real technical issues too. But basically sound/ was created when 
ALSA was first merged, and we had a lot of renames from drivers/sound/xyz 
to sound/oss/xyz.

(It may have been that it was simply easier to have a new subdirectory 
than it was to re-use the old one. In fact, with BK and patches, that 
was generally the best way to guarantee that the rename-tool did the 
right thing, so details like that may have been part of it. I forget).

So I would personally certainly not mind somebody doing a 

	git mv sound drivers/sound
	.. edit makefiles and Kconfig files appropriately ..
	git commit -a

and it wouldn't be a problem for git (ie the repository wouldn't grow or 
anything like that).

And doing pure renames (and not editing up a lot of actual files) would 
make rename detection easy for subsequent merges. The only real pain of 
renames is the efficiency of detection when you have lots and lots of 
files, but if the SHA1 of the file stays the same for the big bulk of 
them, that makes the problem basically go away (it becomes a much more 
interesting problem when you move hundreds of files around and _also_ edit 
the bulk of them - even if the edits are trivial, now you need to 
actually look at the contents to figure out the renames).


I'd personally prefer just drivers/sound - no point in making it any 
deeper than that. 

But I'd not be much affected myself, so I don't much care. I do agree that 
it would fit better under drivers/, but it's really mostly up to you guys.


Well, git merging is actually pretty good at this, so you can apply the 
patches to the old release and then merge it, and it will do the right 
thing (perhaps not for newly created files, but that's pretty easy to fix 
up). 

Also, even if you keep it as patches, as long as you move the whole 
subdirectory, then fixing up the patch is just a trivial 
search-and-replace, so I doubt it would be a big issue.

But it's really up to you guys.

Me personally, I've been more irritated by include/asm-xyz vs arch/xyz. It 
would be so nice if all the arch-specific changes woudl always show up 
under arch/ (both from a statistics standpoint, and just because then a 
diffstat really shows arch-specific stuff really obviously, and sorts all 
the arch-specific stuff together).

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Moving sound/* to drivers/ ?, Takashi Iwai, (Wed May 21, 5:20 pm)
Re: Moving sound/* to drivers/ ?, Jeff Garzik, (Wed May 21, 7:37 pm)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Wed May 21, 7:53 pm)
Re: Moving sound/* to drivers/ ?, Takashi Iwai, (Thu May 22, 4:27 am)
Re: Moving sound/* to drivers/ ?, Adrian Bunk, (Thu May 22, 10:22 am)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Thu May 22, 5:57 am)
Re: Moving sound/* to drivers/ ?, Jan Engelhardt, (Thu May 22, 4:55 am)
Re: Moving sound/* to drivers/ ?, Linus Torvalds, (Thu May 22, 11:04 am)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Thu May 22, 12:40 pm)
Re: Moving sound/* to drivers/ ?, Jan Engelhardt, (Thu May 22, 11:50 am)
Re: Moving sound/* to drivers/ ?, Jaroslav Kysela, (Thu May 22, 2:26 am)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Thu May 22, 4:11 am)
Re: Moving sound/* to drivers/ ?, Sam Ravnborg, (Thu May 22, 3:12 am)
Re: Moving sound/* to drivers/ ?, Jaroslav Kysela, (Thu May 22, 3:20 am)
Re: Moving sound/* to drivers/ ?, Adrian Bunk, (Wed May 21, 6:23 pm)
Re: Moving sound/* to drivers/ ?, Takashi Iwai, (Thu May 22, 4:22 am)
Re: [alsa-devel] Moving sound/* to drivers/ ?, Timur Tabi, (Wed May 21, 6:05 pm)
Re: Moving sound/* to drivers/ ?, Linus Torvalds, (Wed May 21, 5:44 pm)
Re: Moving include/asm-*, David Miller, (Wed May 21, 9:25 pm)
Re: Moving include/asm-*, David Miller, (Wed May 21, 9:23 pm)
Re: Moving include/asm-*, Andreas Schwab, (Thu May 22, 4:09 am)
Re: Moving include/asm-*, David Miller, (Thu May 22, 12:12 pm)
Re: Moving include/asm-*, Andreas Schwab, (Thu May 22, 12:32 pm)
Re: Moving include/asm-*, David Miller, (Thu May 22, 1:43 pm)
Re: [alsa-devel] Moving sound/* to drivers/ ?, Rene Herman, (Wed May 21, 5:58 pm)
Re: [alsa-devel] Moving sound/* to drivers/ ?, Rene Herman, (Wed May 21, 6:08 pm)
Re: Moving sound/* to drivers/ ?, Sam Ravnborg, (Wed May 21, 5:54 pm)