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

From: Tom Rini
Date: Mon Feb 24 2014 - 17:05:27 EST


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 stay __packed.
>
> __packed is also necessary for on-wire networking protocols.

Indeed, and there's probably a few other valid cases I'm also
forgetting. But the common case is hardware, where regmap is now preferred.

I've got this modified to a CHK and only for non-file usage. Anything
else we want to talk about before I repost?

--
Tom
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/