From nobody Sun Feb 8 01:33:53 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D453EB64DC for ; Fri, 21 Jul 2023 08:44:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbjGUIok (ORCPT ); Fri, 21 Jul 2023 04:44:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjGUIog (ORCPT ); Fri, 21 Jul 2023 04:44:36 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C614CE for ; Fri, 21 Jul 2023 01:44:33 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R6jlv6QcDzBRRLh for ; Fri, 21 Jul 2023 16:44:27 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689929067; x=1692521068; bh=n4NHMNhgcBJ+Cu+TPvqm+w/BK+8 KMC4JqD9hhGz2mpE=; b=P72239ClSaZ3KzFY13WLdI2ceL/u7JDJfeLKroHsmfG yJe7oovWmy3GenBP2H3oWI8U40CR9b4uovx+xVakbyAw1xGm5xe6Vy4ToIOrx9Ir X9fkO9bMgMa7YlqFcb0vnt5HYlq5pO2tKXq9vyPZK5oI68vyiw/vUSbgBJhWRJO9 sEWITpVba43IdouiZ0twGLpjKEIFVAKIDCXMU8iUcoywshp5VlV86DhiWejtxQ/q WNGPBv4BBV6GSseSHK2pEdyaMgGDhe3LrFeScaqS7gbZRyR3CH6U266gmpAxdjUQ AUOXoBqzjCZKaMYdgZfEddE+aPTOqQJ4Ngx1FDcxntQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bfiC2QFWyu7i for ; Fri, 21 Jul 2023 16:44:27 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R6jlv2V8DzBJnMj; Fri, 21 Jul 2023 16:44:27 +0800 (CST) MIME-Version: 1.0 Date: Fri, 21 Jul 2023 08:44:27 +0000 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 In-Reply-To: <20230721084245.6128-1-xujianghui@cdjrlc.com> References: <20230721084245.6128-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <2ea849847ae4bda204192b00cc6fb87d@208suo.com> X-Sender: sunran001@208suo.com Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8"; format="flowed" Fix the following checkpatch error: ERROR: do not initialise globals to 0 Signed-off-by: Ran Sun --- 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 =3D { .flags =3D IORESOURCE_MEM | IORESOURCE_BUSY, }; -unsigned int lapic_timer_period =3D 0; +unsigned int lapic_timer_period; static void apic_pm_activate(void);