Received: by 10.213.65.68 with SMTP id h4csp530156imn; Fri, 16 Mar 2018 10:31:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELtVtUwJKIarsxZfmrM666mRJlsY7JDTXj2gU3Hiz60FAiPPNrarCYtF4ylrNhGGt1x4Obx7 X-Received: by 10.99.111.139 with SMTP id k133mr2122072pgc.236.1521221507947; Fri, 16 Mar 2018 10:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521221507; cv=none; d=google.com; s=arc-20160816; b=J3YKrq1+79pAoRe5O1YTS+fQMDttD5HaH+i6S3cMtgVi/f41YJ0ML4hZDpPzTa/grU Ck9bkUvkfFut0Zapf7xaSAJpibmgzFPt4n0ce0rUliR6XNNwGETPHI+2pMRRp3KLoMNc pncIl+LdOEAiZoPHuer0ke3jYNdQ+bH0U1VNBWG0Um5ZZaq5Buuujl9ZhjI+Lqb73bmn pnvXJJiQ5ilFc87RSGMhBP/eqSxr47YpM8xrCXIXj5vkKCXjbVX3J/yfpA+IavHAa0sM uFdWrZbFE3bnza7ch8NgDOJzD5npUlQpuhE++RgH6BZoh+jqvcEcUcd0kJAHwJ61XZM7 0lxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=VFfTqhR3d2ZoXk0WuYdr0eY/eSRePEDaf309iP9RbFc=; b=C596EVm7wbVcVlKgylqZKLmaKVXoYy8s/IFikdAbTR21cUNPuL+cpcbFPOQFeEwIQ4 +L90bxKPBHOQv6aBplacH7E6yX4DQ6EFvBqA7QIkhMbOwIwRPf+YaPnytbjg7MtgTEmK 4ZKmQze21rIaTitRcqepkg6ZqATECx2nVljTi11vvJBrX3RJks4xXgc+KeBdHn+4Sn4R +91B7yKRP2vvkO34UXK8QCRAta0D1neRJL5XGkIBbv82+AgIidQFqzFShcu/XRBJ+/3r 8vx4Kvyq+cn+X1G2Y10G5aOEp9f3GlYn+LlDYy70ObBT5Iz7QBh4YLa0vz/WYWaLFmYq 11sQ== 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 j91-v6si6555753pld.202.2018.03.16.10.31.34; Fri, 16 Mar 2018 10:31:47 -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 S932743AbeCPP14 (ORCPT + 99 others); Fri, 16 Mar 2018 11:27:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34826 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932712AbeCPP1t (ORCPT ); Fri, 16 Mar 2018 11:27:49 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2CB83125E; Fri, 16 Mar 2018 15:27:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Jerry Hoemann , Guenter Roeck , Wim Van Sebroeck Subject: [PATCH 4.4 29/63] watchdog: hpwdt: fix unused variable warning Date: Fri, 16 Mar 2018 16:23:01 +0100 Message-Id: <20180316152303.262268098@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */