From patchwork Wed Nov 4 19:35:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320574 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5698653ilc; Wed, 4 Nov 2020 11:37:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5LcmUZiLbTv9e8XHiInzDcmBYmAxWq+nRqsLxvgdrjcxfc1mCsK0GO2nQJUSUHVrvjJuO X-Received: by 2002:a05:6402:1f1:: with SMTP id i17mr13654528edy.60.1604518629547; Wed, 04 Nov 2020 11:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518629; cv=none; d=google.com; s=arc-20160816; b=N31krtnpoADk1zev7YhOl3IFhOIvIulD8xbT8wOUyMPq1uSvVJUe1ATYlCBn40xbC7 wfTjpDhhtrMqW3VxCHqojf1b2VSrR8X0iwhVO4ibYzey3sYUvyT899w64m7kizzIYQCF dtWSTY7yS2/vcpG6SpBMODH+HGgqU5GaSd4pcgA0ykUgPFbHGpXK8wwocxnBSQg8vlV3 gjzq6wM8uXmQKsjsqLfR7dCSn29T90N0N4B1UxZ5mJ4MxNEeJkB1sWEMBQqoFap/lUOs Rpm1PBcaz6G+xmYHIJYTAzjUKakwPoj+7QE2yiNW0JFPDLuug3bdgd+yUuYe3skihrU+ DdBQ== 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=ErfYpYEPgr7SyR0IGrTLDHOPTVsMeF+NG57/GEyOHB0=; b=yr+inHc5pLkpfWsEynreoSjg2T/esfFRmMrj2hynDLWyG+3JK44vo8/NwyhRVsMC91 LPzTz7OMwgDT6+RyECCQyKR9yx06kYNmJHRyA3lky1zt68MxkKLmo+qu6vt8APqWIQDm NmXHDu+qAM7J5Do9NeipNTB09X8Wy3c+9zhIfR5RZiz54X9k5LjQ0AnYgLqcPfqus7ur FK6MH0ieko+x8ltKKt6sddNfg8Pj9bX0VOeqcCu1+goxtGIzLAd7I6kZAOg52KYPNhsR 532j3mEKYrFa7SmXT/cL9ABd9snZdMt3H8CRL76sDSJ/t3UkF3fzKNWdkr7SxNP1bYUC WuVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pX29kLlm; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 v7si2717792edj.516.2020.11.04.11.37.09; Wed, 04 Nov 2020 11:37:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-serial-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=pX29kLlm; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 S1731555AbgKDThI (ORCPT + 2 others); Wed, 4 Nov 2020 14:37:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731673AbgKDTgu (ORCPT ); Wed, 4 Nov 2020 14:36:50 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C6CC0613D4 for ; Wed, 4 Nov 2020 11:36:49 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id h22so3447288wmb.0 for ; Wed, 04 Nov 2020 11:36:49 -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=ErfYpYEPgr7SyR0IGrTLDHOPTVsMeF+NG57/GEyOHB0=; b=pX29kLlmBcSPTSQCXTO8Lo9d4QG+nqnnImw6YFxmstscNqOOswbExguUzzT4L2axlU D3GWk5jA11ZzA+AZVtegLCVhl2Ob2ZmAEEHVzMHCsciCYwyQTL8h89K8WzLvAsv7TRcu 7yI+7qd87nij+dGvWnf+2yyWANiI/xOXRymlotH13o1iY4W7M550ffyUTs+i/hqzxRcZ TKhz+VRg0g9MO6Q9omYUAHnyYyG0b/tNB7yPcru/BSqEkR7LGsnBTwhTnSMhBAoFeI05 ZFKQqxZhOGvRVRNlQ6UmnNU504R2+m9kxBQlMwaHA65WTwkPAt9WKivfMsX/iLNdWsoh CY8A== 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=ErfYpYEPgr7SyR0IGrTLDHOPTVsMeF+NG57/GEyOHB0=; b=kFmcCrdxutkRRVjGnUpDh97O2uGOWTVm4sSSJImwH78m1+JbHIHfDIEcehBu79ysW1 zbpUpF8QRT6yx/EgOhghZQyYzXeQHeW5AMcs2z1SXsx5ulnH4L6yXaL/BKSclbjso4/E pPomtT+f40491tQgtguyBAGXMIzC0gNgIrzJyjdqhZ9aefNsbUwu1JzcIzlUWALpsqKW 6HNguvd7FZhJAsv5FEN0P3WMw+oBDllLNDKJkVYZVyaaQ0wa4O7vP6LqJJ/HQHk5zjLL YqJKKumNiXfJbwL7g8NecP1iv73YwCymnpLBXdqk6fyu1MnpU5zbq5U+WIO3sFIeiqNY DeOQ== X-Gm-Message-State: AOAM533yqCH7ft2syV5LWgohF/lqegn/pe2ivnRNwhHTJ01Lz7JTzbSq cG4qLR8Lk6SvQSzOdH7/sciUqFix2ZezoZ8/ X-Received: by 2002:a1c:a90e:: with SMTP id s14mr6477604wme.46.1604518608351; Wed, 04 Nov 2020 11:36:48 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-serial@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 34/36] tty: serial: pmac_zilog: Make disposable variable __always_unused Date: Wed, 4 Nov 2020 19:35:47 +0000 Message-Id: <20201104193549.4026187-35-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 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/tty/serial/pmac_zilog.h:365:58: warning: variable ‘garbage’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linux-serial@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/tty/serial/pmac_zilog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/tty/serial/pmac_zilog.h b/drivers/tty/serial/pmac_zilog.h index bb874e76810e0..968aec7c1cf82 100644 --- a/drivers/tty/serial/pmac_zilog.h +++ b/drivers/tty/serial/pmac_zilog.h @@ -362,7 +362,7 @@ static inline void zssync(struct uart_pmac_port *port) /* Misc macros */ #define ZS_CLEARERR(port) (write_zsreg(port, 0, ERR_RES)) -#define ZS_CLEARFIFO(port) do { volatile unsigned char garbage; \ +#define ZS_CLEARFIFO(port) do { volatile unsigned char __always_unused garbage; \ garbage = read_zsdata(port); \ garbage = read_zsdata(port); \ garbage = read_zsdata(port); \