Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-27 Thread Tom Rini
On 02/26/2014 05:04 PM, Joe Perches wrote: > On Tue, 2014-02-25 at 07:30 -0500, Tom Rini wrote: >> The only intentional differences we have today are adding debug/printf >> to the list of log functions > > That seems fine and trivial to keep current. Agreed, >> and pointing people at boards.cfg

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-27 Thread Tom Rini
On 02/26/2014 05:04 PM, Joe Perches wrote: On Tue, 2014-02-25 at 07:30 -0500, Tom Rini wrote: The only intentional differences we have today are adding debug/printf to the list of log functions That seems fine and trivial to keep current. Agreed, and pointing people at boards.cfg not

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-26 Thread Joe Perches
On Tue, 2014-02-25 at 07:30 -0500, Tom Rini wrote: > The only intentional differences we have today are adding debug/printf > to the list of log functions That seems fine and trivial to keep current. > and pointing people at boards.cfg not > CHECKPATCH in MAINTAINERS, That seems wrong. The

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-26 Thread Joe Perches
On Tue, 2014-02-25 at 07:30 -0500, Tom Rini wrote: The only intentional differences we have today are adding debug/printf to the list of log functions That seems fine and trivial to keep current. and pointing people at boards.cfg not CHECKPATCH in MAINTAINERS, That seems wrong. The idea of

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-25 Thread Tom Rini
On 02/25/2014 12:23 AM, Joe Perches wrote: > On Mon, 2014-02-24 at 17:43 -0500, Tom Rini wrote: >> My perl is quite limited, so however much effort you're interested in >> putting in here is greatly appreciated (even if it's pointing out >> something else already in the script to copy and modify).

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-25 Thread Heiko Carstens
On Mon, Feb 24, 2014 at 05:04:57PM -0500, Tom Rini wrote: > On 02/24/2014 05:02 PM, Joe Perches wrote: > > On Mon, 2014-02-24 at 16:52 -0500, Tom Rini wrote: > >> I've been lead to > >> believe that most cases now people should be using regmap instead, which > >> just leaves the case of having to

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-25 Thread Heiko Carstens
On Mon, Feb 24, 2014 at 05:04:57PM -0500, Tom Rini wrote: On 02/24/2014 05:02 PM, Joe Perches wrote: On Mon, 2014-02-24 at 16:52 -0500, Tom Rini wrote: I've been lead to believe that most cases now people should be using regmap instead, which just leaves the case of having to match

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-25 Thread Tom Rini
On 02/25/2014 12:23 AM, Joe Perches wrote: On Mon, 2014-02-24 at 17:43 -0500, Tom Rini wrote: My perl is quite limited, so however much effort you're interested in putting in here is greatly appreciated (even if it's pointing out something else already in the script to copy and modify). We

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 17:43 -0500, Tom Rini wrote: > My perl is quite limited, so however much effort you're interested in > putting in here is greatly appreciated (even if it's pointing out > something else already in the script to copy and modify). We already > ship a .checkpatch.conf so having

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 05:31 PM, Joe Perches wrote: > On Mon, 2014-02-24 at 17:20 -0500, Tom Rini wrote: >> On 02/24/2014 05:08 PM, Joe Perches wrote: >>> On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: I've got this modified to a CHK and only for non-file usage. Anything else we want to talk

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 17:20 -0500, Tom Rini wrote: > On 02/24/2014 05:08 PM, Joe Perches wrote: > > On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: > >> I've got this modified to a CHK and only for non-file usage. Anything > >> else we want to talk about before I repost? > > > > Probably not,

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 05:08 PM, Joe Perches wrote: > On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: >> I've got this modified to a CHK and only for non-file usage. Anything >> else we want to talk about before I repost? > > Probably not, but I'm still not convinced it's useful. > > Have you found a

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: > I've got this modified to a CHK and only for non-file usage. Anything > else we want to talk about before I repost? Probably not, but I'm still not convinced it's useful. Have you found a case where it's currently specified but not useful?

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 05:02 PM, Joe Perches wrote: > On Mon, 2014-02-24 at 16:52 -0500, Tom Rini wrote: >> I've been lead to >> believe that most cases now people should be using regmap instead, which >> just leaves the case of having to match on-disk formats or similar cases >> I believe as the things

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 16:52 -0500, Tom Rini wrote: > I've been lead to > believe that most cases now people should be using regmap instead, which > just leaves the case of having to match on-disk formats or similar cases > I believe as the things that must stay __packed. __packed is also

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 04:28 PM, Joe Perches wrote: > On Mon, 2014-02-24 at 16:11 -0500, Tom Rini wrote: >> On 02/24/2014 04:00 PM, Joe Perches wrote: >>> On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: While there are valid reasons to use __packed, often the answer is that you should be doing

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread josh
On Mon, Feb 24, 2014 at 03:38:16PM -0500, Tom Rini wrote: > While there are valid reasons to use __packed, often the answer is that > you should be doing something else here instead. > > Cc: Andrew Morton > Cc: Joe Perches > Cc: Josh Triplett > Signed-off-by: Tom Rini > --- >

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 16:11 -0500, Tom Rini wrote: > On 02/24/2014 04:00 PM, Joe Perches wrote: > > On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: > >> While there are valid reasons to use __packed, often the answer is that > >> you should be doing something else here instead. [] > > How often

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 04:00 PM, Joe Perches wrote: > On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: >> While there are valid reasons to use __packed, often the answer is that >> you should be doing something else here instead. > [] >> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > [] >>

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: > While there are valid reasons to use __packed, often the answer is that > you should be doing something else here instead. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -4010,6 +4010,11 @@ sub process { >

[PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
While there are valid reasons to use __packed, often the answer is that you should be doing something else here instead. Cc: Andrew Morton Cc: Joe Perches Cc: Josh Triplett Signed-off-by: Tom Rini --- scripts/checkpatch.pl |5 + 1 file changed, 5 insertions(+) diff --git

[PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
While there are valid reasons to use __packed, often the answer is that you should be doing something else here instead. Cc: Andrew Morton a...@linux-foundation.org Cc: Joe Perches j...@perches.com Cc: Josh Triplett j...@joshtriplett.org Signed-off-by: Tom Rini tr...@ti.com ---

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: While there are valid reasons to use __packed, often the answer is that you should be doing something else here instead. [] diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] @@ -4010,6 +4010,11 @@ sub process {

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 04:00 PM, Joe Perches wrote: On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: While there are valid reasons to use __packed, often the answer is that you should be doing something else here instead. [] diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] @@ -4010,6

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 16:11 -0500, Tom Rini wrote: On 02/24/2014 04:00 PM, Joe Perches wrote: On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: While there are valid reasons to use __packed, often the answer is that you should be doing something else here instead. [] How often is this

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread josh
On Mon, Feb 24, 2014 at 03:38:16PM -0500, Tom Rini wrote: While there are valid reasons to use __packed, often the answer is that you should be doing something else here instead. Cc: Andrew Morton a...@linux-foundation.org Cc: Joe Perches j...@perches.com Cc: Josh Triplett

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 04:28 PM, Joe Perches wrote: On Mon, 2014-02-24 at 16:11 -0500, Tom Rini wrote: On 02/24/2014 04:00 PM, Joe Perches wrote: On Mon, 2014-02-24 at 15:38 -0500, Tom Rini wrote: While there are valid reasons to use __packed, often the answer is that you should be doing something

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 16:52 -0500, Tom Rini wrote: I've been lead to believe that most cases now people should be using regmap instead, which just leaves the case of having to match on-disk formats or similar cases I believe as the things that must stay __packed. __packed is also necessary

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 05:02 PM, Joe Perches wrote: On Mon, 2014-02-24 at 16:52 -0500, Tom Rini wrote: I've been lead to believe that most cases now people should be using regmap instead, which just leaves the case of having to match on-disk formats or similar cases I believe as the things that must

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: I've got this modified to a CHK and only for non-file usage. Anything else we want to talk about before I repost? Probably not, but I'm still not convinced it's useful. Have you found a case where it's currently specified but not useful? --

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 05:08 PM, Joe Perches wrote: On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: I've got this modified to a CHK and only for non-file usage. Anything else we want to talk about before I repost? Probably not, but I'm still not convinced it's useful. Have you found a case

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 17:20 -0500, Tom Rini wrote: On 02/24/2014 05:08 PM, Joe Perches wrote: On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: I've got this modified to a CHK and only for non-file usage. Anything else we want to talk about before I repost? Probably not, but I'm

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Tom Rini
On 02/24/2014 05:31 PM, Joe Perches wrote: On Mon, 2014-02-24 at 17:20 -0500, Tom Rini wrote: On 02/24/2014 05:08 PM, Joe Perches wrote: On Mon, 2014-02-24 at 17:04 -0500, Tom Rini wrote: I've got this modified to a CHK and only for non-file usage. Anything else we want to talk about before

Re: [PATCH] checkpatch.pl: Add warning for new __packed additions

2014-02-24 Thread Joe Perches
On Mon, 2014-02-24 at 17:43 -0500, Tom Rini wrote: My perl is quite limited, so however much effort you're interested in putting in here is greatly appreciated (even if it's pointing out something else already in the script to copy and modify). We already ship a .checkpatch.conf so having to