On Fri, Mar 18, 2016 at 12:11:01PM +0100, Joerg Roedel wrote: > On Fri, Mar 18, 2016 at 11:39:18AM +0100, Borislav Petkov wrote: > > Yeah, so arch/x86/include/asm/ has all the x86-specific stuff which is > > not exported to userspace, so moving stuff there makes sense to me. > > While the AMD IOMMU is only available on x86 today, there is nothing > x86-specific in its architecture, so I don't think its header files > belong to arch/x86. > > By that reasoning we could also move all of the intel gpu stuff to > arch/x86. But we don't do it, because it doesn't make sense and because > it doesn't belong there.
And according to that argument of yours, we should move everything which is not too close to the arch it is being used on, to generic include/linux/. Because it might possibly get used some day by other arches. Yeah right. And looking at include/linux - it looks like a dumping ground for headers. :-\ I guess anything is better than putting non-generic enough stuff in include/linux/. Maybe drivers/include or something in that direction would be better... -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.