x86: don't introduce more __cpuinit users in intel_mid_weak_decls.h
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 52dff2dd.pH9hExjpyBbWvw0a%[email protected]
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.
---
[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
@@ -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
Quoted 25 lines · Paul Gortmaker
Commit
85611e3febe78955a519f5f9eb47b941525c8c76("x86, intel-mid:
Add Clovertrail platform support") added new instances of__cpuinitusage. 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.Reported-by kbuild test robot <[email protected]>Cc David Cohen <[email protected]>Cc Kuppuswamy Sathyanarayanan <[email protected]>Cc Fei Yang <[email protected]>Cc H. Peter Anvin <[email protected]>Signed-off-by Paul Gortmaker <[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
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
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 archiveCommit 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.
---
[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
@@ -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
@@ -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
Quoted 6 lines · Paul Gortmaker
Commit
85611e3febe78955a519f5f9eb47b941525c8c76("x86, intel-mid:
Add Clovertrail platform support") added new instances of__cpuinitusage. 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
Reported-by kbuild test robot <[email protected]>Cc David Cohen <[email protected]>Cc Kuppuswamy Sathyanarayanan <[email protected]>Cc Fei Yang <[email protected]>Cc H. Peter Anvin <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Quoted 45 lines · Paul Gortmaker
Commit
85611e3febe78955a519f5f9eb47b941525c8c76("x86, intel-mid:
Add Clovertrail platform support") added new instances of__cpuinitusage. 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.Reported-by kbuild test robot <[email protected]>Cc David Cohen <[email protected]>Cc Kuppuswamy Sathyanarayanan <[email protected]>Cc Fei Yang <[email protected]>Cc H. Peter Anvin <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>---
[v2: actually include changes to
mfld.cas well this timepatch 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@@ -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@@ -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
Quoted 71 lines · David Cohen
Quoted 45 lines · Paul Gortmaker
Commit
85611e3febe78955a519f5f9eb47b941525c8c76("x86, intel-mid:
Add Clovertrail platform support") added new instances of__cpuinitusage. 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.Reported-by kbuild test robot <[email protected]>Cc David Cohen <[email protected]>Cc Kuppuswamy Sathyanarayanan <[email protected]>Cc Fei Yang <[email protected]>Cc H. Peter Anvin <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>---
[v2: actually include changes to
mfld.cas well this timepatch 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@@ -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@@ -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 :)
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
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__cpuinitusage. 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.Reported-by kbuild test robot <[email protected]>Cc David Cohen <[email protected]>Cc Kuppuswamy Sathyanarayanan <[email protected]>Cc Fei Yang <[email protected]>Cc H. Peter Anvin <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>---
[v2: actually include changes to
mfld.cas well this timepatch 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@@ -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@@ -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 :)
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
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
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
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
PATCH 1/1 x86: intel-mid: add missing 'void' to functions without arguments
In reply to H. Peter AnvinThis 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
@@ -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
@@ -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
tip-bot for David Cohen
merge bot[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
@@ -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
@@ -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; }
tip-bot for Paul Gortmaker
merge bot[tip:x86/intel-mid] x86: Don' t introduce more __cpuinit users in intel_mid_weak_decls.h
In reply to Paul Gortmakerx86: 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
@@ -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
@@ -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; }