From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f51.google.com (mail-yx1-f51.google.com [74.125.224.51]) (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 00F8418FDDE for ; Fri, 28 Nov 2025 02:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764296135; cv=none; b=ullWxamQIUZziT21XLONStpQ0+jZ7WyrW+flifm6+WHXDpXquUJUZ0Oy8mwSrw+ICe0dKPpx9Vr4C6f9FjlTK859EFwDV/lpo3etyUWYwLb/BqZaqN8Ql4CV68sRi0cSF2YWJJeE9cdOjkycaanv9wPxLbArd2kwult2BrR1w6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764296135; c=relaxed/simple; bh=P0GotVY454jdlemJ9Mif9MFDl5LNzfmtxmyVX17ZbmE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IQYOm2Gi14IXJ5M7z9NC+9CB2cPID8g60X9MJzI0Zzdj/Tovze4ZXJ0h/19LfQTni/fKGL2yc9U/o0Ewu45SagQYgYykFdTm70YXMYM5w4kf42PJuCOWCYsYjE+5dIqpYY/uiPqdMJOd3czklIJV7J8A4+niE52+nFIDJHI3Ugk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cZLwdBLB; arc=none smtp.client-ip=74.125.224.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cZLwdBLB" Received: by mail-yx1-f51.google.com with SMTP id 956f58d0204a3-641e4744e59so1450571d50.2 for ; Thu, 27 Nov 2025 18:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764296132; x=1764900932; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=t2CHLdpUp4Ssl7HkxIQWteLCgVD8+JnAniR+pC5eUNQ=; b=cZLwdBLBq3yis+4rvfEiMmDdPV8OB0ZHf6AGiRrLpe9alK8P6tRVtjNy1a1Lx9Z5lS doJMqfQ5gWqgM+endjafOaVCzGQDE03mANn45L47thCaIE+kG0qrASoEpv8N5/S2C/bW wxWI32FXiMYVftyHYdwzXnmBwt1P2mJndupoGc4kWDzHmV70fFjmJWysDQJ8caf0zrWn VDJEZu7weETzbarAGykpqwe+R+JkVVn8UneL+MDvLeK4NMpyaJ4ecJQ5DUlvXfVtHDlz C2FckdgPsAML0kCVhhfElnsYWX843SFaVo5jNNM97B9b79x5Zkkeu+nIqOMLfsumtrHH qxOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764296132; x=1764900932; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t2CHLdpUp4Ssl7HkxIQWteLCgVD8+JnAniR+pC5eUNQ=; b=ivB//+EMFG0sOUYUJl9JK02ePV8Qm2Y8J2uF6jFidIv4C/hi4Xj2BuSjtCKzdhuhyJ KCPoeFIbE17p4sLVFTOEWpBq6WbIMaa28w6GZ8wAZwZZzYbOzhTwy8CvSX11BD2TLs5w 8+6QHqU3+21LY+Tq2EpMTO3DJX75SV6pjrGKTyB7MGxHV8VUITsxp3L3RiP4cDS0nVoD z5lilcg7lop+pyiYF/TDHFrhyOBxz+DZUDQNKMqkUIR+5ZjbbkwnRq6ya1Gn1qC91e4L kykaKbYf83MlzGNjCiuLZlWOS1sGH9sA/8EBsYpmZWLo0y0rRIuFNf+bNz+o9mT6S9+s OA+Q== X-Forwarded-Encrypted: i=1; AJvYcCVXMFKnergllg4hCbNzAcltV4+JM6S6/IVU4IEFccl+0egrahi8B+OurxcjTN/EMU/4GZWxIOIVvAJKSL4=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3VV9FA9F1u2Qr9B+mGc4zOHj08hqWoMMoNiikwUV66av1J2ms 3pROlHrCIWxpS7066XABg6WPTEV5y05QNUewMXA1Rev/cj5XF3OpNclw X-Gm-Gg: ASbGnctj8/5jltMNFL1iuFt0AqUTpZrO6DNnDUd4raCmcSF50SRmRmSdTP+ucSRe694 F1RYAhhPRkAj8rLjt9xrgQIDduRcmgJ/dGp2V4Z0S1fNKfBxJjgOz5SB35JIvKX0+mpCdPLjKyd trxIlVwNCf0eQ7NGSRSCn5wfGyXNi+V8lnnG69aa5wQrg4wEU8L00H+65eqHN27V1m5uM3eI0Ji aTbhQso2tF3Rg765t+gAwCqRrucqgQF+AlR5uxbTg7i2nYOA30Vn4fjXO4UJEP3MFxKm+SKQ9Ii 3PqELIFnYCYB1QFn6EvaK/3SOK9oz9D8p5VBGvaL7fZRzAo6OL1fGSl9JLGDEkHe1AWqzh3p8H9 bNZAQA/J+tLP9grsYDbqtcicvtFRwYMkEf7npwV+vnHGRTeyFqTg1y+TGyXg1mccqzv7ez28FN8 tFk9hoQ4Y= X-Google-Smtp-Source: AGHT+IHnP7VicG6waOOzhu6TiR+B+K/9sG+saFcAMNFcFN/ea7k1BLVt9YbC7IMgWMjWFguUL7v5Qw== X-Received: by 2002:a53:d68d:0:b0:641:f5bc:6980 with SMTP id 956f58d0204a3-64302ae4ef2mr14870221d50.76.1764296131954; Thu, 27 Nov 2025 18:15:31 -0800 (PST) Received: from localhost ([2601:346:0:79bd:59d3:fad0:b7e5:396a]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-6433c050814sm1065368d50.5.2025.11.27.18.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 18:15:31 -0800 (PST) Date: Thu, 27 Nov 2025 21:15:30 -0500 From: Yury Norov To: Miguel Ojeda Cc: Alice Ryhl , Burak Emir , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH] rust: id_pool: fix broken intra-doc link Message-ID: References: <20251127213340.180090-1-ojeda@kernel.org> 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: <20251127213340.180090-1-ojeda@kernel.org> On Thu, Nov 27, 2025 at 10:33:40PM +0100, Miguel Ojeda wrote: > `rustdoc` detects a broken intra-doc link: > > error: unresolved link to `BitmapVec::NO_ALLOC_MAX_LEN` > --> rust/kernel/id_pool.rs:100:31 > | > 100 | /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the struct `BitmapVec` has no field or associated item named `NO_ALLOC_MAX_LEN` > | > = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` > = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` > > Thus fix it. > > It was a missed rename in v5 of the patch series adding this [1]. > > Fixes: feb3fdf1239a ("rust: id_pool: do not supply starting capacity") > Link: https://lore.kernel.org/all/20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com/ [1] > Signed-off-by: Miguel Ojeda > --- > I saw this in next-20251127. > > I think using [`BitmapVec::MAX_INLINE_LEN`] is clearer in general, > especially for things in other modules, but I kept the same style as > other links in the file. Thanks, added it on top of Alice's series. > rust/kernel/id_pool.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/rust/kernel/id_pool.rs b/rust/kernel/id_pool.rs > index a4c37d6a0971..73a952d7dd83 100644 > --- a/rust/kernel/id_pool.rs > +++ b/rust/kernel/id_pool.rs > @@ -95,9 +95,9 @@ pub fn realloc(&self, flags: Flags) -> Result { > impl IdPool { > /// Constructs a new [`IdPool`]. > /// > - /// The pool will have a capacity of [`NO_ALLOC_MAX_LEN`]. > + /// The pool will have a capacity of [`MAX_INLINE_LEN`]. > /// > - /// [`NO_ALLOC_MAX_LEN`]: BitmapVec::NO_ALLOC_MAX_LEN > + /// [`MAX_INLINE_LEN`]: BitmapVec::MAX_INLINE_LEN > #[inline] > pub fn new() -> Self { > Self { > > base-commit: a322638c15a678168aeb8dc11c8760f8a053124d > -- > 2.52.0