Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1122471lqp; Fri, 22 Mar 2024 06:22:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQG2Aib8NO0H6J+tUYy9Qd+zF61xeIFUlvpbA1HVXHRtKd7CLEvZKqct+f639dxig3DVcg7YvG/5DmMVt8oMsk8XL+8BKor03Iy6A5gw== X-Google-Smtp-Source: AGHT+IECRsX+meH/nt9v4Uv3nTntwebm4tEkDH0UUXUNPUZ7X8uZvrXpqGPsEigCzdpo5l1FvpTA X-Received: by 2002:a17:906:2856:b0:a46:3f47:ea4b with SMTP id s22-20020a170906285600b00a463f47ea4bmr1520163ejc.65.1711113768791; Fri, 22 Mar 2024 06:22:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711113768; cv=pass; d=google.com; s=arc-20160816; b=fzRQfV1Hovm+hVoaJz0y8koT8lMBTxoqdc5MqVj9GeJa7nAHv225cT0DPnX/9vsUQE ah5GPWYZO7nMIqatDylw8LzKlKRfGqAwkKguxNzeqGKJNjWMhjir2E0Dm0AbkNbxOKQ3 QLqs9QV/kawDQRX00Qs/Fd8ec7455y9TID+g+7NyhmQPP8YAJ10Y2HivDweamNAJsbt4 WxtqsotU60WhlU9YwccdpJudnr1IbIKzNP8EugFTj4sz3g2IzsvTOHOUHlGyoaqMjc8o cx5H/dO14/RGFQCyxt0GfnmKMN9wwKn4FiQ9tQ+OLWq5tI/nfPu9c5X1QktJqlKowcWE MKWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=59pqrG/QBQe79c31DCPYtg5Y8IAPNX2b5QuPZFKMvSA=; fh=8fXQdv58n4lcGbzFGoXRF/Rr4uMKzLJBKlLiPCOJalw=; b=HCwcpDtcOIgj3RyvBhPdJkk/26kmrbO0cGilK2wr+YkUIM4AbETLF1bf2upShaaaeU KBxiIjWqSeHmOM3mTlVHlSvsmxjfV74kVK/di2lqx349qDF43h0MeUguteR9ifvR/ioi DUPM2xV2PJ60b6IVV3g24HfQ/3rfApMa3MLmxTOKfBGN//I1TZjW3KfSt9VgGNJ7Uw+3 rMSAYPXSEv72wfLgbGL5hl/L/1I9DYprZOldaUUcrPeyy9iy9+P7nmbhN0eqdQN1Nztf ARzdfaJy1962D9SXtpbGM9QbT2eReSMeZiHfpeqPv2GjF65b0JlKEe9nL9tX3k7jvQ/d pZ5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lBXGK0Q2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gf7-20020a170906e20700b00a46937bc451si946871ejb.885.2024.03.22.06.22.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:22:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lBXGK0Q2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 592F01F2227D for ; Fri, 22 Mar 2024 13:22:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 601584643B; Fri, 22 Mar 2024 13:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lBXGK0Q2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 396D145BFC for ; Fri, 22 Mar 2024 13:22:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113759; cv=none; b=TAFvxWqaoEtC99uiVlBF8ngaCoBO2naIWEKUXPKYxUXmsMXVktK/8N06VkaO48EAjuITa0HYTEleNuvvwGioFaVXcTLNVYDqhgO0V/cXToXbDdpyQcVZp+1KogpGoVirIKFqVCjYBjx+2bfniP4JCUACcozsn9uk3ElmiLhkijw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113759; c=relaxed/simple; bh=oJI7OJGcHiSzlfANKgkCEdv5ZGh29jwQrc+H/qiL9IQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=nTCXSIX3E5NQ3P3vzgeWwhg8GAkZKq5M6viY41exGoOsB0u8VjeXtGYiJft9m9CD4QC8YqUuPi9ju0DCvPAIsirF9Zjyteuh9Kk+kQqV3MwS5WGFZxcS8OLjVv2cW+TXB5LDdylWYLpVFYMquUWjeAvZ+Od7WIngGJSjQGklKkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lBXGK0Q2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B1B8C43394; Fri, 22 Mar 2024 13:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711113758; bh=oJI7OJGcHiSzlfANKgkCEdv5ZGh29jwQrc+H/qiL9IQ=; h=From:To:Cc:Subject:Date:From; b=lBXGK0Q2Ctsjinyfmzj1l8tqQHHZ4lfJYq9ma24BoOthsrGk5Zkjt0rTYh9sXQxu1 jkFHJSEt5FjywE8VBOZ3JqlA03MsqefVZekrh4rnY3rz8dkXe/RTrOqnG/BNEMggkP iAQfMnvDKJKFrVgdDW/b499janzVEuKYhDt28u6LX4KHsM9Yu2rynUbDURobRHYYP7 A0TCoi+0gSxOkBe3hqPSYSiRnfq8dL1k/oIy4bjhI6ZPJjbOIkbLXVklt9SFle/ZdK c8NRyyJJnwswi7zBACWKmrnzqVCJvawYDVFE7BSKR890hhWrGBs45+jXOpzP2nZTEe GTAyzj6HvHasQ== From: Arnd Bergmann To: Jan Harkes , coda@cs.cmu.edu Cc: Arnd Bergmann , codalist@coda.cs.cmu.edu, linux-kernel@vger.kernel.org Subject: [PATCH] coda: avoid Wunused-but-set-variable warning Date: Fri, 22 Mar 2024 14:22:26 +0100 Message-Id: <20240322132234.906977-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The UPARG() macro implicitly sets the outp variable, but a lot of the callers never actually use the results instead, causing a W=1 warning: fs/coda/upcall.c:115:27: error: variable 'outp' set but not used [-Werror,-Wunused-but-set-variable] 115 | union outputArgs *outp; | ^ Add a cast to void to shut up that warning for callers that don't care bout the output. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Arnd Bergmann --- fs/coda/upcall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index cd6a3721f6f6..b7451fdef14d 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c @@ -63,6 +63,7 @@ do {\ inp = (union inputArgs *)alloc_upcall(op, insize); \ if (IS_ERR(inp)) { return PTR_ERR(inp); }\ outp = (union outputArgs *)(inp); \ + (void)outp; \ outsize = insize; \ } while (0) -- 2.39.2