* [PATCH -next] x86: i8259: Make default_legacy_pic static
@ 2022-08-23 2:19 Chen Lifu
2022-10-31 0:48 ` chenlifu
2022-10-31 9:29 ` [tip: x86/cleanups] x86/i8259: " tip-bot2 for Chen Lifu
0 siblings, 2 replies; 3+ messages in thread
From: Chen Lifu @ 2022-08-23 2:19 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen, x86, hpa, linux-kernel; +Cc: chenlifu
The symbol is not used outside of the file, so mark it static.
Fixes the following warning:
arch/x86/kernel/i8259.c:410:19: warning:
symbol 'default_legacy_pic' was not declared. Should it be static?
Signed-off-by: Chen Lifu <chenlifu@huawei.com>
---
arch/x86/kernel/i8259.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
index 15aefa3f3e18..3aa5304200c5 100644
--- a/arch/x86/kernel/i8259.c
+++ b/arch/x86/kernel/i8259.c
@@ -405,11 +405,11 @@ struct legacy_pic null_legacy_pic = {
.probe = legacy_pic_probe,
.irq_pending = legacy_pic_irq_pending_noop,
.make_irq = legacy_pic_uint_noop,
};
-struct legacy_pic default_legacy_pic = {
+static struct legacy_pic default_legacy_pic = {
.nr_legacy_irqs = NR_IRQS_LEGACY,
.chip = &i8259A_chip,
.mask = mask_8259A_irq,
.unmask = unmask_8259A_irq,
.mask_all = mask_8259A,
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] x86: i8259: Make default_legacy_pic static
2022-08-23 2:19 [PATCH -next] x86: i8259: Make default_legacy_pic static Chen Lifu
@ 2022-10-31 0:48 ` chenlifu
2022-10-31 9:29 ` [tip: x86/cleanups] x86/i8259: " tip-bot2 for Chen Lifu
1 sibling, 0 replies; 3+ messages in thread
From: chenlifu @ 2022-10-31 0:48 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen, x86, hpa, linux-kernel
在 2022/8/23 10:19, Chen Lifu 写道:
> The symbol is not used outside of the file, so mark it static.
>
> Fixes the following warning:
>
> arch/x86/kernel/i8259.c:410:19: warning:
> symbol 'default_legacy_pic' was not declared. Should it be static?
>
> Signed-off-by: Chen Lifu <chenlifu@huawei.com>
> ---
> arch/x86/kernel/i8259.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
> index 15aefa3f3e18..3aa5304200c5 100644
> --- a/arch/x86/kernel/i8259.c
> +++ b/arch/x86/kernel/i8259.c
> @@ -405,11 +405,11 @@ struct legacy_pic null_legacy_pic = {
> .probe = legacy_pic_probe,
> .irq_pending = legacy_pic_irq_pending_noop,
> .make_irq = legacy_pic_uint_noop,
> };
>
> -struct legacy_pic default_legacy_pic = {
> +static struct legacy_pic default_legacy_pic = {
> .nr_legacy_irqs = NR_IRQS_LEGACY,
> .chip = &i8259A_chip,
> .mask = mask_8259A_irq,
> .unmask = unmask_8259A_irq,
> .mask_all = mask_8259A,
Friendly ping ...
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: x86/cleanups] x86/i8259: Make default_legacy_pic static
2022-08-23 2:19 [PATCH -next] x86: i8259: Make default_legacy_pic static Chen Lifu
2022-10-31 0:48 ` chenlifu
@ 2022-10-31 9:29 ` tip-bot2 for Chen Lifu
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Chen Lifu @ 2022-10-31 9:29 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Chen Lifu, Borislav Petkov, x86, linux-kernel
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: c9053e1c5a6fca221946f95d1fe6e47f69fb303a
Gitweb: https://git.kernel.org/tip/c9053e1c5a6fca221946f95d1fe6e47f69fb303a
Author: Chen Lifu <chenlifu@huawei.com>
AuthorDate: Tue, 23 Aug 2022 10:19:58 +08:00
Committer: Borislav Petkov <bp@suse.de>
CommitterDate: Mon, 31 Oct 2022 10:20:32 +01:00
x86/i8259: Make default_legacy_pic static
The symbol is not used outside of the file, so mark it static.
Signed-off-by: Chen Lifu <chenlifu@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220823021958.3052493-1-chenlifu@huawei.com
---
arch/x86/kernel/i8259.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
index 15aefa3..3aa5304 100644
--- a/arch/x86/kernel/i8259.c
+++ b/arch/x86/kernel/i8259.c
@@ -407,7 +407,7 @@ struct legacy_pic null_legacy_pic = {
.make_irq = legacy_pic_uint_noop,
};
-struct legacy_pic default_legacy_pic = {
+static struct legacy_pic default_legacy_pic = {
.nr_legacy_irqs = NR_IRQS_LEGACY,
.chip = &i8259A_chip,
.mask = mask_8259A_irq,
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-31 9:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 2:19 [PATCH -next] x86: i8259: Make default_legacy_pic static Chen Lifu
2022-10-31 0:48 ` chenlifu
2022-10-31 9:29 ` [tip: x86/cleanups] x86/i8259: " tip-bot2 for Chen Lifu
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).