[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LRH.1.10.0908200859060.7249@pub3.ifh.de>
Date: Thu, 20 Aug 2009 09:01:44 +0200 (CEST)
From: Patrick Boettcher <pboettcher@...nellabs.com>
To: Andy Walls <awalls@...ix.net>
cc: Greg KH <greg@...ah.com>, "Rafael J. Wysocki" <rjw@...k.pl>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
pm list <linux-pm@...ts.linux-foundation.org>,
Alan Stern <stern@...land.harvard.edu>,
Mauro Carvalho Chehab <mchehab@...radead.org>,
linux-media@...r.kernel.org
Subject: Re: linux-next: suspend tree build warnings
Hi,
On Wed, 19 Aug 2009, Andy Walls wrote:
>> Ick. struct device should _never_ be on the stack, why would this code
>> want to do such a thing?
When you are doing a thing it does not necessarily you know that you're
doing it.
> It appears that the state object is a dummy being used to detect and
> twiddle some identical chips on the i2c bus. The functions called only
> use the "i2c_adapter" and "cfg" member of the dummy state object, but
> those functions want that state object as an input argument.
>
> <obvious>
> The simplest fix is dynamic allocation of the dummy state object with
> kmalloc() and then to free it before exiting the function.
> </obvious>
Even more obvious: Fix the function with simpler code to do the same
thing.
I will try to fetch some time from somewhere to work on it.
--
Patrick
http://www.kernellabs.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists