Message ID | cover.1728484021.git.dsterba@suse.com (mailing list archive) |
---|---|
Headers | show
Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04D6F1CD2C for <linux-btrfs@vger.kernel.org>; Wed, 9 Oct 2024 14:30:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728484255; cv=none; b=rnHgPkW+1I0WMl4LNRtd9d00q5m9g8Z+XTMRxEIy6CKeT14dzFFG88IrBr9F9i2Xgcb/bTb2OYD1cJa21epd/7nOU1WM6RVJQRVxnH9pb8SxPtehCkdM7AwwchCCUNt3Exsxz0cdq9P3R9QQlIA2pyAcTiySErQASpjDZrTMduo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728484255; c=relaxed/simple; bh=0+tRKxo64aW7iAAiGKBwnfksqcivL9PS2SD8lN59r58=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u4KPVwN3Ign7Hk6Ltm6lgZXZ5UPn5Wbzi8ZgzgSQYld/Spk5S4vpIguksIauputCUKgVvdsYBYAHVxnLSmUX75+7I48SMyPoE2nXcN9G8pJ8TWhE3qOxMDI0l+itvUKoCFFXbboWgrpTnV9hIADDsg6dw+18Gx7Oo2wWnhAXeEs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=AeGFMK7+; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=bfQpikqN; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="AeGFMK7+"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="bfQpikqN" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8032321EB2; Wed, 9 Oct 2024 14:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1728484249; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ZrUsGRDHFIAt85bsFLGzcuXQOLDDtmpzATLR+dzvNQE=; b=AeGFMK7+VhYw38eIt5qi6Xpf4lB9Bw8NmtwEqXYM62KbRatHPKUZddRMYmYr7RKoFm2iMQ 3ushE8kL5WAXRdja+E7MPyyuoG/noY/QVzNWar2aOnjKkm+CwqpvlMoJlr9WMvLJlnhU8q WoPZwPhf6fKpu2uIsjaU2qI2nij+sCo= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1728484248; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ZrUsGRDHFIAt85bsFLGzcuXQOLDDtmpzATLR+dzvNQE=; b=bfQpikqNUBWSd4RHjwIVP3BMbtnXIn7M00pKfcfBPFsFg1AVhSCNkmyiZNJ8r+19oyH85N 6ICKjWGEUzRNbHvDrLPSxgtC/zDLCF5hYDnNsZvMsT7wb5inqngBLzhFxSTT7G1VHJbxxH WVH4c1gejjbXdInw7V1+d434/msrgag= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 76E6E136BA; Wed, 9 Oct 2024 14:30:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 1nX9HJiTBmfnRAAAD6G6ig (envelope-from <dsterba@suse.com>); Wed, 09 Oct 2024 14:30:48 +0000 From: David Sterba <dsterba@suse.com> To: linux-btrfs@vger.kernel.org Cc: David Sterba <dsterba@suse.com> Subject: [PATCH 00/25] Unused parameter cleanups Date: Wed, 9 Oct 2024 16:30:40 +0200 Message-ID: <cover.1728484021.git.dsterba@suse.com> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: <linux-btrfs.vger.kernel.org> List-Subscribe: <mailto:linux-btrfs+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-btrfs+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.80 X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_DN_SOME(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.com:mid] X-Spam-Flag: NO X-Spam-Level: |
Series |
Unused parameter cleanups
|
expand
|
On 9/10/24 8:00 pm, David Sterba wrote: > Assorted unused parameter removal, I tried to go to history where it was > last used and seemed important. Most of them look like leftovers after > other changes. > I'm curious, how did you come across them? Using `CFLAGS="-Wunused-parameter"` or `-C=1` doesn't seem to report them. LGTM for the entire series. Reviewed-by: Anand Jain <anand.jain@oracle.com> Thx.
On Fri, Oct 11, 2024 at 07:45:52PM +0800, Anand Jain wrote: > On 9/10/24 8:00 pm, David Sterba wrote: > > Assorted unused parameter removal, I tried to go to history where it was > > last used and seemed important. Most of them look like leftovers after > > other changes. > > > > I'm curious, how did you come across them? > Using `CFLAGS="-Wunused-parameter"` or `-C=1` doesn't seem to report them. Passing custom flags works $ make ccflags-y=-Wunused-parameter fs/btrfs/ There are many out of btrfs code warnings so the rest was manual search for 'fs.btrfs.*warning.*unused' and code inspection.