Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3098653img; Mon, 25 Mar 2019 03:50:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQoRfZP8MdVSFyoT2ef5cJ72DxR8pHUrgBJfg8QeakOFZ58B3QpPqLgVM5j0w4TiAKQ0d8 X-Received: by 2002:a63:2b82:: with SMTP id r124mr22397180pgr.214.1553511041734; Mon, 25 Mar 2019 03:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553511041; cv=none; d=google.com; s=arc-20160816; b=xXfNY9cpP5aIcCdeLqbCF76L4QSRjiij3KejqR/0fnfJ6ftGAPvYhtbtjWrKC/fvdM DxL0by6rSt+LTrqsG/vhO1bCF8oUa+OVkaBfVDSfyVEbZHZYOeLtp8fhwqWPRYLX5R2R R0A+UTJQpxL9pLGdvb/hsdPOWGSOpXNtiNm8ZeAf5fbdWENPnAHS6vFBKStgP6ND0GtH 1mnDXLGpgiLWaVv3fmAbRS1SNzkizgZXCOVERIDr7K0ZrckaOB6EVb9XYcIpEGzJYcsg ULwVQQz8PSjWMZIfF8D5Jz2E09wdi7sLIGDn1Isjq6GaW4VE7DIGqPyn+tJiXOPLSc/f 0KFA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iyZDHLA9HHY16+5/Pi3pWf2SbVZ9j2tQ08ZLzcaHmyA=; b=gL3TbBNENDRcrYDVGGxJaFeysMUYa8Z6zH/nWLLpMZmKWKr7lY7CZeIpQSAxg8gKgt FvT4aHgwDcEpbTTCAwRkFIAoNljxhbel8I94GmAwWurB92NbbRWVG/XhjceeEHjKchDc GELlldalxmMsfj7YYJmxStq5WotqeaR3qZqhet9oOxNoJ0vfVXqdrfRvAoMAhxhyBNsm P9nPnsaTg9OxeHh/YEVIXRw3CJeoofuQIpgLbZ33ttbWQOisp+u7mxr1KPnsvJ+IIlrU JTTFjZSOFngB6e40c/YAogDF9wBM8sAt8aSpmcRKoxOPzKZwQtfn6H8gOVzlE5CdXHPp aMOg== 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 y18si12943525pfe.72.2019.03.25.03.50.27; Mon, 25 Mar 2019 03:50:41 -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 S1730633AbfCYKr6 (ORCPT + 99 others); Mon, 25 Mar 2019 06:47:58 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:32831 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729727AbfCYKr5 (ORCPT ); Mon, 25 Mar 2019 06:47:57 -0400 X-Originating-IP: 109.213.38.144 Received: from localhost (alyon-652-1-47-144.w109-213.abo.wanadoo.fr [109.213.38.144]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 12A53C000D; Mon, 25 Mar 2019 10:47:54 +0000 (UTC) Date: Mon, 25 Mar 2019 11:47:54 +0100 From: Alexandre Belloni To: Anders Roxell Cc: a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: sh: fix unused variable warning Message-ID: <20190325104754.GJ30105@piout.net> References: <20190325102453.8349-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190325102453.8349-1-anders.roxell@linaro.org> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/03/2019 11:24:53+0100, Anders Roxell wrote: > When building the driver rtc/rtc-sh a warning about unused variable > shows up: > > ../drivers/rtc/rtc-sh.c: In function ‘sh_rtc_probe’: > ../drivers/rtc/rtc-sh.c:472:18: warning: unused variable ‘r’ [-Wunused-variable] > struct rtc_time r; > ^ > > Remove the declaration of the unused varable 'r'. > > Fixes: 373f7f4bf4a5 ("rtc: sh: stop resetting time to epoch") > Signed-off-by: Anders Roxell > --- > drivers/rtc/rtc-sh.c | 1 - > 1 file changed, 1 deletion(-) > Thanks, I've squashed it in the original commit as it is not yet in any release and its hash may still change. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com