Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp380669pxb; Tue, 3 Nov 2020 01:58:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1+e0mHtulXo3mPUfxI2H6bt1ENePtigmYqLTsBRtMmzsq2bpi7V/zA/K45FTkPWH9O7Q2 X-Received: by 2002:a05:6402:1042:: with SMTP id e2mr21429827edu.320.1604397488756; Tue, 03 Nov 2020 01:58:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604397488; cv=none; d=google.com; s=arc-20160816; b=n3MyJIZpGpw38WvuI6L5U7rGmtN1MWAjT7vxBJ8VrVos/fseHwqv9f03/lOwWGIC56 CZwHBn/lGiOwJY/UwGFp7TVZA5b6NvgXG7eojLKP+iLd+zWlf8uEZQqSHNoAjjGf5bW9 iYqxS0/jhs7Eg0deFpZ4tFiyH/KvulAiJR9+bPNatT5V0E1SjSgMHN0iriLpADCsFhH+ NhGJuOtQXqdpZexflyK4KMND2rWBpx5V2ni9UkDswZRzj/CwPat4cfVkOfiKNtDTOjOL qkeOiYuChfZe1KqEMCgDVIC2Ho6yJ8Umrx5Zx6kZbZxIjFAus/f1RxrvTHf/AxjDftbp FvAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Tx5ykkvsGG7DDkzREg5mPh9VHMQJscDvSRDjQIZx58I=; b=Q9gZSNg0wXfNRIF3l8dgeaxtFD+RzJxKzsDbjQuqlzA9cKmZA7u9eb3+fmsMd9wxil LfBYvgWmtXYQPcdIr8bTb32ujsgHY/wm7f82Dh2r1XCOjxf1wOnElvHujkRxzyE4XJhz Nsjz8SHARiUJTxpwl+CwCJbwewANZdbTuR7mhkZzV1IT16uLis5Wm/8nVnuRtXNb48qi HXZYikIAvGXQFLzPXvTYHw/JK3pUoTjLWK07KdKuHxx/T34c6UcgwSFe76jHhLs4PwA1 mHBlsw563sJs0qtdiiOClTGLyj6CrrInZ6hocKN8LDV/B9ZQn5iDQ7BaSERQvMma7Ge2 QWjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si12413683ejz.330.2020.11.03.01.57.46; Tue, 03 Nov 2020 01:58:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728075AbgKCJzq (ORCPT + 99 others); Tue, 3 Nov 2020 04:55:46 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:62001 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727470AbgKCJzp (ORCPT ); Tue, 3 Nov 2020 04:55:45 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4CQQC11G6dz9vBL6; Tue, 3 Nov 2020 10:55:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id gMUBwbi-TI51; Tue, 3 Nov 2020 10:55:41 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4CQQC109jtz9vBL4; Tue, 3 Nov 2020 10:55:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 273D38B77E; Tue, 3 Nov 2020 10:55:42 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id BFsGvPi7rmNr; Tue, 3 Nov 2020 10:55:42 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 79F678B7BD; Tue, 3 Nov 2020 10:55:41 +0100 (CET) Subject: Re: [RESEND PATCH] kernel/watchdog: Fix watchdog_allowed_mask not used warning To: Santosh Sivaraj , Linux Kernel , Michael Ellerman , linuxppc-dev Cc: pmladek@suse.com, bala24@linux.ibm.com, Thomas Gleixner References: <20201103093235.655665-1-santosh@fossix.org> From: Christophe Leroy Message-ID: <214be993-96ec-82b0-b841-c80f7e7faefb@csgroup.eu> Date: Tue, 3 Nov 2020 10:55:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20201103093235.655665-1-santosh@fossix.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 03/11/2020 à 10:32, Santosh Sivaraj a écrit : > Define watchdog_allowed_mask only when SOFTLOCKUP_DETECTOR is enabled. > > Signed-off-by: Santosh Sivaraj I think maybe you should add a Fixes: tag (Towards https://github.com/linuxppc/linux/commit/7feeb9cd ?) And copy Thomas (tglx) Christophe > --- > > Original patch is here: > https://lore.kernel.org/lkml/20190807014417.9418-1-santosh@fossix.org/ > > A similar patch was also sent by Balamuruhan and reviewed by Petr. > https://lkml.org/lkml/2020/8/20/1030 > > kernel/watchdog.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/watchdog.c b/kernel/watchdog.c > index 5abb5b22ad13..71109065bd8e 100644 > --- a/kernel/watchdog.c > +++ b/kernel/watchdog.c > @@ -44,8 +44,6 @@ int __read_mostly soft_watchdog_user_enabled = 1; > int __read_mostly watchdog_thresh = 10; > static int __read_mostly nmi_watchdog_available; > > -static struct cpumask watchdog_allowed_mask __read_mostly; > - > struct cpumask watchdog_cpumask __read_mostly; > unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask); > > @@ -162,6 +160,8 @@ static void lockup_detector_update_enable(void) > int __read_mostly sysctl_softlockup_all_cpu_backtrace; > #endif > > +static struct cpumask watchdog_allowed_mask __read_mostly; > + > /* Global variables, exported for sysctl */ > unsigned int __read_mostly softlockup_panic = > CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE; >