Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421027 > unrolled thread

Re: [PATCH] ARM: bcm2835: remove unused __packet

Started byArnd Bergmann <arnd@arndb.de>
First post2016-06-13 18:00 +0200
Last post2016-06-13 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] ARM: bcm2835: remove unused __packet Arnd Bergmann <arnd@arndb.de> - 2016-06-13 18:00 +0200

#1421027 — Re: [PATCH] ARM: bcm2835: remove unused __packet

FromArnd Bergmann <arnd@arndb.de>
Date2016-06-13 18:00 +0200
SubjectRe: [PATCH] ARM: bcm2835: remove unused __packet
Message-ID<rJCro-8ke-31@gated-at.bofh.it>
On Tuesday, June 7, 2016 6:49:33 PM CEST Ben Dooks wrote:
> The driver defines a variable called __packet but then never
> uses it, and does not export it for others to use either. Fix
> the warning about undeclared variable by removing it.
> 
> drivers/soc/bcm/raspberrypi-power.c:48:3: warning: symbol '__packet' was not declared. Should it be static?
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---

The patch looks good, but it's probably worth mentioning here that
this was intended to be the '__packed' attribute instead of a local
variable. The attribute is useless here, as the variables both
still get the default stack alignment, even if rpi_firmware_property
only requires byte-aligned data.

	Arnd

> diff --git a/drivers/soc/bcm/raspberrypi-power.c b/drivers/soc/bcm/raspberrypi-power.c
> index fe96a8b..f7ed118 100644
> --- a/drivers/soc/bcm/raspberrypi-power.c
> +++ b/drivers/soc/bcm/raspberrypi-power.c
> @@ -45,7 +45,7 @@ struct rpi_power_domains {
>  struct rpi_power_domain_packet {
>         u32 domain;
>         u32 on;
> -} __packet;
> +};
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web