Re: container_of() doubt

2013-02-27 Thread Felipe Balbi
Hi again, On Wed, Feb 27, 2013 at 09:13:22PM +0200, Felipe Balbi wrote: > Hi Greg, > > hehe, you must've answered this over and over again, but I don't see the > need for __mptr in the container_of() macro. I tried googling it but > couldn't find much. > > I get the macro, but not the need __mpt

container_of() doubt

2013-02-27 Thread Felipe Balbi
Hi Greg, hehe, you must've answered this over and over again, but I don't see the need for __mptr in the container_of() macro. I tried googling it but couldn't find much. I get the macro, but not the need __mptr. Wouldn't this work the same way ? diff --git a/include/linux/kernel.h b/include/lin