Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1539892pxb; Wed, 4 Nov 2020 11:39:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJytxjwg+NoExpOHsDjIPgTOm3HJGam3mTxTp4u8eOWWh3SrQAaD35FUmfAaUU3wOdGnbHxx X-Received: by 2002:a50:8f61:: with SMTP id 88mr29228783edy.175.1604518757194; Wed, 04 Nov 2020 11:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518757; cv=none; d=google.com; s=arc-20160816; b=o8ApJ+I4K0/HrkokuFJlTDcTDZpB0LgHsM6m4111+0mNdNg0wpij3i2PyOhwFH19v2 xIEDH4uPQDqojl9zbON+TQrn3O7RQ6pjCDmxgGAH04OR3JYo1vKbBc+nXQtPm3OUJixD gahx0qA47eDRDpw60+hS+RaH/+a2AkpeE2FBffLCwdw9deHLCPm8iDnv123Lvc2xF2lZ 7vEk5e6h+/jcndxyrNeoSx4uf+FUs/cRu0oVGxyyjfH1bojD7QE8Rgexjj8/QnrU6fo5 2t+kXNyy7YIoTVK2GEjRb8sl0L1ypmwXCxEWUmLjRivJW8PbkEZz81JBu/MC87WbET6X G6tg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gPvcFV2vZX3BfpwLdpFbtIG9Ju+bls9tsXWTt3HrK/g=; b=Jh40U66fMPqJEaXxfUtTSOnhpgt5bBeEQEujNt94WAG+50ejSVbQIx4hRGooU5bm82 HinHhSbrngDuHJJ4apr7jWSRCHjCc3YiArivwi2lbseb/gLTPyzXj/4MgNe06RPWZcWX DQ9G2K1i1xiqrPTE80kSTfP3cc/e/zCx8lAYiDuR2xls4EHxwfTPXBmgX6FV6dd26iHE My1InpddwXtjAUyu3v4KDQN9n5H1H02S+zh83WonMaeCB/JRZJawuQ/EFm1rPOZYcx4n ZLmhrGDSNgA8giHWPuouN13S1susyGtuPjBgVz066iF8KwbvYec9QHxbnXdy1k5lLUQP f6uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZkJ59Xyr; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si2216426edn.399.2020.11.04.11.38.54; Wed, 04 Nov 2020 11:39:17 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ZkJ59Xyr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731779AbgKDTg4 (ORCPT + 99 others); Wed, 4 Nov 2020 14:36:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731698AbgKDTgv (ORCPT ); Wed, 4 Nov 2020 14:36:51 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0882DC0613D3 for ; Wed, 4 Nov 2020 11:36:51 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id e2so3441995wme.1 for ; Wed, 04 Nov 2020 11:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gPvcFV2vZX3BfpwLdpFbtIG9Ju+bls9tsXWTt3HrK/g=; b=ZkJ59XyrGFsm8wxeQrl3HsF8bvRavqa9TcCwKRRC+A3Iblhrs+H/fu4IS3oFIGJqfS OzW07o34gLevDQXsLuVEGfOC2GB58EJCnecQxY8b2bSukJw7BxACQykXf3I7+O1vAtrN RTLBipYC+OgFwKyH7tSlnkDU3apn95+lJmFpRzChAErlRojUp9tTVSsRCoZAN/xfIw2q RHBBj+jMFTF08GOvSX8moUbqpEGpUZedX2XJSS71TbqGaIq94+v1dexFtrP8Ej3zdRpO 8O2Z05hULFK56eGgzSBfsy2swRdzFB+bKeukwRN2tnZgKOAVK0qq+cvB8XIwAmDnEjUl 6iXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gPvcFV2vZX3BfpwLdpFbtIG9Ju+bls9tsXWTt3HrK/g=; b=A86dlB6W3ru5tFoiX7FlQJZYVHmXZmVTav1375BShjgfyNhjf/6aIbu3UHTRXv1UVO 8a5v7neZdZiTnw6yO4r62KOGQoP7PhMx4oAPsZhB/NOR0WZF5w9QkrlnP4xByXBsVzL7 MpggS3GFeaxE0r32VuYtubOtIKOC12rbdKmgpMmDYlXtx8S9POi/0DEMeWcOPGUnLtw+ FPqIwVNr/tpcl5ZUhUg9H3ZbNyhKq1nC3n+L4HAFP0eSUE3QGv/CVN3TENpn9RX8I9Kc C8jKwMzhvpVRdk43IEtPkNB6dzZ5X3kAkvtUwcH00ob1wXNI4/CiN+ye7MZU6ohZ2LA5 rW6A== X-Gm-Message-State: AOAM532BP3yvcYv/RYMKz8a2E2sVe56Z9I48BOjZhQ5enlIriGaXCInA 7oeiyZMVNChOg4El8WPKKZ1ExA== X-Received: by 2002:a7b:c453:: with SMTP id l19mr6136829wmi.2.1604518609655; Wed, 04 Nov 2020 11:36:49 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , paulkf@microgate.com Subject: [PATCH 35/36] tty: synclink: Mark disposable variables as __always_unused Date: Wed, 4 Nov 2020 19:35:48 +0000 Message-Id: <20201104193549.4026187-36-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> 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 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; /* 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; for ( Index = 0 ; Index < Intervalcount ; Index++ ) { -- 2.25.1