Re: [Powertop] [PATCH v2] conditionally disable pci if not supported

Bram Bouwens <bram at bouwens.org>
Newsgroups dev.linux.lists.powertop
Message-ID <[email protected]>
On 06/25/2012 06:34 PM, Rajagopal Venkat wrote:
>
>
> On 25 June 2012 21:34, Arjan van de Ven <arjan(a)linux.intel.com <mailto:arjan(a)linux.intel.com>> wrote:
>
>     On 6/25/2012 9:00 AM, Rajagopal Venkat wrote:
>
>     <no commit message .. why? one sentence is cheap>
>
> Ok. Taken care.
>
>
>      >
>      > diff --git a/src/lib.h b/src/lib.h
>      > index 588c023..d354151 100644
>      > --- a/src/lib.h
>      > +++ b/src/lib.h
>      > @@ -30,6 +30,10 @@
>      >  #endif
>      >  #include <stdint.h>
>      >
>      > +#if HAVE_CONFIG_H
>      > +#include "config.h"
>      > +#endif
>      > +
>      >  #ifndef DISABLE_I18N
>      >  #define _(STRING)    gettext(STRING)
>      >  #else
>      >
>
>
>
>     ok this chunk I do not understand;
>     the rest of your patch looks very reasonable.
>     why is config.h inside an if ?
>
>
> config.h is auto generated by autoconf and is not applicable for Android build.
> Yes. it should be wrapped in ifdef.
>

You might indicate this in a comment in the code.

Other than that, I like the idea of being able to build powertop on my BeagleBone!

Bram
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.