All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match
@ 2016-04-20 10:20 Lorenzo Pieralisi
  2016-04-20 10:20 ` [PATCH 2/2] drivers: firmware: psci: make two helper functions static Lorenzo Pieralisi
  2016-04-20 10:30 ` [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match Mark Rutland
  0 siblings, 2 replies; 4+ messages in thread
From: Lorenzo Pieralisi @ 2016-04-20 10:20 UTC (permalink / raw)
  To: linux-arm-kernel

From: Jisheng Zhang <jszhang@marvell.com>

This is to fix below sparse warning:
drivers/firmware/psci.c:mmm:nn: warning: duplicate const

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
---
 drivers/firmware/psci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index 11bfee8..0ab477ba 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci.c
@@ -563,7 +563,7 @@ out_put_node:
 	return err;
 }
 
-static const struct of_device_id const psci_of_match[] __initconst = {
+static const struct of_device_id psci_of_match[] __initconst = {
 	{ .compatible = "arm,psci",	.data = psci_0_1_init},
 	{ .compatible = "arm,psci-0.2",	.data = psci_0_2_init},
 	{ .compatible = "arm,psci-1.0",	.data = psci_0_2_init},
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] drivers: firmware: psci: make two helper functions static
  2016-04-20 10:20 [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match Lorenzo Pieralisi
@ 2016-04-20 10:20 ` Lorenzo Pieralisi
  2016-04-25 21:48   ` Arnd Bergmann
  2016-04-20 10:30 ` [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match Mark Rutland
  1 sibling, 1 reply; 4+ messages in thread
From: Lorenzo Pieralisi @ 2016-04-20 10:20 UTC (permalink / raw)
  To: linux-arm-kernel

From: Jisheng Zhang <jszhang@marvell.com>

psci_power_state_loses_context() and psci_power_state_is_valid are only
used internally now, so make them static.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
---
 drivers/firmware/psci.c | 4 ++--
 include/linux/psci.h    | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index 0ab477ba..04f2ac5 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci.c
@@ -91,7 +91,7 @@ static inline bool psci_has_ext_power_state(void)
 				PSCI_1_0_FEATURES_CPU_SUSPEND_PF_MASK;
 }
 
-bool psci_power_state_loses_context(u32 state)
+static bool psci_power_state_loses_context(u32 state)
 {
 	const u32 mask = psci_has_ext_power_state() ?
 					PSCI_1_0_EXT_POWER_STATE_TYPE_MASK :
@@ -100,7 +100,7 @@ bool psci_power_state_loses_context(u32 state)
 	return state & mask;
 }
 
-bool psci_power_state_is_valid(u32 state)
+static bool psci_power_state_is_valid(u32 state)
 {
 	const u32 valid_mask = psci_has_ext_power_state() ?
 			       PSCI_1_0_EXT_POWER_STATE_MASK :
diff --git a/include/linux/psci.h b/include/linux/psci.h
index 393efe2..bdea1cb 100644
--- a/include/linux/psci.h
+++ b/include/linux/psci.h
@@ -21,8 +21,6 @@
 #define PSCI_POWER_STATE_TYPE_POWER_DOWN	1
 
 bool psci_tos_resident_on(int cpu);
-bool psci_power_state_loses_context(u32 state);
-bool psci_power_state_is_valid(u32 state);
 
 int psci_cpu_init_idle(unsigned int cpu);
 int psci_cpu_suspend_enter(unsigned long index);
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match
  2016-04-20 10:20 [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match Lorenzo Pieralisi
  2016-04-20 10:20 ` [PATCH 2/2] drivers: firmware: psci: make two helper functions static Lorenzo Pieralisi
@ 2016-04-20 10:30 ` Mark Rutland
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Rutland @ 2016-04-20 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Apr 20, 2016 at 11:20:27AM +0100, Lorenzo Pieralisi wrote:
> From: Jisheng Zhang <jszhang@marvell.com>
> 
> This is to fix below sparse warning:
> drivers/firmware/psci.c:mmm:nn: warning: duplicate const
> 
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

FWIW, for both:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Thanks for picking them up!

Mark.

> ---
>  drivers/firmware/psci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
> index 11bfee8..0ab477ba 100644
> --- a/drivers/firmware/psci.c
> +++ b/drivers/firmware/psci.c
> @@ -563,7 +563,7 @@ out_put_node:
>  	return err;
>  }
>  
> -static const struct of_device_id const psci_of_match[] __initconst = {
> +static const struct of_device_id psci_of_match[] __initconst = {
>  	{ .compatible = "arm,psci",	.data = psci_0_1_init},
>  	{ .compatible = "arm,psci-0.2",	.data = psci_0_2_init},
>  	{ .compatible = "arm,psci-1.0",	.data = psci_0_2_init},
> -- 
> 2.6.4
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] drivers: firmware: psci: make two helper functions static
  2016-04-20 10:20 ` [PATCH 2/2] drivers: firmware: psci: make two helper functions static Lorenzo Pieralisi
@ 2016-04-25 21:48   ` Arnd Bergmann
  0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2016-04-25 21:48 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 20 April 2016 11:20:28 Lorenzo Pieralisi wrote:
> From: Jisheng Zhang <jszhang@marvell.com>
> 
> psci_power_state_loses_context() and psci_power_state_is_valid are only
> used internally now, so make them static.
> 
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> 

Applied both patches to next/drivers, thanks!

	Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-25 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-20 10:20 [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match Lorenzo Pieralisi
2016-04-20 10:20 ` [PATCH 2/2] drivers: firmware: psci: make two helper functions static Lorenzo Pieralisi
2016-04-25 21:48   ` Arnd Bergmann
2016-04-20 10:30 ` [PATCH 1/2] drivers: firmware: psci: drop duplicate const from psci_of_match Mark Rutland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.