From: Felipe Balbi Subject: Re: [PATCH resend] video: omap24xxcam: Fix compilation Date: Mon, 21 Feb 2011 14:21:09 +0200 Message-ID: <20110221122109.GA23087@legolas.emea.dhcp.ti.com> References: <20110215113717.GN2570@legolas.emea.dhcp.ti.com> <4D5A672A.7040000@samsung.com> <4D5A6874.1080705@corscience.de> <20110215115349.GQ2570@legolas.emea.dhcp.ti.com> <4D5A6EEC.5000908@maxwell.research.nokia.com> <20110219150024.GA4487@legolas.emea.dhcp.ti.com> <20110221073640.GA3094@legolas.emea.dhcp.ti.com> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: David Cohen Cc: balbi@ti.com, Sakari Ailus , Thomas Weber , Sylwester Nawrocki , linux-omap@vger.kernel.org, Mauro Carvalho Chehab , Hans Verkuil , Tejun Heo , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-omap@vger.kernel.org On Mon, Feb 21, 2011 at 02:09:07PM +0200, David Cohen wrote: > On Mon, Feb 21, 2011 at 9:36 AM, Felipe Balbi wrote: > > Hi, > > > > On Sat, Feb 19, 2011 at 06:04:58PM +0200, David Cohen wrote: > >> > I have to disagree. The fundamental problem is the circular depe= ndency > >> > between those two files: > >> > > >> > sched.h uses wait_queue_head_t defined in wait.h > >> > wait.h uses TASK_* defined in sched.h > >> > > >> > So, IMO the real fix would be clear out the circular dependency.= Maybe > >> > introducing to define those TASK_* symbols and in= clude > >> > that on sched.h and wait.h > >> > > >> > Just dig a quick and dirty to try it out and works like a charm > >> > >> We have 2 problems: > >> =A0- omap24xxcam compilation broken > >> =A0- circular dependency between sched.h and wait.h > >> > >> To fix the broken compilation we can do what the rest of the kerne= l is > >> doing, which is to include sched.h. > >> Then, the circular dependency is fixed by some different approach > >> which would probably change *all* current usage of TASK_*. > > > > considering that 1 is caused by 2 I would fix 2. > > > >> IMO, there's no need to create a dependency between those issues. > > > > There's no dependency between them, it's just that the root cause f= or > > this problem is a circular dependency between wait.h and sched.h >=20 > I did a try to fix this circular dependency and the comment I got was > to include sched.h in omap24xxcam.c file: > http://marc.info/?l=3Dlinux-omap&m=3D129828637120270&w=3D2 >=20 > I'm working to remove v4l2 internal device interface from omap24xxcam > and then I need this driver's compilation fixed. > The whole kernel is including sched.h when wake_up*() macro is used, > so this should be our first solution IMO. > As I said earlier, no need to make this compilation fix be dependent > of wait.h fix (if it's really going to be changed). >=20 > I think we should proceed with this patch. I would wait to hear from Ingo or Peter who are the maintainers for tha= t part, but fine by me. --=20 balbi