Received: by 10.213.65.68 with SMTP id h4csp19307imn; Fri, 16 Mar 2018 15:58:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELvBi8LwjaSbTU6/Ls33Qvz0kuFp2gLxNgm5vlku1XH6+gUWzAJ6P9vg+ZeOZToBHf6He1ao X-Received: by 10.99.158.81 with SMTP id r17mr2849826pgo.348.1521241093525; Fri, 16 Mar 2018 15:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521241093; cv=none; d=google.com; s=arc-20160816; b=XAG9WSDrGzXVnprxZYdlOFoLUs+B2LcXRsrKDV52Yri/2K+t2zAaLUo+kqwHY4jn0u RwBvy9sXhyiMZJHU9ED015JI0U8e1lObSDI1GSImisyt+phxjeKP6VHHkjCUjM4UIRr2 JMaz8WOEk+JWnLE08RNHEklLjCNYn77GGluvp/GNVzMRFLUyyJBIu1Fs6HDofM8ovV/5 l1mP/3+jRSzKyrLvBSQrhaRlcMAf+AWcl8mxr1q6oighiMs/Ro0tYWpsd5RJMoLv+0ED lEkcno2sHIs8jkhdbn2a88x524JxMtZPirxjDyQARw0zYYNB/MrnHuMo2hsA6oQGeRXv /blg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:arc-authentication-results; bh=lOQvuGz+u1KpEUvg11z9fGWeeI2/+Io9wpxWKe+4v5A=; b=pc333SfiKRYR3nMqPHyG53m1+Y+aI7Qc3oEzg7SW4lygpoP+990TmlHk3MUhOCUt8b 2doRhbHtj9XonLO1Rk6KzpxIsSJ3ieNsM6CqQ85SADiHV32U/pNADQFl10rEgrU6f8jd mn7a5nMoOw2BrdvjwZLHPBY5l6+vyKdZMoB9GHm9jssLzi+da8EsGpW3MxK8AMADaWYa Rdyj4JYkfvKKAUs5rUsT70TZ7AsJL1Jx3itvQ//+/bUZKrvqRiu4zUzSKDZaiswtJE4q rTG7C2sfzuCZaQja1NChYeQPEDSnFtkuk1+N/yBhSHP3bzxCbBwd1itLmhmzs18cmnUk ylrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9-v6si7045104pln.89.2018.03.16.15.57.58; Fri, 16 Mar 2018 15:58:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752836AbeCPWzl (ORCPT + 99 others); Fri, 16 Mar 2018 18:55:41 -0400 Received: from g2t2353.austin.hpe.com ([15.233.44.26]:8477 "EHLO g2t2353.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131AbeCPWzj (ORCPT ); Fri, 16 Mar 2018 18:55:39 -0400 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 5AFB965; Fri, 16 Mar 2018 22:55:38 +0000 (UTC) Received: from anatevka.americas.hpqcorp.net (anatevka.americas.hpqcorp.net [10.34.81.6]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id A496740; Fri, 16 Mar 2018 22:55:37 +0000 (UTC) Date: Fri, 16 Mar 2018 16:55:37 -0600 From: Jerry Hoemann To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Arnd Bergmann , Guenter Roeck , Wim Van Sebroeck Subject: Re: [PATCH 4.4 29/63] watchdog: hpwdt: fix unused variable warning Message-ID: <20180316225537.GA5989@anatevka.americas.hpqcorp.net> Reply-To: Jerry.Hoemann@hpe.com References: <20180316152259.964532775@linuxfoundation.org> <20180316152303.262268098@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316152303.262268098@linuxfoundation.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg, Sorry, if I'm missing something, but I see 3 patches for hpwdt queued up for 4.4: queue-4.4/watchdog-hpwdt-fix-unused-variable-warning.patch queue-4.4/watchdog-hpwdt-smbios-check.patch queue-4.4/watchdog-hpwdt-check-source-of-nmi.patch Shouldn't there also be a 4.4 patch for commit 2b3d89b402b085b08498e896c65267a145bed486 watchdog: hpwdt: Remove legacy NMI sourcing. As there was for 4.15, 4.14, and 4.9? commit 2b3d89b40 is the Spectre related patch. thanks Jerry Hoemann On Fri, Mar 16, 2018 at 04:23:01PM +0100, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Arnd Bergmann > > commit aeebc6ba88ba3758ad95467ff6191fabf2074c13 upstream. > > The new hpwdt_my_nmi() function is used conditionally, which produces > a harmless warning in some configurations: > > drivers/watchdog/hpwdt.c:478:12: error: 'hpwdt_my_nmi' defined but not used [-Werror=unused-function] > > This moves it inside of the #ifdef that protects its caller, to silence > the warning. > > Fixes: 621174a92851 ("watchdog: hpwdt: Check source of NMI") > Signed-off-by: Arnd Bergmann > Reviewed-by: Jerry Hoemann > Reviewed-by: Guenter Roeck > Signed-off-by: Guenter Roeck > Signed-off-by: Wim Van Sebroeck > Signed-off-by: Greg Kroah-Hartman > > --- > drivers/watchdog/hpwdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/drivers/watchdog/hpwdt.c > +++ b/drivers/watchdog/hpwdt.c > @@ -474,12 +474,12 @@ static int hpwdt_time_left(void) > return TICKS_TO_SECS(ioread16(hpwdt_timer_reg)); > } > > +#ifdef CONFIG_HPWDT_NMI_DECODING > static int hpwdt_my_nmi(void) > { > return ioread8(hpwdt_nmistat) & 0x6; > } > > -#ifdef CONFIG_HPWDT_NMI_DECODING > /* > * NMI Handler > */ > -- ----------------------------------------------------------------------------- Jerry Hoemann Software Engineer Hewlett Packard Enterprise -----------------------------------------------------------------------------