From: Alexandra Yates <alexandra.yates at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH 07/12] move options structure to function scope
Date: Mon, 04 Aug 2014 16:41:18 -0700 [thread overview]
Message-ID: <61169.10.24.6.146.1407195678.squirrel@linux.intel.com> (raw)
In-Reply-To: 20140803114643.GA1150@swordfish
[-- Attachment #1: Type: text/plain, Size: 2948 bytes --]
> On (08/03/14 10:34), Sami Kerola wrote:
>> On 3 August 2014 04:52, Sergey Senozhatsky
>> <sergey.senozhatsky(a)gmail.com> wrote:
>> > On (08/02/14 23:20), Sami Kerola wrote:
>> >> On 2 August 2014 14:47, Sergey Senozhatsky
>> <sergey.senozhatsky(a)gmail.com> wrote:
>> >> >> Subject: [Powertop] [PATCH 07/12] move options structure to
>> function scope
>> >> >
>> >> > what for?
>> >>
>> >> They've told me keeping variables in as narrow scope as possible is a
>> >> virtue. Even if it would not be I don't see any harm of moving
>> >> everything out of global scope when ever possible.
>> >>
>> >> https://www.securecoding.cert.org/confluence/display/cplusplus/DCL07-CPP.+Minimize+the+scope+of+variables+and+methods
>> >
>> > this is different. let's keep it as is.
>>
>> Hi Sergey,
>>
>> That's alright the scope move is reverted. When I did that I started
>> to look the option structure, and later switch case segment. I started
>> to wonder why '-a' is marked as an option in structure but it is
>> missing from short options in optstring. That lead me to write two
>> small clean ups.
>>
>> https://github.com/kerolasa/powertop/commit/09a3bb68d1f92c30675679b64d63cddeafbfbce7
>> https://github.com/kerolasa/powertop/commit/8d81534bf55486b5230e18b217524a07694c5e9e
>>
>> Reminder. As mentioned yesterday, the patch series in maillist is
>> broken. Up to date versions of these changes are in my github branch,
>> which makes this a pull request.
>>
>> https://github.com/kerolasa/powertop sami
>>
>
> Hi,
>
> powertop does not pull from outside repos. please resend
> your patch series to the list. thanks for your contribution.
>
> -ss
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop
>
Hello All,
Welcome Sami to PowerTOP, and thank you very much for submitting your
patches, and everyone else for reviewing them.
Sami, I would appreciate you make the changes people requested on the
list, and be prepared for further rounds of reviews/changes of your
patches. This is the current process PowerTOP developers do code reviews.
Here are few other things to consider before sending your patches for
PowerTOP:
As I mentioned on a previous thread PowerTOp uses the linux kernel coding
style, please change all your code to follow this guidelines.
https://www.kernel.org/doc/Documentation/CodingStyle.
Before creating a set of patches please check the code using
https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
Lastly, when creating your new set of patches use the flag
--subject-prefix="PATCH Vx" x being the revision version. That will make
things easy on the mailing list.
After your code gets an ok from the community I will go ahead and add it
to mainline.
Thank you very much again for sending all your changes,
Alexandra.
next reply other threads:[~2014-08-04 23:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 23:41 Alexandra Yates [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-08-05 21:30 [Powertop] [PATCH 07/12] move options structure to function scope Sami Kerola
2014-08-05 12:46 Sergey Senozhatsky
2014-08-03 11:46 Sergey Senozhatsky
2014-08-03 9:34 Sami Kerola
2014-08-03 3:52 Sergey Senozhatsky
2014-08-02 22:20 Sami Kerola
2014-08-02 13:47 Sergey Senozhatsky
2014-08-02 11:54 Sami Kerola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=61169.10.24.6.146.1407195678.squirrel@linux.intel.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.