From patchwork Mon Dec 22 11:56:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1036 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404635; bh=qWiZrmo//2QD3r9aaK1p0ddYE5yBgpIu9SNCySwW/vE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=UeEBSPhPOSAICmptPibyPQGE6z3MhDxX1djqwuerHR+3MUWZtgnZx3Hc1UDouiGz0 lDGuM6krJQDUKd5ZPHl0+3QHbp3xV3NfvM2L0mNDBvFF4GDMJHTOMvPYxV3yaz2V25 jGLf7enqxUz2/YVm7rJ3rB/6sXxknM3f7px2yg0yBGOgQJGEMAxvd5yxxCWcdnx0ns BwI9SoKogncIyAV8Z411q3RR422rR3JrBGEod7qJfsqTnLEX9RYcIGH2RPPIATazAJ qtW6yevHUZGRc2XlLI+qbY1Rb8G6P+ZKxkP5wfDWgCVkpx+2SpUMbZRdFTPBxPm7ao GiYXoDtQHm5cA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4B35564D66 for ; Mon, 22 Dec 2025 04:57:15 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 7iFiwM8-IeoB for ; Mon, 22 Dec 2025 04:57:15 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404633; bh=qWiZrmo//2QD3r9aaK1p0ddYE5yBgpIu9SNCySwW/vE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Yy8bZZTFZE+FgdqzLGgKGPUHa51/rhFn1u+nSU3JUkFOsm1AL5AUJk6xyvZ1RIwVB 8dASEuECu+OEyaqkB4knzVK+aRBGWreZt0vMTOyztQOrGK9qzyrPAJQEiny8oIVz5y I4VV9pINLEd6zFKj/mjbtbnWRoBx6fb7DMBJujz4ewiAWF9mxIPCGjZBeTopQLrhM9 whtWd4e36OC4NCB79Jj56t+bvABUG5TgzS5P2F/7xL3lr6tvknOOA0D1ynCUBjFPBu xguNOSDmNs1E4Z0ex0oFnMWnPtJQ/T0DLMRMfz+uQnCgUzvfuxyaju/v9ycEqCaWdP /aW5zRocgu4Jg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 568F064D73 for ; Mon, 22 Dec 2025 04:57:13 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404632; bh=U36VRejDLLfAqXguROG8Qh7jgodeQoULwlvVgTue70E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DjK1JGWTtQhuZbSWTy7gdHpqAZDdDkBB+YTFPa0gIcqkQa7vLoAIR1e3qdDMrdC0L NAsxCwkcxtmx0LM6w7teVZdO6WidL2u+BGR8hDl9hiDD5FNlO+nMf8WxvbqP1O8tpF av83VwUh6rMLLpJPNkHTHGfhj85Y2W0ItdyGuhaOEFrd+yRa7wU+m6yrwBuzzTF4H0 7FdtKOKduMquio7eQWxLTt4CBNAPRd19r+GCuOHjezWqXwKw+BkUpta8T8o2tswF6r P4BL/sEDuLFnfNKKC5NPfrIg0xSzXCyGBEjC1vFJxFN+jKxpmhNCaIb6I0KJylSevE gSktZV8IjL2bw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 226365FB5A; Mon, 22 Dec 2025 04:57:12 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id ZzJzrPUwoAoU; Mon, 22 Dec 2025 04:57:12 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404631; bh=iNudRf33QleJMHNg6ocs2iF46TcEFNo+dNChYDBE5YQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=whMv8bZpViPmj5iqRxj8KBuhrUX9seRc+psAN00BZAuVZvwNoPtyALWIpsDowPY2O WIDg+XoJQdUnGfX6awRpDM1Xz3vUZGMrpROKueOpznLRjssIqd0qfYsJ9SSRSB1xMZ C0/77v/2Ypcyebtrh7T4e4Clr8C32+GNsMxwTDF39svtV8FqazaQeieRbkN24l5vxX 4aGic4jW7YLhV0hpk4AlsAsoMYDGiINulA9q0JZsQmWPX6jbfBcIwS5BtZj2QDIKAc Zak8HNcJMyWXwhKKyih0SunBhsCTFNrqmBkBnntFDsO+bMpuOWAkHzwh8MgzrDvqaV aXKbwZAB9k4Zw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 8DBF064C31; Mon, 22 Dec 2025 04:57:11 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 04:56:10 -0700 Message-ID: <20251222115639.700578-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251222115639.700578-1-sjg@u-boot.org> References: <20251222115639.700578-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SHZ7LHTJKFDETURHSQJJM32AGLWQCRRH X-Message-ID-Hash: SHZ7LHTJKFDETURHSQJJM32AGLWQCRRH X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 06/26] linux: Add BDEVNAME_SIZE to blkdev.h List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add BDEVNAME_SIZE definition to blkdev.h, matching the Linux kernel header location for this constant. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- include/linux/blkdev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1a8851c4b4c..92878b01c3e 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -12,6 +12,9 @@ struct block_device; struct gendisk; +/* Largest string for a blockdev identifier */ +#define BDEVNAME_SIZE 32 + /* Block size helpers */ #define bdev_logical_block_size(bdev) 512