Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3015619pxb; Mon, 18 Oct 2021 06:39:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgzrA28WJnwUXF836pKpbmCWqHRaDxsHt1kzZTrH2rLReLodXpG8y7Ah4HNxoBn/0dfszz X-Received: by 2002:a17:90b:1d0d:: with SMTP id on13mr36484054pjb.36.1634564357316; Mon, 18 Oct 2021 06:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564357; cv=none; d=google.com; s=arc-20160816; b=hxT94t2Fd0CUy30xeZmm86VVcaD4z5fpR0XJPvOkI0INR5ARFGK+MOqD7rE+dWsAR0 fYhqwNhHuod2T5dPcjePieXuYihOmWhu4FO26DcIrbt4srOrCqWH1mTEr+2cOB9lTcsy yzxmywuwQTNrYYSbJJFF8XhjoMB1N71bVJ0kCLBslDwSZSlmuCMkrpkWdTKC2Jd62vyn UrwUosCrQCnj3ZWhzjN40lEsexGG7jfiNgA0WF72Y+5me0UgHWfCWi3m6E82pX+BZuav P3R9XyADyzJuWZ0RgRidQGOJDmjnTQR6cVvlIW5l2pYoZLwf2wGleROK8Unz6n7qsMBL KiDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R30kYcpYN00HF+U6SDq/Ngo4ewJd8+jA5v6SibsIbVE=; b=t7HZTtZwCTBFjt4MORPWz/YHWykrZpFpZdoj4XaBlzwD0xGp9OPQzrt8kymCvtdhzW C7hYGVChgI+hrjUlcpY6kLsqqLOpcWFi7j2NWFAew1CYed4calaj0x9kFHf7J8lI4f7l c2aHattGdAwt7v1/ZaKq4yaOoPU3JtZPApNdkdEgQKB4yBq4a42SSIKDQLST7ja8EowS W/8snJau7JF78VURK3ByTY97UiiPU83jVmNkKcbN5+O2hkYLrT2u5lV2nQXh1hPnUGNM 7BVi0hP27H9x8jmCDcUu5Jxcsz+vKR/XbPKISWwR+41DR52d59kSlZDeYYoWKCcE7y2S FY2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gVMG9eD1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ik9si18357005plb.340.2021.10.18.06.39.04; Mon, 18 Oct 2021 06:39:17 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gVMG9eD1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232941AbhJRNjx (ORCPT + 99 others); Mon, 18 Oct 2021 09:39:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:55140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232972AbhJRNgP (ORCPT ); Mon, 18 Oct 2021 09:36:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EA16A613BD; Mon, 18 Oct 2021 13:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563862; bh=8Yv8DfGlHSd0F1x2NLq7qL26rhiIUTD5Ci5LMFjrKWo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gVMG9eD1+7JeBW2ycAMSixzCJZrmut172O0yOpoY0jJy2yjkC1Y5+0DWdqbcpfhVl oi0c0IhTRAuqRWeBG0d8MheM53MjfvX1ib5B7MQ3TCTuydO+2IEREquDUGv6iLt72V mzDs5v1BUcnStAz2rNABE1Qdx0IUSPCTGfaQEzqY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Packham , Guenter Roeck , Wim Van Sebroeck , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH 5.4 16/69] watchdog: orion: use 0 for unset heartbeat Date: Mon, 18 Oct 2021 15:24:14 +0200 Message-Id: <20211018132330.000309595@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132329.453964125@linuxfoundation.org> References: <20211018132329.453964125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Packham commit bb914088bd8a91c382f54d469367b2e5508b5493 upstream. If the heartbeat module param is not specified we would get an error message watchdog: f1020300.watchdog: driver supplied timeout (4294967295) out of range watchdog: f1020300.watchdog: falling back to default timeout (171) This is because we were initialising heartbeat to -1. By removing the initialisation (thus letting the C run time initialise it to 0) we silence the warning message and the default timeout is still used. Signed-off-by: Chris Packham Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20200313031312.1485-1-chris.packham@alliedtelesis.co.nz Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Marek BehĂșn Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/orion_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -52,7 +52,7 @@ #define WDT_A370_RATIO (1 << WDT_A370_RATIO_SHIFT) static bool nowayout = WATCHDOG_NOWAYOUT; -static int heartbeat = -1; /* module parameter (seconds) */ +static int heartbeat; /* module parameter (seconds) */ struct orion_watchdog;