linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: make x86_init noop functions static
@ 2018-02-21  9:42 Juergen Gross
  2018-02-21 10:52 ` [tip:x86/boot] x86/boot: Make the " tip-bot for Juergen Gross
  2018-02-26  8:47 ` [tip:x86/mm] " tip-bot for Juergen Gross
  0 siblings, 2 replies; 3+ messages in thread
From: Juergen Gross @ 2018-02-21  9:42 UTC (permalink / raw)
  To: linux-kernel, x86; +Cc: hpa, tglx, mingo, Juergen Gross

Make the noop functions in x86_init.c static in case they are used
locally only.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 arch/x86/kernel/x86_init.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index 9e4e994a4836..b8cff22a8785 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -26,11 +26,11 @@
 
 void x86_init_noop(void) { }
 void __init x86_init_uint_noop(unsigned int unused) { }
-int __init iommu_init_noop(void) { return 0; }
-void iommu_shutdown_noop(void) { }
-bool __init bool_x86_init_noop(void) { return false; }
-void x86_op_int_noop(int cpu) { }
-u64 u64_x86_init_noop(void) { return 0; }
+static int __init iommu_init_noop(void) { return 0; }
+static void iommu_shutdown_noop(void) { }
+static bool __init bool_x86_init_noop(void) { return false; }
+static void x86_op_int_noop(int cpu) { }
+static u64 u64_x86_init_noop(void) { return 0; }
 
 /*
  * The platform setup functions are preset with the default functions
-- 
2.13.6

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

* [tip:x86/boot] x86/boot: Make the x86_init noop functions static
  2018-02-21  9:42 [PATCH] x86: make x86_init noop functions static Juergen Gross
@ 2018-02-21 10:52 ` tip-bot for Juergen Gross
  2018-02-26  8:47 ` [tip:x86/mm] " tip-bot for Juergen Gross
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Juergen Gross @ 2018-02-21 10:52 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, mingo, fengguang.wu, hpa, tglx, peterz, torvalds, jgross

Commit-ID:  a504ab7384eea0361e9292681f4a7b9d5010ccf2
Gitweb:     https://git.kernel.org/tip/a504ab7384eea0361e9292681f4a7b9d5010ccf2
Author:     Juergen Gross <jgross@suse.com>
AuthorDate: Wed, 21 Feb 2018 10:42:32 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 21 Feb 2018 11:22:37 +0100

x86/boot: Make the x86_init noop functions static

Make the noop functions in x86_init.c static in case they are used
locally only.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180221094232.23462-1-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/kernel/x86_init.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index 9e4e994..b8cff22 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -26,11 +26,11 @@
 
 void x86_init_noop(void) { }
 void __init x86_init_uint_noop(unsigned int unused) { }
-int __init iommu_init_noop(void) { return 0; }
-void iommu_shutdown_noop(void) { }
-bool __init bool_x86_init_noop(void) { return false; }
-void x86_op_int_noop(int cpu) { }
-u64 u64_x86_init_noop(void) { return 0; }
+static int __init iommu_init_noop(void) { return 0; }
+static void iommu_shutdown_noop(void) { }
+static bool __init bool_x86_init_noop(void) { return false; }
+static void x86_op_int_noop(int cpu) { }
+static u64 u64_x86_init_noop(void) { return 0; }
 
 /*
  * The platform setup functions are preset with the default functions

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

* [tip:x86/mm] x86/boot: Make the x86_init noop functions static
  2018-02-21  9:42 [PATCH] x86: make x86_init noop functions static Juergen Gross
  2018-02-21 10:52 ` [tip:x86/boot] x86/boot: Make the " tip-bot for Juergen Gross
@ 2018-02-26  8:47 ` tip-bot for Juergen Gross
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Juergen Gross @ 2018-02-26  8:47 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: tglx, torvalds, peterz, hpa, jgross, fengguang.wu, linux-kernel, mingo

Commit-ID:  c46dacb75cd59a50a2380dcba5e7edf4fde86845
Gitweb:     https://git.kernel.org/tip/c46dacb75cd59a50a2380dcba5e7edf4fde86845
Author:     Juergen Gross <jgross@suse.com>
AuthorDate: Wed, 21 Feb 2018 10:42:32 +0100
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 26 Feb 2018 08:43:21 +0100

x86/boot: Make the x86_init noop functions static

Make the noop functions in x86_init.c static in case they are used
locally only.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180221094232.23462-1-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/kernel/x86_init.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index 9e4e994a4836..b8cff22a8785 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -26,11 +26,11 @@
 
 void x86_init_noop(void) { }
 void __init x86_init_uint_noop(unsigned int unused) { }
-int __init iommu_init_noop(void) { return 0; }
-void iommu_shutdown_noop(void) { }
-bool __init bool_x86_init_noop(void) { return false; }
-void x86_op_int_noop(int cpu) { }
-u64 u64_x86_init_noop(void) { return 0; }
+static int __init iommu_init_noop(void) { return 0; }
+static void iommu_shutdown_noop(void) { }
+static bool __init bool_x86_init_noop(void) { return false; }
+static void x86_op_int_noop(int cpu) { }
+static u64 u64_x86_init_noop(void) { return 0; }
 
 /*
  * The platform setup functions are preset with the default functions

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

end of thread, other threads:[~2018-02-26  8:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21  9:42 [PATCH] x86: make x86_init noop functions static Juergen Gross
2018-02-21 10:52 ` [tip:x86/boot] x86/boot: Make the " tip-bot for Juergen Gross
2018-02-26  8:47 ` [tip:x86/mm] " tip-bot for Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).