On 12/24/2010 7:47 AM, Andreas Mohr wrote: > Hi, > > On Fri, Dec 24, 2010 at 07:27:01AM -0800, Arjan van de Ven wrote: >> On 12/24/2010 7:18 AM, Török Edwin wrote: >>> Maybe you could add -I/lib/modules/`uname -r`/source to CPPFLAGS, so if >>> the user has something more recent installed it gets picked up? >>> Or could you just copy that header from latest stable kernel to powertop? >> I could copy, but it's not like powertop will actually run if the kernel >> doesn't support these interfaces >> (or many others for that matter, a 2.6.32 kernel will just not work. >> 2.6.36 ought to work fine though) > The irony of it is that this machine _is_ running a much newer > custom kernel (only 2.6.34.x though, I believe, due to 2.6.35+ > being questionable at the time I did the last upgrade). > It's just that the Debian stable common kernel headers are much older. > >> I'll take a look and see if there's something sane I can do that also >> makes sense ;) > Hmm, the question would be what would constitute Accepted Best Practice (tm) > in this area ;)
taking a copy sucks since at that point PowerTOP becomes disconnected from bugfixes etc in the original but not taking a copy sucks too for all the things you and Torok have been finding ;-( (I'm not going to point to the kernel source directory; those are kernel mode headers that get cleaned up before installation into /usr/include, I don't want to deal with the raw headers, nor are apps supposed to be able to) no-win situation. _______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
