Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 59A5D38F636; Fri, 5 Jun 2026 18:48:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780685311; cv=none; b=a3qFWyei2wZZugMD1T43ORA8SU+PoKCHP0M/YXVY+bfCdurY0QdGAxPgE9jLYY48+QJINRrtUniraDtjqKvcDIzI/ZjgvdygBZmVgQtQgZmr9JncjLOTER/1q8raJ6RUk6IGIR3V4IIafO7ORII5vNsaUhM8woBgZIO4h/9fKT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780685311; c=relaxed/simple; bh=EwstB6fEiMNm5N2jhLKJux441kRPYpME/39jhJsFhY0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YtoU2y+O9fEJz40qMz+TkdgniegkL3a7npaGOFucBBiY/+HNrNaImTVA0fiUg/Ms7ZzryiL2w2k3cevDYse0uh1BKzQ+EH0G7HbPpufsAdptwVM1R3S/zw2LzRh1S5e2Zuc1/cE9J1uK2JBfhczx1a9TzivU0iL96C/btTuPR0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=eteaKFxG; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="eteaKFxG" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vR1FqDhqdj3MS9qr/U+iGRh4CdfRxSN7XXykcu5T2lo=; b=eteaKFxG5ZqdX0SlFd3GGbSLFx /eVqvCsSrSzDsaTOaGLBJ7651rDhlVovOUgI+n0QEARrR0kqZVq694p1Sl+unTvjusDFyDMD/88qX UYUQ0iqCcq/kQfcw3rpwcRn3LSlsMs9gfXxQDKCbTKdwpgBrohiA+V1KJg9jPSHPzh83PoCX9Uiij HrPfQrFSb16q0nNt5Oba3zSnJj1asYdGJdNIvBxpk9qJjQ2GVZODptxq1oBnueCg/HZwIyQtpZboI BsMg8fpdPVo7KXoFzwDFBkaCi7isjKYHghdOV6LDvse4cMdTRj+hQ7Fix+MF5xg/OhuL9e+R1V3t6 Q4Z+Rz+g==; Received: from willy by casper.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1wVZai-00000008Pzt-2BhO; Fri, 05 Jun 2026 18:48:24 +0000 Date: Fri, 5 Jun 2026 19:48:24 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: Jens Axboe , Jonathan Corbet , linux-block@vger.kernel.org, linux-doc@vger.kernel.org, Keith Busch Subject: Re: [PATCH 1/4] block: add a macro to initialize the status table Message-ID: References: <20260605184441.590927-1-hch@lst.de> <20260605184441.590927-2-hch@lst.de> Precedence: bulk X-Mailing-List: linux-block@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: <20260605184441.590927-2-hch@lst.de> On Fri, Jun 05, 2026 at 08:44:27PM +0200, Christoph Hellwig wrote: > Prepare for adding a new value to the error table by adding a macro > to fill it. > +#define ENT(_tag, _errno, _desc) \ > +[BLK_STS_##_tag] = { \ > + .errno = _errno, \ > + .name = _desc, \ Bleh. I hate this. Before, I can grep for BLK_STS_NOSPC and find it. After, I can't. Yes, I know we have a lot of such things already, but I don't like adding more.