Skip to contentSkip to conversation

x86: don't introduce more __cpuinit users in intel_mid_weak_decls.h

PATCH Superseded Paul Gortmaker 4 participants 13 messages Jan 22, 2014 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 52dff2dd.pH9hExjpyBbWvw0a%[email protected]

#1 lore raw

PATCH 1/1 x86: don't introduce more __cpuinit users in intel_mid_weak_decls.h

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>

---

[patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
index a537ffc16299..41fe17d0d8ff 100644
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));
Signature · 1 line
1.8.5.2
#2 lore raw
Quoted 25 lines · Paul Gortmaker

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>

---

[patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +0 -0
index a537ffc16299..41fe17d0d8ff 100644

arch/x86/platform/intel-mid/intel_mid_weak_decls.h line 19

Quoted 8 lines
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));

Sent stale copy w/o git-add on the actual file containing the functions themselves ; will resend v2 shortly after I double check testing...

P.
--

Quoted 1 line
#3 lore raw

PATCH v2 1/1 x86: don't introduce more __cpuinit users in intel_mid_weak_decls.h

In reply to a message not in the archive

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>

---

[v2: actually include changes to mfld.c as well this time

patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 arch/x86/platform/intel-mid/mfld.c                 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
index a537ffc16299..41fe17d0d8ff 100644
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));
arch/x86/platform/intel-mid/mfld.c +2 -2
index 4f7884eebc14..88b06fcf9959 100644
@@ -64,12 +64,12 @@ static void __init penwell_arch_setup()
 	pm_power_off = mfld_power_off;
 }
 
-void * __cpuinit get_penwell_ops()
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
 
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }
Signature · 1 line
1.8.5.2
Acked-by on v2 1/1
#4 lore raw
Quoted 6 lines · Paul Gortmaker

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Quoted 6 lines
Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>
#5 lore raw
In reply to Paul Gortmaker
Quoted 45 lines · Paul Gortmaker

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>

---

[v2: actually include changes to mfld.c as well this time

patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 arch/x86/platform/intel-mid/mfld.c                 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
index a537ffc16299..41fe17d0d8ff 100644
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));
arch/x86/platform/intel-mid/mfld.c +0 -1
index 4f7884eebc14..88b06fcf9959 100644
@@ -64,12 +64,12 @@ static void __init penwell_arch_setup()
 	pm_power_off = mfld_power_off;
 }
 
-void * __cpuinit get_penwell_ops()

arch/x86/platform/intel-mid/mfld.c static void __init penwell_arch_setup() · line 75

Quoted 10 lines
arch/x86/platform/intel-mid/mfld.c +2 -1
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
 
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }

You are still missing one:

arch/x86/platform/intel-mid/mrfl.c +1 -1
@@ -97,7 +97,7 @@ static struct intel_mid_ops tangier_ops = {
        .arch_setup = tangier_arch_setup,
 };
 
-void * __cpuinit get_tangier_ops()
+void * get_tangier_ops()
 {
        return &tangier_ops;
 }

Can you amend your patch?

Br, David Cohen

Quoted 2 lines
Signature · 1 line
1.8.5.2
#6 lore raw
Quoted 71 lines · David Cohen
Quoted 45 lines · Paul Gortmaker

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>

---

[v2: actually include changes to mfld.c as well this time

patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 arch/x86/platform/intel-mid/mfld.c                 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
index a537ffc16299..41fe17d0d8ff 100644
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));
arch/x86/platform/intel-mid/mfld.c +0 -1
index 4f7884eebc14..88b06fcf9959 100644
@@ -64,12 +64,12 @@ static void __init penwell_arch_setup()
 	pm_power_off = mfld_power_off;
 }
 
-void * __cpuinit get_penwell_ops()

arch/x86/platform/intel-mid/mfld.c static void __init penwell_arch_setup() · line 75

Quoted 10 lines
arch/x86/platform/intel-mid/mfld.c +2 -1
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
 
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }

You are still missing one:

arch/x86/platform/intel-mid/mrfl.c +1 -1
@@ -97,7 +97,7 @@ static struct intel_mid_ops tangier_ops = {
        .arch_setup = tangier_arch_setup,
 };
 
-void * __cpuinit get_tangier_ops()
+void * get_tangier_ops()
 {
        return &tangier_ops;
 }
Quoted 1 line

Can you amend your patch?

That was fixed in the other patch you already ack'd :)

http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/tree/x86-don-t-add-new-__cpuinit-users-to-Merrifield-plat.patch

I made the tangier fix a separate patch since it had a separate introductory commit, and also actually had the section mismatch.

Thanks,
Paul.
--

Quoted 5 lines

Br, David Cohen

Quoted 2 lines
Signature · 1 line
1.8.5.2
#7 lore raw
Quoted 72 lines · Paul Gortmaker
Quoted 71 lines · David Cohen
Quoted 45 lines · Paul Gortmaker

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

Cc David Cohen <[email protected]>
Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Fei Yang <[email protected]>
Cc H. Peter Anvin <[email protected]>

---

[v2: actually include changes to mfld.c as well this time

patch will be added to init cleanup series:
http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/ ]

 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 arch/x86/platform/intel-mid/mfld.c                 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
index a537ffc16299..41fe17d0d8ff 100644
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));
arch/x86/platform/intel-mid/mfld.c +0 -1
index 4f7884eebc14..88b06fcf9959 100644
@@ -64,12 +64,12 @@ static void __init penwell_arch_setup()
 	pm_power_off = mfld_power_off;
 }
 
-void * __cpuinit get_penwell_ops()

arch/x86/platform/intel-mid/mfld.c static void __init penwell_arch_setup() · line 75

Quoted 10 lines
arch/x86/platform/intel-mid/mfld.c +2 -1
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
 
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }

You are still missing one:

arch/x86/platform/intel-mid/mrfl.c +1 -1
@@ -97,7 +97,7 @@ static struct intel_mid_ops tangier_ops = {
        .arch_setup = tangier_arch_setup,
 };
 
-void * __cpuinit get_tangier_ops()
+void * get_tangier_ops()
 {
        return &tangier_ops;
 }
Quoted 8 lines
Quoted 1 line

Can you amend your patch?

That was fixed in the other patch you already ack'd :)

http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git/tree/x86-don-t-add-new-__cpuinit-users-to-Merrifield-plat.patch

I made the tangier fix a separate patch since it had a separate introductory commit, and also actually had the section mismatch.

I misread mrfl and mdfl :/ (guess I could use some rest...) That's why I took back my ack from the other patch. Sorry for the confusion.

Br, David

Quoted 11 lines

Thanks,
Paul.
--

Quoted 5 lines

Br, David Cohen

Quoted 2 lines
Signature · 1 line
1.8.5.2
#8 lore raw
In reply to David Cohen
Quoted 7 lines · David Cohen
Quoted 7 lines
(quoted diff) +1 -1
-void * __cpuinit get_penwell_ops()
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
Quoted 6 lines

Review

Quoted 5 lines
(quoted diff) +1 -1
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }

Can someone also find and fix the missing (void)s?

-hpa

#9 lore raw
Quoted 8 lines · H. Peter Anvin
Quoted 7 lines · David Cohen
Quoted 7 lines
(quoted diff) +1 -1
-void * __cpuinit get_penwell_ops()
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
Quoted 8 lines
Quoted 6 lines

Review

Quoted 5 lines
(quoted diff) +1 -1
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }

Can someone also find and fix the missing (void)s?

Sure, I can do that, if nobody else wants to.

P.
--

Quoted 4 lines

-hpa

#10 lore raw
Quoted 16 lines · Paul Gortmaker
Quoted 15 lines · H. Peter Anvin
Quoted 13 lines · David Cohen
Quoted 12 lines
(quoted diff) +2 -2
-void * __cpuinit get_penwell_ops()
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
 
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }
Quoted 3 lines
Quoted 1 line

Can someone also find and fix the missing (void)s?

Sure, I can do that, if nobody else wants to.

I'm sending it. I'm taking care fixing this intel-mid errors right now.

Br, David

Quoted 8 lines

P.
--

Quoted 4 lines

-hpa

#11 lore raw

PATCH 1/1 x86: intel-mid: add missing 'void' to functions without arguments

In reply to H. Peter Anvin

This patch adds missing 'void' to functions that doesn't receive arguments.

---

Hi,

Please, apply on top of Paul Gortmaker's patches:
[PATCH v2] x86: don't introduce more __cpuinit users in intel_mid_weak_decls.h [PATCH] x86: don't add new __cpuinit users to Merrifield platform code

Br, David

---
 arch/x86/platform/intel-mid/mfld.c | 6 +++---
 arch/x86/platform/intel-mid/mrfl.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/mfld.c +3 -3
index 88b06fcf9959..23381d2174ae 100644
@@ -58,18 +58,18 @@ static unsigned long __init mfld_calibrate_tsc(void)
 	return 0;
 }
 
-static void __init penwell_arch_setup()
+static void __init penwell_arch_setup(void)
 {
 	x86_platform.calibrate_tsc = mfld_calibrate_tsc;
 	pm_power_off = mfld_power_off;
 }
 
-void *get_penwell_ops()
+void *get_penwell_ops(void)
 {
 	return &penwell_ops;
 }
 
-void *get_cloverview_ops()
+void *get_cloverview_ops(void)
 {
 	return &penwell_ops;
 }
arch/x86/platform/intel-mid/mrfl.c +1 -1
index 28b636a21887..aaca91753d32 100644
@@ -97,7 +97,7 @@ static struct intel_mid_ops tangier_ops = {
 	.arch_setup = tangier_arch_setup,
 };
 
-void *get_tangier_ops()
+void *get_tangier_ops(void)
 {
 	return &tangier_ops;
 }
Signature · 1 line
1.8.4.2
#12 lore raw

[tip:x86/intel-mid] x86, intel-mid: Add missing 'void' to functions without arguments

x86, intel-mid: Add missing 'void' to functions without arguments
Commit-ID:  48102ca7fb2856dde2c75fbd37db45ba630f2967
Gitweb:     http://git.kernel.org/tip/48102ca7fb2856dde2c75fbd37db45ba630f2967
Author:     David Cohen <[email protected]>
AuthorDate: Wed, 22 Jan 2014 14:22:49 -0800
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Wed, 22 Jan 2014 14:30:02 -0800

x86, intel-mid: Add missing 'void' to functions without arguments

This patch adds missing 'void' to functions that doesn't receive arguments.

---
 arch/x86/platform/intel-mid/mfld.c | 6 +++---
 arch/x86/platform/intel-mid/mrfl.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/mfld.c +3 -3
index 88b06fc..23381d2 100644
@@ -58,18 +58,18 @@ static unsigned long __init mfld_calibrate_tsc(void)
 	return 0;
 }
 
-static void __init penwell_arch_setup()
+static void __init penwell_arch_setup(void)
 {
 	x86_platform.calibrate_tsc = mfld_calibrate_tsc;
 	pm_power_off = mfld_power_off;
 }
 
-void *get_penwell_ops()
+void *get_penwell_ops(void)
 {
 	return &penwell_ops;
 }
 
-void *get_cloverview_ops()
+void *get_cloverview_ops(void)
 {
 	return &penwell_ops;
 }
arch/x86/platform/intel-mid/mrfl.c +1 -1
index 28b636a..aaca917 100644
@@ -97,7 +97,7 @@ static struct intel_mid_ops tangier_ops = {
 	.arch_setup = tangier_arch_setup,
 };
 
-void *get_tangier_ops()
+void *get_tangier_ops(void)
 {
 	return &tangier_ops;
 }
#13 lore raw

[tip:x86/intel-mid] x86: Don' t introduce more __cpuinit users in intel_mid_weak_decls.h

In reply to Paul Gortmaker
x86: Don't introduce more __cpuinit users in intel_mid_weak_decls.h
Commit-ID:  cbe48bc8cd279ad519624c331dad5a291891ef05
Gitweb:     http://git.kernel.org/tip/cbe48bc8cd279ad519624c331dad5a291891ef05
Author:     Paul Gortmaker <[email protected]>
AuthorDate: Wed, 22 Jan 2014 12:34:15 -0500
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Wed, 22 Jan 2014 14:21:14 -0800

x86: Don't introduce more __cpuinit users in intel_mid_weak_decls.h

Commit 85611e3febe78955a519f5f9eb47b941525c8c76 ("x86, intel-mid:
Add Clovertrail platform support") added new instances of __cpuinit usage. We removed this a couple versions ago; we now want to remove the compat no-op stubs. Introducing new users is not what we want to see at this point in time, as it will break once the stubs are gone.

---
 arch/x86/platform/intel-mid/intel_mid_weak_decls.h | 4 ++--
 arch/x86/platform/intel-mid/mfld.c                 | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/platform/intel-mid/intel_mid_weak_decls.h +2 -2
index a537ffc..41fe17d 100644
@@ -14,6 +14,6 @@
 /* For every CPU addition a new get_<cpuname>_ops interface needs
  * to be added.
  */
-extern void * __cpuinit get_penwell_ops(void) __attribute__((weak));
-extern void * __cpuinit get_cloverview_ops(void) __attribute__((weak));
+extern void *get_penwell_ops(void) __attribute__((weak));
+extern void *get_cloverview_ops(void) __attribute__((weak));
 extern void * __init get_tangier_ops(void) __attribute__((weak));
arch/x86/platform/intel-mid/mfld.c +2 -2
index 4f7884e..88b06fc 100644
@@ -64,12 +64,12 @@ static void __init penwell_arch_setup()
 	pm_power_off = mfld_power_off;
 }
 
-void * __cpuinit get_penwell_ops()
+void *get_penwell_ops()
 {
 	return &penwell_ops;
 }
 
-void * __cpuinit get_cloverview_ops()
+void *get_cloverview_ops()
 {
 	return &penwell_ops;
 }