Skip to contentSkip to conversation

platform/x86: ISST: Mark mmio_range_devid_0 and mmio_range_devid_1 with static keyword

PATCH In review Zou Wei 3 participants 5 messages Dec 8, 2020 x86 platform drivers

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 platform/x86: ISST: Mark mmio_range_devid_0 and mmio_range_devid_1 with static keyword

Fix the following sparse warnings:

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:23:24: warning: symbol 'mmio_range_devid_0' was not declared. Should it be static? drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:28:24: warning: symbol 'mmio_range_devid_1' was not declared. Should it be static?

---
 drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +2 -2
index 2906cfe..ff49025 100644
@@ -20,12 +20,12 @@ struct isst_mmio_range {
 	int end;
 };
 
-struct isst_mmio_range mmio_range_devid_0[] = {
+static struct isst_mmio_range mmio_range_devid_0[] = {
 	{0x04, 0x14},
 	{0x20, 0xD0},
 };
 
-struct isst_mmio_range mmio_range_devid_1[] = {
+static struct isst_mmio_range mmio_range_devid_1[] = {
 	{0x04, 0x14},
 	{0x20, 0x11C},
 };
Signature · 1 line
2.6.2
#1 lore raw
Quoted 9 lines · Zou Wei

Fix the following sparse warnings:

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:23:24:
warning: symbol 'mmio_range_devid_0' was not declared. Should it be static? drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:28:24:
warning: symbol 'mmio_range_devid_1' was not declared. Should it be static?

Yesterday I sent a patch "[PATCH v2 2/3] platform/x86: ISST: Allow configurable offset range" to fix.

Thanks,
Srinivas

Quoted 26 lines

---
 drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c index 2906cfe..ff49025 100644

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +0 -0
@@ -20,12 +20,12 @@ struct isst_mmio_range {
         int end;
  };

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +1 -1
-struct isst_mmio_range mmio_range_devid_0[] = {
+static struct isst_mmio_range mmio_range_devid_0[] = {

        {0x04, 0x14},
        {0x20, 0xD0},
 };

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +1 -1
-struct isst_mmio_range mmio_range_devid_1[] = {
+static struct isst_mmio_range mmio_range_devid_1[] = {

        {0x04, 0x14},
        {0x20, 0x11C},
 };

#2 lore raw

Hi,

Quoted 10 lines · Srinivas
Quoted 9 lines · Zou Wei

Fix the following sparse warnings:

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:23:24:
warning: symbol 'mmio_range_devid_0' was not declared. Should it be static? drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:28:24:
warning: symbol 'mmio_range_devid_1' was not declared. Should it be static?

Quoted 2 lines

Yesterday I sent a patch "[PATCH v2 2/3] platform/x86: ISST: Allow configurable offset range" to fix.

And I replied to that v2 with the following:

"I've already added v1 of these to the for-next branch of:

https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/

Please send the changes in this v2 as (a) follow-up patch(es)."

https://lore.kernel.org/platform-driver-x86/[email protected]/T/#t

But I guess you may not have seen this because Intel's mail-servers seem to have gone completely foobar lately and are bouncing most of my emails it seems. I strongly suggest that you subscribe to the platform-driver-x86 lists, so that you at least get replies to your patches through the list.

So are the changes in this patch from Zou Wei the only changes in v2 of your ISST changes? If that is the case then I'll just merge Zou Wei's patch and then we're done.

Regards,

Hans

Quoted 27 lines
Quoted 26 lines

---
 drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c index 2906cfe..ff49025 100644

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +0 -0
@@ -20,12 +20,12 @@ struct isst_mmio_range {
         int end;
  };

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +1 -1
-struct isst_mmio_range mmio_range_devid_0[] = {
+static struct isst_mmio_range mmio_range_devid_0[] = {

        {0x04, 0x14},
        {0x20, 0xD0},
 };

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +1 -1
-struct isst_mmio_range mmio_range_devid_1[] = {
+static struct isst_mmio_range mmio_range_devid_1[] = {

        {0x04, 0x14},
        {0x20, 0x11C},
 };

#3 lore raw
Quoted 35 lines · Hans de Goede

Hi,

Quoted 12 lines · Srinivas
Quoted 11 lines · Zou Wei

Fix the following sparse warnings:

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:23:24:
warning: symbol 'mmio_range_devid_0' was not declared. Should it be
static? drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:28:24:
warning: symbol 'mmio_range_devid_1' was not declared. Should it be
static?

Quoted 2 lines

Yesterday I sent a patch "[PATCH v2 2/3] platform/x86: ISST: Allow configurable offset range" to fix.

And I replied to that v2 with the following:

"I've already added v1 of these to the for-next branch of:

https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/

Please send the changes in this v2 as (a) follow-up patch(es)."

https://lore.kernel.org/platform-driver-x86/[email protected]/T/#t

But I guess you may not have seen this because Intel's mail-servers seem to have gone completely foobar lately and are bouncing most of my emails it seems. I strongly suggest that you subscribe to the platform-driver-x86 lists, so that you at least get replies to your patches through the list.

Quoted 3 lines

So are the changes in this patch from Zou Wei the only changes in v2 of your ISST changes? If that is the case then I'll just merge Zou Wei's patch and then we're done.

Fine with me. Just merge Wei's patch.

Thanks,
Srinivas

Quoted 36 lines

Regards,

Hans

Quoted 28 lines
Quoted 27 lines

---
 drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c | 4
++--

 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c b/drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c index 2906cfe..ff49025 100644

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +0 -0
@@ -20,12 +20,12 @@ struct isst_mmio_range {
         int end;
  };

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +1 -1
-struct isst_mmio_range mmio_range_devid_0[] = {
+static struct isst_mmio_range mmio_range_devid_0[] = {

        {0x04, 0x14},
        {0x20, 0xD0},
 };

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +1 -1
-struct isst_mmio_range mmio_range_devid_1[] = {
+static struct isst_mmio_range mmio_range_devid_1[] = {

        {0x04, 0x14},
        {0x20, 0x11C},
 };

#4 lore raw
In reply to Zou Wei

Hi,

Quoted 6 lines · Zou Wei

Fix the following sparse warnings:

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:23:24: warning: symbol 'mmio_range_devid_0' was not declared. Should it be static? drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:28:24: warning: symbol 'mmio_range_devid_1' was not declared. Should it be static?

Thank you for your patch, I've applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window.

Regards,

Hans

Quoted 24 lines
---
 drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c +2 -2
index 2906cfe..ff49025 100644
@@ -20,12 +20,12 @@ struct isst_mmio_range {
 	int end;
 };
 
-struct isst_mmio_range mmio_range_devid_0[] = {
+static struct isst_mmio_range mmio_range_devid_0[] = {
 	{0x04, 0x14},
 	{0x20, 0xD0},
 };
 
-struct isst_mmio_range mmio_range_devid_1[] = {
+static struct isst_mmio_range mmio_range_devid_1[] = {
 	{0x04, 0x14},
 	{0x20, 0x11C},
 };