* [PATCH -next] regulator: da9121: Mark some symbols with static keyword
@ 2020-12-03 11:26 Zou Wei
2020-12-03 14:37 ` Adam Ward
2020-12-03 15:46 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Zou Wei @ 2020-12-03 11:26 UTC (permalink / raw)
To: support.opensource, lgirdwood, broonie; +Cc: linux-kernel, Zou Wei
Fix the following sparse warnings:
drivers/regulator/da9121-regulator.c:55:21: warning: symbol 'da9121_10A_2phase_current' was not declared. Should it be static?
drivers/regulator/da9121-regulator.c:63:21: warning: symbol 'da9121_6A_2phase_current' was not declared. Should it be static?
drivers/regulator/da9121-regulator.c:71:21: warning: symbol 'da9121_5A_1phase_current' was not declared. Should it be static?
drivers/regulator/da9121-regulator.c:79:21: warning: symbol 'da9121_3A_1phase_current' was not declared. Should it be static?
drivers/regulator/da9121-regulator.c:151:32: warning: symbol 'status_event_handling' was not declared. Should it be static?
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
drivers/regulator/da9121-regulator.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c
index 3ead6a1..893512c 100644
--- a/drivers/regulator/da9121-regulator.c
+++ b/drivers/regulator/da9121-regulator.c
@@ -52,7 +52,7 @@ struct da9121_range {
int reg_max;
};
-struct da9121_range da9121_10A_2phase_current = {
+static struct da9121_range da9121_10A_2phase_current = {
.val_min = 7000000,
.val_max = 20000000,
.val_stp = 1000000,
@@ -60,7 +60,7 @@ struct da9121_range da9121_10A_2phase_current = {
.reg_max = 14,
};
-struct da9121_range da9121_6A_2phase_current = {
+static struct da9121_range da9121_6A_2phase_current = {
.val_min = 7000000,
.val_max = 12000000,
.val_stp = 1000000,
@@ -68,7 +68,7 @@ struct da9121_range da9121_6A_2phase_current = {
.reg_max = 6,
};
-struct da9121_range da9121_5A_1phase_current = {
+static struct da9121_range da9121_5A_1phase_current = {
.val_min = 3500000,
.val_max = 10000000,
.val_stp = 500000,
@@ -76,7 +76,7 @@ struct da9121_range da9121_5A_1phase_current = {
.reg_max = 14,
};
-struct da9121_range da9121_3A_1phase_current = {
+static struct da9121_range da9121_3A_1phase_current = {
.val_min = 3500000,
.val_max = 6000000,
.val_stp = 500000,
@@ -148,7 +148,7 @@ struct status_event_data {
*
* GPIO0/1/2 are not configured for use by default, so should not be seen.
*/
-const struct status_event_data status_event_handling[] = {
+static const struct status_event_data status_event_handling[] = {
DA9xxx_STATUS(0, 0, SG, 0, "Handled E_SG\n"),
DA9121_STATUS(0, 0, TEMP_CRIT, (REGULATOR_EVENT_OVER_TEMP|REGULATOR_EVENT_DISABLE), NULL),
DA9121_STATUS(0, 0, TEMP_WARN, REGULATOR_EVENT_OVER_TEMP, NULL),
--
2.6.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH -next] regulator: da9121: Mark some symbols with static keyword
2020-12-03 11:26 [PATCH -next] regulator: da9121: Mark some symbols with static keyword Zou Wei
@ 2020-12-03 14:37 ` Adam Ward
2020-12-03 15:46 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Adam Ward @ 2020-12-03 14:37 UTC (permalink / raw)
To: Zou Wei, Support Opensource, lgirdwood, broonie; +Cc: linux-kernel
Acked-by: Adam Ward <Adam.Ward.opensource@diasemi.com>
> -----Original Message-----
> From: Zou Wei <zou_wei@huawei.com>
> Sent: 03 December 2020 11:27
> To: Support Opensource <Support.Opensource@diasemi.com>;
> lgirdwood@gmail.com; broonie@kernel.org
> Cc: linux-kernel@vger.kernel.org; Zou Wei <zou_wei@huawei.com>
> Subject: [PATCH -next] regulator: da9121: Mark some symbols with static
> keyword
>
> Fix the following sparse warnings:
>
> drivers/regulator/da9121-regulator.c:55:21: warning: symbol
> 'da9121_10A_2phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:63:21: warning: symbol
> 'da9121_6A_2phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:71:21: warning: symbol
> 'da9121_5A_1phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:79:21: warning: symbol
> 'da9121_3A_1phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:151:32: warning: symbol
> 'status_event_handling' was not declared. Should it be static?
>
> Signed-off-by: Zou Wei <zou_wei@huawei.com>
> ---
> drivers/regulator/da9121-regulator.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-
> regulator.c
> index 3ead6a1..893512c 100644
> --- a/drivers/regulator/da9121-regulator.c
> +++ b/drivers/regulator/da9121-regulator.c
> @@ -52,7 +52,7 @@ struct da9121_range {
> int reg_max;
> };
>
> -struct da9121_range da9121_10A_2phase_current = {
> +static struct da9121_range da9121_10A_2phase_current = {
> .val_min = 7000000,
> .val_max = 20000000,
> .val_stp = 1000000,
> @@ -60,7 +60,7 @@ struct da9121_range da9121_10A_2phase_current = {
> .reg_max = 14,
> };
>
> -struct da9121_range da9121_6A_2phase_current = {
> +static struct da9121_range da9121_6A_2phase_current = {
> .val_min = 7000000,
> .val_max = 12000000,
> .val_stp = 1000000,
> @@ -68,7 +68,7 @@ struct da9121_range da9121_6A_2phase_current = {
> .reg_max = 6,
> };
>
> -struct da9121_range da9121_5A_1phase_current = {
> +static struct da9121_range da9121_5A_1phase_current = {
> .val_min = 3500000,
> .val_max = 10000000,
> .val_stp = 500000,
> @@ -76,7 +76,7 @@ struct da9121_range da9121_5A_1phase_current = {
> .reg_max = 14,
> };
>
> -struct da9121_range da9121_3A_1phase_current = {
> +static struct da9121_range da9121_3A_1phase_current = {
> .val_min = 3500000,
> .val_max = 6000000,
> .val_stp = 500000,
> @@ -148,7 +148,7 @@ struct status_event_data {
> *
> * GPIO0/1/2 are not configured for use by default, so should not be seen.
> */
> -const struct status_event_data status_event_handling[] = {
> +static const struct status_event_data status_event_handling[] = {
> DA9xxx_STATUS(0, 0, SG, 0, "Handled E_SG\n"),
> DA9121_STATUS(0, 0, TEMP_CRIT,
> (REGULATOR_EVENT_OVER_TEMP|REGULATOR_EVENT_DISABLE), NULL),
> DA9121_STATUS(0, 0, TEMP_WARN,
> REGULATOR_EVENT_OVER_TEMP, NULL),
> --
> 2.6.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] regulator: da9121: Mark some symbols with static keyword
2020-12-03 11:26 [PATCH -next] regulator: da9121: Mark some symbols with static keyword Zou Wei
2020-12-03 14:37 ` Adam Ward
@ 2020-12-03 15:46 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-12-03 15:46 UTC (permalink / raw)
To: lgirdwood, Zou Wei, support.opensource; +Cc: linux-kernel
On Thu, 3 Dec 2020 19:26:35 +0800, Zou Wei wrote:
> Fix the following sparse warnings:
>
> drivers/regulator/da9121-regulator.c:55:21: warning: symbol 'da9121_10A_2phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:63:21: warning: symbol 'da9121_6A_2phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:71:21: warning: symbol 'da9121_5A_1phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:79:21: warning: symbol 'da9121_3A_1phase_current' was not declared. Should it be static?
> drivers/regulator/da9121-regulator.c:151:32: warning: symbol 'status_event_handling' was not declared. Should it be static?
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: da9121: Mark some symbols with static keyword
commit: c8dbf2f200de8c9cba3b332522fabad114cf9f53
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-03 15:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 11:26 [PATCH -next] regulator: da9121: Mark some symbols with static keyword Zou Wei
2020-12-03 14:37 ` Adam Ward
2020-12-03 15:46 ` Mark Brown
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.