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


Groups > linux.kernel > #1416456 > unrolled thread

[PATCH] ARM: bcm2835: remove unused __packet

Started byBen Dooks <ben.dooks@codethink.co.uk>
First post2016-06-07 19:50 +0200
Last post2016-06-11 00:20 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: bcm2835: remove unused __packet Ben Dooks <ben.dooks@codethink.co.uk> - 2016-06-07 19:50 +0200
    Re: [PATCH] ARM: bcm2835: remove unused __packet Eric Anholt <eric@anholt.net> - 2016-06-07 22:40 +0200
      Re: [PATCH] ARM: bcm2835: remove unused __packet Kevin Hilman <khilman@baylibre.com> - 2016-06-11 00:20 +0200

#1416456 — [PATCH] ARM: bcm2835: remove unused __packet

FromBen Dooks <ben.dooks@codethink.co.uk>
Date2016-06-07 19:50 +0200
Subject[PATCH] ARM: bcm2835: remove unused __packet
Message-ID<rHtix-5Fq-1@gated-at.bofh.it>
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>
---
Cc: Eric Anholt <eric@anholt.net>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Alexander Aring <alex.aring@gmail.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
---
 drivers/soc/bcm/raspberrypi-power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
+};
 
 /*
  * Asks the firmware to enable or disable power on a specific power
-- 
2.8.1

[toc] | [next] | [standalone]


#1416599

FromEric Anholt <eric@anholt.net>
Date2016-06-07 22:40 +0200
Message-ID<rHvX4-7lS-3@gated-at.bofh.it>
In reply to#1416456

[Multipart message — attachments visible in raw view] — view raw

Ben Dooks <ben.dooks@codethink.co.uk> writes:

> 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?

Reviewed-by: Eric Anholt <eric@anholt.net>

PM folks: I'd be happy to see this go through your trees, but either way
is fine with me.

[toc] | [prev] | [next] | [standalone]


#1419808

FromKevin Hilman <khilman@baylibre.com>
Date2016-06-11 00:20 +0200
Message-ID<rICWv-2P1-59@gated-at.bofh.it>
In reply to#1416599
Eric Anholt <eric@anholt.net> writes:

> Ben Dooks <ben.dooks@codethink.co.uk> writes:
>
>> 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?
>
> Reviewed-by: Eric Anholt <eric@anholt.net>
>
> PM folks: I'd be happy to see this go through your trees, but either way
> is fine with me.

Since this is in drivers/soc, just include it in your cleanup branch for
arm-soc.

Kevin

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web