public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: sunran001@208suo.com
To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com, x86@kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] x86/apic: Do not initialise globals to 0
Date: Fri, 21 Jul 2023 08:44:27 +0000	[thread overview]
Message-ID: <2ea849847ae4bda204192b00cc6fb87d@208suo.com> (raw)
In-Reply-To: <20230721084245.6128-1-xujianghui@cdjrlc.com>

Fix the following checkpatch error:

ERROR: do not initialise globals to 0

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  arch/x86/kernel/apic/apic.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index af49e24b46a4..8d46733ad94b 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -202,7 +202,7 @@ static struct resource lapic_resource = {
  	.flags = IORESOURCE_MEM | IORESOURCE_BUSY,
  };

-unsigned int lapic_timer_period = 0;
+unsigned int lapic_timer_period;

  static void apic_pm_activate(void);

           reply	other threads:[~2023-07-21  8:44 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20230721084245.6128-1-xujianghui@cdjrlc.com>]

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=2ea849847ae4bda204192b00cc6fb87d@208suo.com \
    --to=sunran001@208suo.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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