From: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: longman@redhat.com, pauld@redhat.com,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powerpc/shared: include correct header for static key
Date: Tue, 24 Dec 2019 21:52:50 +0530 [thread overview]
Message-ID: <20191224162250.GA1781@linux.vnet.ibm.com> (raw)
In-Reply-To: <xagsmtp2.20191223133223.8837@vmsdvm3.vnet.ibm.com>
* Jason A. Donenfeld <Jason@zx2c4.com> [2019-12-23 14:31:47]:
> Recently, the spinlock implementation grew a static key optimization,
> but the jump_label.h header include was left out, leading to build
> errors:
>
> linux/arch/powerpc/include/asm/spinlock.h:44:7: error: implicit declaration of function ???static_branch_unlikely??? [-Werror=implicit-function-declaration]
> 44 | if (!static_branch_unlikely(&shared_processor))
>
> This commit adds the missing header.
Right, This was in v4 version of the patchset
(http://lkml.kernel.org/r/20191212085344.17357-1-srikar@linux.vnet.ibm.com)
but we missed it in the final v5 version.
Thanks for noticing and fixing it.
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
>
> Fixes: 656c21d6af5d ("powerpc/shared: Use static key to detect shared processor")
> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
> ---
> arch/powerpc/include/asm/spinlock.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/powerpc/include/asm/spinlock.h b/arch/powerpc/include/asm/spinlock.h
> index 1b55fc08f853..860228e917dc 100644
> --- a/arch/powerpc/include/asm/spinlock.h
> +++ b/arch/powerpc/include/asm/spinlock.h
> @@ -15,6 +15,7 @@
> *
> * (the type definitions are in asm/spinlock_types.h)
> */
> +#include <linux/jump_label.h>
> #include <linux/irqflags.h>
> #ifdef CONFIG_PPC64
> #include <asm/paca.h>
> --
> 2.24.1
>
--
Thanks and Regards
Srikar Dronamraju
WARNING: multiple messages have this Message-ID (diff)
From: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: pauld@redhat.com, longman@redhat.com, mpe@ellerman.id.au,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powerpc/shared: include correct header for static key
Date: Tue, 24 Dec 2019 21:52:50 +0530 [thread overview]
Message-ID: <20191224162250.GA1781@linux.vnet.ibm.com> (raw)
In-Reply-To: <xagsmtp2.20191223133223.8837@vmsdvm3.vnet.ibm.com>
* Jason A. Donenfeld <Jason@zx2c4.com> [2019-12-23 14:31:47]:
> Recently, the spinlock implementation grew a static key optimization,
> but the jump_label.h header include was left out, leading to build
> errors:
>
> linux/arch/powerpc/include/asm/spinlock.h:44:7: error: implicit declaration of function ???static_branch_unlikely??? [-Werror=implicit-function-declaration]
> 44 | if (!static_branch_unlikely(&shared_processor))
>
> This commit adds the missing header.
Right, This was in v4 version of the patchset
(http://lkml.kernel.org/r/20191212085344.17357-1-srikar@linux.vnet.ibm.com)
but we missed it in the final v5 version.
Thanks for noticing and fixing it.
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
>
> Fixes: 656c21d6af5d ("powerpc/shared: Use static key to detect shared processor")
> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
> ---
> arch/powerpc/include/asm/spinlock.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/powerpc/include/asm/spinlock.h b/arch/powerpc/include/asm/spinlock.h
> index 1b55fc08f853..860228e917dc 100644
> --- a/arch/powerpc/include/asm/spinlock.h
> +++ b/arch/powerpc/include/asm/spinlock.h
> @@ -15,6 +15,7 @@
> *
> * (the type definitions are in asm/spinlock_types.h)
> */
> +#include <linux/jump_label.h>
> #include <linux/irqflags.h>
> #ifdef CONFIG_PPC64
> #include <asm/paca.h>
> --
> 2.24.1
>
--
Thanks and Regards
Srikar Dronamraju
next parent reply other threads:[~2019-12-24 16:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <xagsmtp2.20191223133223.8837@vmsdvm3.vnet.ibm.com>
2019-12-24 16:22 ` Srikar Dronamraju [this message]
2019-12-24 16:22 ` [PATCH] powerpc/shared: include correct header for static key Srikar Dronamraju
2019-12-23 13:31 Jason A. Donenfeld
2020-01-06 5:23 ` 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=20191224162250.GA1781@linux.vnet.ibm.com \
--to=srikar@linux.vnet.ibm.com \
--cc=Jason@zx2c4.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=longman@redhat.com \
--cc=pauld@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.