Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2640520lqb; Tue, 28 May 2024 06:23:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVySy7TlfrwMimvKvAZX7a2vAupkwUkjTi6vDUE79ZvCZUuegMCZhSxA51/XZBIJUv7hiTe5gUokznG7hYhv3tyW9MeDC8kf5RqyTHgyw== X-Google-Smtp-Source: AGHT+IF47Iy7vZJMlSdFM2wKx+5LOknyn+ViFcC2poTmTDMZbvMdsieqHL8/GRTslF7ulT7RwNoZ X-Received: by 2002:a9d:7691:0:b0:6f0:e589:e9bb with SMTP id 46e09a7af769-6f8d0b922efmr12018131a34.35.1716902600955; Tue, 28 May 2024 06:23:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716902600; cv=pass; d=google.com; s=arc-20160816; b=bW1YkC2up1xmGEI0+CPrjyetZwKdr4rJAKSJPHBw8BZ5EulNkhpowodOOhjm1Gkqzo 3wQpPHWI8Vap0AMqIo0QyWtq4HzTR4iqrarE9OTltTdBbXUN67xUWvigHiedySkURbst qQYRLKbAIMqgUlnSFkMwawI+XpFS1jJLMcc/lqyfJdpuB+Lx7Y87ZFB0qr/Vx9/LUlc7 bi5j0rWh+DHKfCGLwC5kjtbR+CZlnHC4HcbZtXKCvqeVQGjjqHHP/SCjJwyZ3/AtxEnE S9Gq3gBZy+rxq1hXfeFN+eF35jKza3nwECFm7hHjk0CT1piGJxuQJKpDit0X/Dasuoaa 34bg== 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:references:in-reply-to:message-id :date:subject:to:from:feedback-id:dkim-signature:dkim-signature; bh=uDfNy7hs8NViGiTKyNue5J7O2co9zGas7y+yIkANu2o=; fh=peJvMx2Z8zQ8HTpkDYZMX3uEgfXGuWt1Q+EGXPtIbUY=; b=OKqDBgWexhgN4RsNrIBx4utbhTNZ5UCiAv5F9ISK4DMbcfwELht8LkpgrVXcET8oxB eBuXI8ZbLVmCz8hYftcUf6NIVaPeDeTRXt9WUsm/KnMs4FOuqMxTtUwr8RpB59/NZmZk hmjUzQcRspJPv2Q4aOk+lbBPH8UcwCpSMd8icFWAkXP1NXeECsru/tMx4Q1EcLRxrAyd TbFecMYJsQhOTJ2uIqrvLuJhNjJD3Z5VnDAxNiIMrO7xvLjT4JR4mdGOopa7BdOb6RTM 5uWbdaIE/8RdJUlM3LFcinTXc3yNnIAvsJFMdi/UZ0b2UnFCsnSWuMV+QT60sc08H01m s32Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm3 header.b=PjfYjGKP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=QD8EAYuA; 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-2666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2666-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18a6123si116990561cf.307.2024.05.28.06.23.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:23:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm3 header.b=PjfYjGKP; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=QD8EAYuA; 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-2666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2666-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E14F31C229D2 for ; Tue, 28 May 2024 13:23:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E554416F278; Tue, 28 May 2024 13:18:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alyssa.is header.i=@alyssa.is header.b="PjfYjGKP"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="QD8EAYuA" X-Original-To: linux-ext4@vger.kernel.org Received: from wfout5-smtp.messagingengine.com (wfout5-smtp.messagingengine.com [64.147.123.148]) (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 7494916E86E for ; Tue, 28 May 2024 13:18:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902337; cv=none; b=aPCGK4Bn1OxflMraw1dNjmB0tixGhVoYrOa8nziX2sDh23x4HNEx9K5NimN3u1lVaj1xzk13M82abwRMG0m0zJsbhXa4nxziEMcFccv5gMnmFSrMGyGetQPc75PI/7SIuvqxQ6Jqh1CSJxEkuk4pSutjv0GrQBnhb7XEjY/oAaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902337; c=relaxed/simple; bh=qJc0+tmbJPlsBaYoiyaw3o8tAlBzFBWCs00oA5tHAzU=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VXnwHgq8ezmFzd2g+FTJgBu0Mv6R85VsY3JHv2VUN3tKdX231PXrhMC2T2/63vrzBbTwM/1U2o1ocmvze+Db+nHOK37c4KYEbs35ZAhE7eZpiYBNwRO4Lbij3UyBNhkxDRQBVXHaAVf343g4dDUCIDKO6Buw9J1BXCMhhGposn0= 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=PjfYjGKP; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=QD8EAYuA; arc=none smtp.client-ip=64.147.123.148 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 compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 6FA371C000F9; Tue, 28 May 2024 09:18:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 28 May 2024 09:18:53 -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:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1716902333; x= 1716988733; bh=uDfNy7hs8NViGiTKyNue5J7O2co9zGas7y+yIkANu2o=; b=P jfYjGKPoHCyYzVZsYBSv12uARcMHJYUsvL9fESJ544M7xl8Wb55boIfVTmtnv4Qq eRoNyHpD8jDa0p9y/uDBcrn/RmQkBbXc3VUdLiRGz1u2m2RRSYcao4NWstlbeT/q J7L5Q/J3j2skqF3RbmEerhDTk2ObRiZqIEl9zCEj/sZPglewdE2crWg+xYnrbwNQ GHKJz6N3XJT5FkevpfJniz/YvywF0Ww6IQFXQMpZC0SwHzkrjIvClDrH5w8EsWol bYIIz+tGgLTv5NfjUBFcuwpK+DhwUEb89pcG/mNgcquxxkIlOql0wVfriKINSBHE cVyQHs2Q96cw6uNFW/NEA== 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 :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1716902333; x=1716988733; bh=uDfNy7hs8NViG iTKyNue5J7O2co9zGas7y+yIkANu2o=; b=QD8EAYuA4LVxq5FBBg5Pb8wk+g+RR AKWaaeVpPelfYX40z/EPqQ/eIhOkBi3ZniGrDUBKVm+vsqn89vAdinHa3D8jQtAs HMHLixRbSTy5abQIwkumBY5u6FnTHLASPXTnnP2FC0c22b+XW+4D/UPk/b/gxyMn tvgDII0vhyzsPbbc3KSNlk+LtjJCBc0a7IONH87g/FZ85N7Fc0OBOk8vmmiMlYax J36EO8Qug3zmBD7QVTEX6aIxkKTK+cFnLtnLDtBQiE68AbR0KPCn7LrAN3MjfR5p oPOf83/UVTzmBhQ98Uh7MCV7pASszMrXoR4jcAVmhiQyRqXPG5TgFyDAA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejkedgfeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhi sheqnecuggftrfgrthhtvghrnhepgfefudekvdelieelledufeevheeglefggedvudejvd dtffeuueevffehleejkedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhephhhisegrlhihshhsrgdrihhs X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 May 2024 09:18:52 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id D91AE52F; Tue, 28 May 2024 15:18:50 +0200 (CEST) From: Alyssa Ross To: Theodore Ts'o , linux-ext4@vger.kernel.org Subject: [PATCH e2fsprogs v2] libext2fs: fix unused parameter warnings/errors Date: Tue, 28 May 2024 15:18:41 +0200 Message-ID: <20240528131841.576999-1-hi@alyssa.is> X-Mailer: git-send-email 2.44.0 In-Reply-To: <874jaih04p.fsf@alyssa.is> References: <874jaih04p.fsf@alyssa.is> 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 --- lib/ext2fs/ext2fs.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h index 6e87829f..ff22f66b 100644 --- a/lib/ext2fs/ext2fs.h +++ b/lib/ext2fs/ext2fs.h @@ -585,7 +585,8 @@ typedef struct ext2_struct_inode_scan *ext2_inode_scan; */ #define EXT2_I_SIZE(i) ((i)->i_size | ((__u64) (i)->i_size_high << 32)) -static inline __u32 __encode_extra_time(time_t seconds, __u32 nsec) +static inline __u32 __encode_extra_time(time_t seconds EXT2FS_ATTR((unused)), + __u32 nsec) { __u32 extra = 0; @@ -595,7 +596,8 @@ static inline __u32 __encode_extra_time(time_t seconds, __u32 nsec) #endif return extra | (nsec << EXT4_EPOCH_BITS); } -static inline time_t __decode_extra_sec(time_t seconds, __u32 extra) +static inline time_t __decode_extra_sec(time_t seconds, + __u32 extra EXT2FS_ATTR((unused))) { #if (SIZEOF_TIME_T > 4) if (extra & EXT4_EPOCH_MASK) @@ -630,7 +632,8 @@ do { \ ((struct ext2_inode_large *)(inode))->field ## _extra) : \ (time_t)(inode)->field) -static inline void __sb_set_tstamp(__u32 *lo, __u8 *hi, time_t seconds) +static inline void __sb_set_tstamp(__u32 *lo, __u8 *hi EXT2FS_ATTR((unused)), + time_t seconds) { *lo = seconds & 0xffffffff; #if (SIZEOF_TIME_T > 4) @@ -639,7 +642,7 @@ static inline void __sb_set_tstamp(__u32 *lo, __u8 *hi, time_t seconds) *hi = 0; #endif } -static inline time_t __sb_get_tstamp(__u32 *lo, __u8 *hi) +static inline time_t __sb_get_tstamp(__u32 *lo, __u8 *hi EXT2FS_ATTR((unused))) { #if (SIZEOF_TIME_T == 4) return *lo; base-commit: 950a0d69c82b585aba30118f01bf80151deffe8c -- 2.44.0