linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Axtens <dja@axtens.net>
To: linuxppc-dev@ozlabs.org
Cc: mpe@ellerman.id.au, Daniel Axtens <dja@axtens.net>
Subject: [PATCH 3/4] powerpc/sparse: Include headers containing prototypes
Date: Wed, 18 May 2016 11:16:51 +1000	[thread overview]
Message-ID: <1463534212-4879-3-git-send-email-dja@axtens.net> (raw)
In-Reply-To: <1463534212-4879-1-git-send-email-dja@axtens.net>

Sometimes headers that provide prototypes for functions are
accidentally omitted from the files that define the functions.

Fix a couple of times that occurs.

Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 arch/powerpc/kernel/smp.c              | 1 +
 arch/powerpc/platforms/pseries/power.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index f1adc3c4f4ca..1b55c7864291 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -31,6 +31,7 @@
 #include <linux/cpu.h>
 #include <linux/notifier.h>
 #include <linux/topology.h>
+#include <linux/profile.h>
 
 #include <asm/ptrace.h>
 #include <linux/atomic.h>
diff --git a/arch/powerpc/platforms/pseries/power.c b/arch/powerpc/platforms/pseries/power.c
index c26eadde434c..a4a0b57d1d81 100644
--- a/arch/powerpc/platforms/pseries/power.c
+++ b/arch/powerpc/platforms/pseries/power.c
@@ -27,6 +27,8 @@
 #include <linux/init.h>
 #include <asm/machdep.h>
 
+#include "pseries.h"
+
 unsigned long rtas_poweron_auto; /* default and normal state is 0 */
 
 static ssize_t auto_poweron_show(struct kobject *kobj,
-- 
2.5.0

  parent reply	other threads:[~2016-05-18  1:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18  1:16 [PATCH 1/4] powerpc/sparse: make some things static Daniel Axtens
2016-05-18  1:16 ` [PATCH 2/4] powerpc: Introduce asm-prototypes.h Daniel Axtens
2016-06-21  0:40   ` [2/4] " Michael Ellerman
2020-08-14  9:34   ` [PATCH 2/4] " Christophe Leroy
2020-08-14  9:53     ` Daniel Axtens
2020-08-14 10:41       ` Christophe Leroy
2020-08-14 13:04     ` Michael Ellerman
2020-08-14 13:26       ` Christophe Leroy
2016-05-18  1:16 ` Daniel Axtens [this message]
2016-06-21  0:40   ` [3/4] powerpc/sparse: Include headers containing prototypes Michael Ellerman
2016-05-18  1:16 ` [PATCH 4/4] powerpc/sparse: Use LE definition of REG_BYTE Daniel Axtens
2016-06-21  0:40 ` [1/4] powerpc/sparse: make some things static Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463534212-4879-3-git-send-email-dja@axtens.net \
    --to=dja@axtens.net \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).