Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1933878lqb; Mon, 27 May 2024 02:17:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4qHVNPHCETi/1TrRCuGuA9fUYHmBgq9ipHffqp5BladPCpW3btdMGcPRpgzvL1MHgyCyYUue72mWBh0muueUCCa84mEnZpjqIdwUtWQ== X-Google-Smtp-Source: AGHT+IFhViUbAkIjk480giys+JuVFgnziNnLTd/R+qnRr1gAXoexM7ugd2G+9YaaHMiLw3cPZGYP X-Received: by 2002:a05:6a21:c8c:b0:1b2:1ae6:2ccc with SMTP id adf61e73a8af0-1b21ae62e2emr8180657637.7.1716801457216; Mon, 27 May 2024 02:17:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716801457; cv=pass; d=google.com; s=arc-20160816; b=mL2WWc2YsQHST1zlI5cVSdT+bYzNyaKtOUS/fFhW2QCIafMpboEMgmKWeViZ9b2YZp yTCqvoh9pWUr3KWiPLsqoFggvsN6E3IG5YVtk11+I6I7WOiRYxfpA4mNFzjQZTyXK1AR 8eqY42TGy5HZ21akS0eBDesdR8BAmxP1Ug6+7B7MosBDNYoUL2LzwEvDPgbaz2JMvJnq G1EmNZKqig3q5/vh4zrUV+XWuS6UndN3P5KcU8THKp/zFEg97P2tnbFjfhl9T+odOBIM FmpyBsDd3c23ITvphMGo3tiMmbX9ArHlY18EBYHRyz8BeLKWXyNzom0theSdH5S8tSq3 1oFQ== 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:to:from :feedback-id:dkim-signature:dkim-signature; bh=YIL0JdpRjCvVW/wgX9cqGNR2AHbm3kdSXhTKqHdpm5Y=; fh=lfmAJNlsrgVlLfgmf+xa0zOkAKc6VKVRczifYgkRnAY=; b=mgwLkOqpdJmToarlMQMUKG/iuq7aksm7ig2RfJJZmuQH3lUjvX8nLF9uzuTR21Cp81 dQ/xY+7oWPv6Ox6jF5Ngn8S3v8c9Lqfounl0o2VDuFRoEv/umF/Drj+5WGbQPRIrNpvg 4PH1L/IOsR6brkNkM2p8p6JQkQB6myaiq3AnSaVKMbmrZZ+gkFVZ+i6SlLlmlBbDjVSI 3j2CoW4hfljoYjRcTicZbgwYCLPLxG5mcgeADfaZwwv0o2nnaXk/6YQGHng1x0fr0tjm Yfz3BtXQ++dXi8u38VxnyBpL7ZDwG1e5FDxf9yUNxnnKkh2EaCarcWhNmLhEjZvmiffd Ks6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm3 header.b="mkH/6rzs"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=PAzHvDBa; arc=pass (i=1 spf=pass spfdomain=alyssa.is dkim=pass dkdomain=alyssa.is dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-ext4+bounces-2652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2652-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822ae564b9si3493534a12.771.2024.05.27.02.17.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 02:17:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm3 header.b="mkH/6rzs"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=PAzHvDBa; arc=pass (i=1 spf=pass spfdomain=alyssa.is dkim=pass dkdomain=alyssa.is dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-ext4+bounces-2652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2652-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E20A82823A8 for ; Mon, 27 May 2024 09:17:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CE7B1DFE4; Mon, 27 May 2024 09:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alyssa.is header.i=@alyssa.is header.b="mkH/6rzs"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="PAzHvDBa" X-Original-To: linux-ext4@vger.kernel.org Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (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 B9C9313174B for ; Mon, 27 May 2024 09:17:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716801435; cv=none; b=mBHvpoNewsIk+kVHJIkyPmRo6EWQIWf73OiD7Z9tUBuIyYpGPkbv/3rhosxjkvvxoSkElGTqEgo2u6KQlSqAgtk+iu7ntGjDb4Kgxel93NbFdodbuztdYTmWU8DnZPwv8MBbmrwHmu+hVHbaWH7IE8XAflLtCpuuYA6m6eB9iqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716801435; c=relaxed/simple; bh=CecAeyoou+/HH0A17TQH4FkfTMhFzA64op5JgclGqGg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=jTDgwe8mvmIlvVCSwp8IfF0T42UY5dbkvI1iPW/a4boGlZ+dmID5MQf5SffnFebE7Pe7Z11oMgeWFIPywh5MzxizoWuRhicTI2K1Z3rNLbyYq46ZSSwFDvmVfpOq6XK/5ApC00DcEB1I15m1rY3BNnKY7PQuEEL8MrfhlWgpY2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alyssa.is; spf=pass smtp.mailfrom=alyssa.is; dkim=pass (2048-bit key) header.d=alyssa.is header.i=@alyssa.is header.b=mkH/6rzs; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=PAzHvDBa; arc=none smtp.client-ip=103.168.172.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alyssa.is Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alyssa.is Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 8B3CF13800E6 for ; Mon, 27 May 2024 05:17:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 27 May 2024 05:17:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm3; t=1716801431; x=1716887831; bh=YIL0JdpRjCvVW/wgX9cqG NR2AHbm3kdSXhTKqHdpm5Y=; b=mkH/6rzsv0J1Zba3cywrPNrgneyYZpzXyBWjj KtvfJ3ymN/xejFP57OzzhBvVpPtEjAVhLQGQBeaJw8ci9IJGl08xqVpVipZWbZj7 kR6FLusbLxU0tzMQykdq2VV3AWGStUMiFl/MPDNAMv1aDa1ruEssOOWOdgJNb8sE u6aBNfZd4z92isxJ9Eq0EKobjSzvN+83nzYZtnGrnOEwLjzQnHAZt9S6ONK+Xbxa m0j5JXMvSZgtlvwmqyt5QG4Tsk+gr9hjZg6GzFGTuyK37XRUJQHMusajyYj4Q/bC Icbh5cRTayZ+Fm+05GXLNOAoEVLJlqQGPFz/qPUH7PWDOaYjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716801431; x=1716887831; bh=YIL0JdpRjCvVW/wgX9cqGNR2AHbm 3kdSXhTKqHdpm5Y=; b=PAzHvDBaGTdxzjjyavd6mm90OuD1G011mV3OzllCyHQ3 tu8HxGbBJZ15CLwyh7eeEnxBjhFUToH5rshkuMSsavA1JdSIKNcxXRJRrJ6mqv9D oJJxmtwOduoToyxXW8Zqck/dyfexn5nQ1aWMacPfDv9pXrHBf6/jzqJw+YLNiwkO 09yQnr5ecWnoB8XdGIfl8QIaJf8wrNgYQZGWssEEHG4KUeNMGGVUqyBa/nbQ0xUD WMBqHtRUhTk6rsm5PE7RDf/EfHBjGv1+b4H5H5siuv0OO3vwg/9TsrSsgzIGV1H8 uJaNieqCUFPzyUY/lvn7mKpm7kWeu9AvuZt46BZU/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejgedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheq necuggftrfgrthhtvghrnhephedvfffghfetieejgfetfedtgffhvdehueehvdejudfgge fgleejgfelfeevgfefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhephhhisegrlhihshhsrgdrihhs X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 27 May 2024 05:17:10 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 420C03B1; Mon, 27 May 2024 11:17:08 +0200 (CEST) From: Alyssa Ross To: linux-ext4@vger.kernel.org Subject: [PATCH] libext2fs: fix unused parameter warnings/errors Date: Mon, 27 May 2024 11:15:43 +0200 Message-ID: <20240527091542.4121237-2-hi@alyssa.is> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This fixes building dependent packages that use -Werror. Signed-off-by: Alyssa Ross --- I'm assuming here that it is actually intentional that these variables are unused! I don't understand the code enough to know for sure — I'm just trying to fix some build regressions after updating e2fsprogs. :) lib/ext2fs/ext2fs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index 6e87829f..a1ce192b 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -592,6 +592,8 @@ static inline __u32 __encode_extra_time(time_t seconds, __u32 nsec) #if (SIZEOF_TIME_T > 4) extra = ((seconds - (__s32)(seconds & 0xffffffff)) >> 32) & EXT4_EPOCH_MASK; +#else + (void)seconds; #endif return extra | (nsec << EXT4_EPOCH_BITS); } @@ -600,6 +602,8 @@ static inline time_t __decode_extra_sec(time_t seconds, __u32 extra) #if (SIZEOF_TIME_T > 4) if (extra & EXT4_EPOCH_MASK) seconds += ((time_t)(extra & EXT4_EPOCH_MASK) << 32); +#else + (void)extra; #endif return seconds; } @@ -642,6 +646,7 @@ static inline void __sb_set_tstamp(__u32 *lo, __u8 *hi, time_t seconds) static inline time_t __sb_get_tstamp(__u32 *lo, __u8 *hi) { #if (SIZEOF_TIME_T == 4) + (void)hi; return *lo; #else return ((time_t)(*hi) << 32) | *lo; base-commit: 950a0d69c82b585aba30118f01bf80151deffe8c -- 2.44.0