2011-05-29 22:19:38

by August Lilleaas

[permalink] [raw]
Subject: [PATCH] Firewire: net: replacing deprecated __attribute__((packed)) with __packed

Forwarding as plain text, mistakenly sent as HTML mail first.

---------- Forwarded message ----------
From: August Lilleaas <[email protected]>
Date: Mon, May 30, 2011 at 12:11 AM
Subject: Re: [PATCH] Firewire: net: replacing deprecated
__attribute__((packed)) with __packed
To: Stefan Richter <[email protected]>
Cc: [email protected], [email protected]


On Sun, May 29, 2011 at 11:44 PM, Stefan Richter
<[email protected]> wrote:
>
> Who deprecated it and why?

To be frank, the motivation for this patch was a message from
script/checkpatch.pl when scouring random files for warnings. (This is
my first contribution to the kernel.)
Just did some much needed investigation though. It was deprecated for
portability, specifically to avoid GCC specific code. See commit
82ddcb040570411fc2d421d96b3e69711c670328.

>
> Shouldn't you add "#include <linux/compiler.h>" now?

You're right. I'll read up on updating patches and get at it.

>
> --
> Stefan Richter
> -=====-==-== -=-= ===-=
> http://arcgraph.de/sr/


2011-05-29 23:17:02

by Stefan Richter

[permalink] [raw]
Subject: Re: [PATCH] Firewire: net: replacing deprecated __attribute__((packed)) with __packed

On May 30 August Lilleaas wrote:
> On Sun, May 29, 2011 at 11:44 PM, Stefan Richter
> <[email protected]>wrote:
>
> > Who deprecated it and why?
> >
>
> To be frank, the motivation for this patch was a message from script/
> checkpatch.pl when scouring random files for warnings. (This is my first
> contribution to the kernel.)
>
> Just did some much needed investigation though. It was deprecated for
> portability, specifically to avoid GCC specific code. See commit
> 82ddcb040570411fc2d421d96b3e69711c670328.

OK, thanks for the info.

> > Shouldn't you add "#include <linux/compiler.h>" now?
> >
>
> You're right. I'll read up on updating patches and get at it.

I will just add it when I commit the patch.

(One way to update a patch is to make it the top commit, then edit files
and "git add ..." them as necessary, then "git commit --amend". There are
other ways of course.)
--
Stefan Richter
-=====-==-== -=-= ====-
http://arcgraph.de/sr/

2011-06-02 12:08:00

by Stefan Richter

[permalink] [raw]
Subject: Re: [PATCH] Firewire: net: replacing deprecated __attribute__((packed)) with __packed

Committed to linux1394-2.6.git master. Thanks.
--
Stefan Richter
-=====-==-== -==- ---=-
http://arcgraph.de/sr/