Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp326657pxb; Thu, 5 Nov 2020 00:39:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVHExCbwA/qybx0MW0U64umqW606LMYOioF5MF+28deTdF21J3tIMUc1oxds+Zz33T2N3y X-Received: by 2002:a17:906:6a57:: with SMTP id n23mr1283989ejs.315.1604565558448; Thu, 05 Nov 2020 00:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604565558; cv=none; d=google.com; s=arc-20160816; b=DAwtQZ7OMO6CTDGg11XWYR1dtjn12b8x/ATLv4VtqnwEvcA+P8shks1oT9M8lHclQq GzvWldpGVTZRWtALpegx+PIxwIjNDNC/6PoOgkToz/wS8eqYZmz83BeWRfSmZDJldUxO 9cUXMqocQ2+utw6JOSoxeHdchifCXGAmMeV7STw42u2S7F98YbEgEZmzFE77Oi22lnkz StdgqG1/mY29KXqhGzYv3414NfsQ+PWtH7qJmVTDQhiHjjKcByx8L5VEJONHnKjgg6Ov /jts6+4IcXMa4PMFdxP1Uxt1m4zMxnuPveUlt3A8Z88U3hDm16YFovG+0JUGGU44j0yH dVjQ== 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=A8p+H3RYNG8jjI1AszxS6HyIBWC6MEoTDsggNv7VAsc=; b=ZJpJ6X3YIoGIIMaSo6ZO6l6WYV823Mg7vET/fPdAyjqkQ0VD6yLvjaSMWGGEAUAUGd TO61ImKtFo0q1qxsaGqpA6NHYBtaIfZhPmh4BlK3vIYZyupm5SfhH/acuyi4Q1cqhEjn S7TN+e0piusfb6U1NDfYd30WaD5UdxHtYqm1S+Frt1ZqqRqMqdcMda5h2VksL3KXpHfK 4L2uquY27nZdFlwBuDRqZzTB4kCO8RW4k1BHAsBqxhW+gHes83Zh1WFHxR4HEVjm81cQ w63AFkhwALt21InZaquDMzZ+wEwd8pbLOlIs92/enT6BP8jKil9oX4v+c8nB2FFL72pv 6d/g== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si696348edl.592.2020.11.05.00.38.55; Thu, 05 Nov 2020 00:39:18 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728553AbgKEIfk (ORCPT + 99 others); Thu, 5 Nov 2020 03:35:40 -0500 Received: from mail-ej1-f65.google.com ([209.85.218.65]:46294 "EHLO mail-ej1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgKEIfj (ORCPT ); Thu, 5 Nov 2020 03:35:39 -0500 Received: by mail-ej1-f65.google.com with SMTP id w13so1364452eju.13 for ; Thu, 05 Nov 2020 00:35:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=A8p+H3RYNG8jjI1AszxS6HyIBWC6MEoTDsggNv7VAsc=; b=UyvGBmN3MTLjkkn3+pT44z8ofZCLAuGJKgbuLm4gPlZ9KVx5e9lmgCLc4OLlrX9h8z 1Vr2/AZLQZGhZgPS/byvWFXiIY86kgIpVonAl10//fPgAJckLace/aksHmgWeklHAnvZ oBVwoRP5UfkGJ2l13KQvAz/sSThxfFvLA0oK1rhow7WQHzWy/JuyNtajG/GVwWI7kLyM AOUxz4x7YDaUeXDpVes7n8e5NOkbyYFND1o+shDrMH3O0W5ZX0QjKXlTc9PsFWyOcNjB M9p3fVEzUA6lZGyGdtZi2TNHEZEcsiT1uJBCmZn+QN7MXpYA0hZhJDxZ67k7NLn0SE2H hVFQ== X-Gm-Message-State: AOAM533wqFlTgRc41WEX8mdn6zF3DXOJrdiiqo5OCPIvg8vkLe402qUZ g+FbuadEhQ29a0YRe3WgdrM= X-Received: by 2002:a17:906:1a0c:: with SMTP id i12mr1238667ejf.176.1604565336204; Thu, 05 Nov 2020 00:35:36 -0800 (PST) Received: from ?IPv6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id k4sm461477edq.73.2020.11.05.00.35.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Nov 2020 00:35:35 -0800 (PST) Subject: Re: [PATCH 35/36] tty: synclink: Mark disposable variables as __always_unused To: Lee Jones Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , paulkf@microgate.com References: <20201104193549.4026187-1-lee.jones@linaro.org> <20201104193549.4026187-36-lee.jones@linaro.org> From: Jiri Slaby Message-ID: <8c45684e-057a-20f9-9a78-b0f6e9bcddaa@kernel.org> Date: Thu, 5 Nov 2020 09:35:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.3 MIME-Version: 1.0 In-Reply-To: <20201104193549.4026187-36-lee.jones@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04. 11. 20, 20:35, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/tty/synclink.c: In function ‘usc_reset’: > drivers/tty/synclink.c:5571:6: warning: variable ‘readval’ set but not used [-Wunused-but-set-variable] > drivers/tty/synclink.c: In function ‘mgsl_load_pci_memory’: > drivers/tty/synclink.c:7267:16: warning: variable ‘Dummy’ set but not used [-Wunused-but-set-variable] > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: paulkf@microgate.com > Signed-off-by: Lee Jones > --- > drivers/tty/synclink.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c > index c8324d58ef564..8ed64b1e7c378 100644 > --- a/drivers/tty/synclink.c > +++ b/drivers/tty/synclink.c > @@ -5568,7 +5568,7 @@ static void usc_load_txfifo( struct mgsl_struct *info ) > static void usc_reset( struct mgsl_struct *info ) > { > int i; > - u32 readval; > + u32 __always_unused readval; The same as in synclinkmp. > > /* Set BIT30 of Misc Control Register */ > /* (Local Control Register 0x50) to force reset of USC. */ > @@ -7264,7 +7264,7 @@ static void mgsl_load_pci_memory( char* TargetPtr, const char* SourcePtr, > > unsigned short Intervalcount = count / PCI_LOAD_INTERVAL; > unsigned short Index; > - unsigned long Dummy; > + unsigned long __always_unused Dummy; You can kill it completely. > > for ( Index = 0 ; Index < Intervalcount ; Index++ ) > { > thanks, -- js suse labs