Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1985287rdd; Thu, 11 Jan 2024 16:06:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaRYE05Bd/hDbrqp1UIoq3e0LV7q3Jecz9ki/ukQV8lDevbjxRnH1YGjdTOU17efgs9aLe X-Received: by 2002:a17:902:ec83:b0:1d3:f363:b489 with SMTP id x3-20020a170902ec8300b001d3f363b489mr128951plg.138.1705017962380; Thu, 11 Jan 2024 16:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705017962; cv=none; d=google.com; s=arc-20160816; b=zRC98vj4uMR9EaRHUYu11eYWMaTJ2jBEQOXsnRPY8wbPZRkrSHtana2D78Iu1uNUEO Akv+2GU06OprBl7zyC8FccItb6JMUxpXNQMzQpbqjKueHlFUgO53R2Cy0486OZ+y0W1q dKB2RyCFqDs0wSUJm+Z09daEsUzWYEz1RHNBLPn06Yuf5mS38gLwtTaeKZTfuARItv7p bO2f6RVygrV+QGjTRjXTP2Svfcc3jcAabv7ZPuq0xvvUKPXxOyRXpbhnhMlnFs2OY58n tVStHIIuOkClgygyCIG6DzqD9tVgfcv7l5CmKhzdyiiqjakCTr9g8IXz+5TDAQnsqIYy vFfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=ja/rCrslI1ygahysbrKqDdK7cEumA4q0GUIhaAsj41s=; fh=87iE8PYW4YLHDPDDOyNXGgxowh8ltPU/2kKLNZYRv6Y=; b=LngXxKy1Dl5lPziP7ti9D6hoPUtVZevDGm71vQ2sYNuWJRZBsek4VPHJzdyQ5jtCuw 7S6TjGCtphnl4QAEQz4ghFBazkIxLAKLmvwg73fuuu1gPcHY9k7OiN2WL8zsJ7IR2596 QziLriJvwvTS6ngbLZHzMu1toRS4c6mO+f2QK7zDDiBM9wBnmVHRLdMtcbMjO39LGYdx r0XYjakMHXidYjG+E/jPMsbViE1Zn2VpHexk4CeUTnVs+gSk1D2IRFnPbsPUBfAXDAKN EAC3bsBshFaGytTCVMV4ScM2l9YTX5d9ddY79kFDWDTKK1j9cJcJcemlo2ZD2tWFn8tZ HHgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xenobhv8; spf=pass (google.com: domain of linux-kernel+bounces-24160-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f9-20020a170902ce8900b001d4ac76e4ffsi2294832plg.322.2024.01.11.16.06.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 16:06:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24160-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=@linux.dev header.s=key1 header.b=xenobhv8; spf=pass (google.com: domain of linux-kernel+bounces-24160-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 832AB28B3E9 for ; Fri, 12 Jan 2024 00:05:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7A587EB; Fri, 12 Jan 2024 00:05:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xenobhv8" Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 7D71217988; Fri, 12 Jan 2024 00:05:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 11 Jan 2024 19:05:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705017914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ja/rCrslI1ygahysbrKqDdK7cEumA4q0GUIhaAsj41s=; b=xenobhv8UAJbqxw9LEhIHklm8eVbdXfTgNl4eYnpAViLGg4XD2eqzldprWOoacL63BDc66 BhihY9pLUMlJLCbhlThvPSFIJemt2OOM/BllXPeft/BR9O6jxPLpGmLTJ2+mEjU3riEAbF GTS2N0EYRkJF6RTp4E1sJZ+mst/yXos= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Kees Cook Cc: Matthew Wilcox , Linus Torvalds , linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [GIT PULL] bcachefs updates for 6.8 Message-ID: References: <202401101525.112E8234@keescook> <6pbl6vnzkwdznjqimowfssedtpawsz2j722dgiufi432aldjg4@6vn573zspwy3> <202401101625.3664EA5B@keescook> <202401111534.859084884C@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202401111534.859084884C@keescook> X-Migadu-Flow: FLOW_OUT On Thu, Jan 11, 2024 at 03:42:19PM -0800, Kees Cook wrote: > On Thu, Jan 11, 2024 at 10:57:18PM +0000, Matthew Wilcox wrote: > > On Wed, Jan 10, 2024 at 05:47:20PM -0800, Linus Torvalds wrote: > > > No, because the whole idea of "let me mark something deprecated and > > > then not just remove it" is GARBAGE. > > > > > > If somebody wants to deprecate something, it is up to *them* to finish > > > the job. Not annoy thousands of other developers with idiotic > > > warnings. > > > > What would be nice is something that warned about _new_ uses being > > added. ie checkpatch. Let's at least not make the problem worse. > > For now, we've just kind of "dealt with it". For things that show up > with new -W options we've enlisted sfr to do the -next builds with it > explicitly added (but not to the tree) so he could generate nag emails > when new warnings appeared. That could happen if we added it to W=1 > builds, or some other flag like REPORT_DEPRECATED=1. > > Another ugly idea would be to do a treewide replacement of "func" to > "func_deprecated", and make "func" just a wrapper for it that is marked > with __deprecated. Then only new instances would show up (assuming people > weren't trying to actively bypass the deprecation work by adding calls to > "func_deprecated"). :P Then the refactoring to replace "func_deprecated" > could happen a bit more easily. > > Most past deprecations have pretty narrow usage. This is not true with > the string functions, which is why it's more noticeable here. :P Before doing the renaming - why not just leave a kdoc comment that marks it as deprecated? Seems odd that checkpatch was patched, but I can't find anything marking it as deprecated when I cscope to it.