From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 829243101D2 for ; Mon, 5 Jan 2026 21:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767649082; cv=none; b=fXzDP7v9HkK9MYW5d+E2zFECMH/mGibt1uS7hg6PZvRgzNxf+yLRPnAwua5UZXO18FetnfchF/37yiNIFsTypZ9dWM5j+HME2sFrbovJhst/xUNFa04tuDv0XHmuCajaITRqzMvDp++0J4FirzkOyj/Jjhp5PbWlI9UJmTfXqao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767649082; c=relaxed/simple; bh=3VvKwjncE+fi9dt3jmAeaAVa0VgbTIvjNM+szL3TTHo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tLAaAGna8n44DtVGu072ZDK8yghjya4MsCpFkSb4P4n45YWvNK8hrOnC1Ca97nnRezs2eghXtSUDa5FdIBbweRxOot8y1n7zDc80+p+s0V4YYY7Y70ex6T6jvWaDC/gPlfnjSp8Qh3csKtSZfm+cQ66JY+42oa8Qgg5VvYwbj60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=markoturk.info; spf=pass smtp.mailfrom=markoturk.info; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=markoturk.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=markoturk.info Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b72b495aa81so73710566b.2 for ; Mon, 05 Jan 2026 13:38:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767649079; x=1768253879; 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=jVGhBLas13Sdkp9EBZQEtNUtaw958v3jSwy9njwz9xM=; b=gxGh9YDeosaCDI4fq83QyKEfADj+l5tzZLWyVpgxuqD9HnZqpXX6fB/VeDQoJQYn5Z ecGZPIZdys2CGM9hvS5VP1HP71IcQekcXtw/6lHyskBmC/vGKUY9pkJgKgc70cLRehXW y7xiGg+HCbs6ZW5Fr7M9jFbwZr0oR2k1jlYXM+VZH0gxYh4UCN/hHyfAaPywei5OepDI FoOG5HNS/qbgOTkuNzpI9L75FmnV2viQIyN+Gj/93WfvHccoMzhFf+GlG3To4RHrLEPy 5YIPr6pPNETqH8EMPYU0UAMLRi2sgXZZzFkAgNzXNBx6qdHalkJILRT6QK4DF+1oyFuU xdRA== X-Forwarded-Encrypted: i=1; AJvYcCV5zw/gXzScC3RySPEDW63fxKOBZYztjqsMWfq0Y/K90q2CvXQ9Gc27LvVCM2yzfYOxJ4KpmWWFDFMRLVE=@vger.kernel.org X-Gm-Message-State: AOJu0YykrueZmS7tyEpQOKBWcknLQmkz4ry0X2mlULsXeuPOynh5lowL UsbsXG3k3v860yYKaW56Vt6+qgS6Rom/haFoZUxucqZYbH+a2u4bWXSr85v3KVAPSicLpxe+zHr B6Kvl X-Gm-Gg: AY/fxX4PKZBHaee3fZn2rI0izidGwLDak4iNXtb6gIiP77CqY4rwXMDLYjD2iDLYG2p zyQ7PQKIQQLuih/37zluM2KktABgwKFDkaYT+SgSh6XXlkY4a2CvNfwnQuvqrOJ6p7hIi/tX52I Ie1kXqi/tdqhG/ic6v1RvV9Wsehq3TLPC0TvkaEkkCjakWoxkQk7NULR8GoPmIHQKtps1GNsP1z F+6PFUN8gN09ps1wJW40hcFS9Z5X9XiSj2dhNhfD++K2vjmtsjLYfA208bpp5a9SNASoCGjAOA5 XY7sUnnr7eY/JtgbBvkKLoWNq91PjZls2/rNyuqfOGLqCALejQVZT1houMQLCXDskMkedttLr3S lhtPBQExyp+HmT5QqwiHCfZWvsUhBsqc95U5qpovaJjTumNrBpndg2MHypbmBIovQi0V1TD8kOM 0Cjty7VxVCPkg= X-Google-Smtp-Source: AGHT+IE7l7WtiE+uRHtEnaDDT+H8lvK5cKT1MXIQsQUNDiS4uD4MKy8ZfA8QmvMTwSezMWz92pqwZg== X-Received: by 2002:a17:906:c143:b0:b73:5e4d:fae0 with SMTP id a640c23a62f3a-b8426a7fa3bmr94121466b.23.1767649078733; Mon, 05 Jan 2026 13:37:58 -0800 (PST) Received: from vps.markoturk.info ([109.60.4.132]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b842a4d3831sm35034466b.44.2026.01.05.13.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 13:37:58 -0800 (PST) Date: Mon, 5 Jan 2026 22:37:57 +0100 From: Marko Turk To: dakr@kernel.org, dirk.behme@de.bosch.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, mt@markoturk.info Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Marko Turk Subject: [PATCH v2 2/2] rust: pci: fix typos in Bar struct's comments Message-ID: <20260105213726.73000-2-mt@markoturk.info> References: <20260105213726.73000-1-mt@markoturk.info> 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: <20260105213726.73000-1-mt@markoturk.info> X-Mailer: git-send-email 2.51.0 Fix a typo in the doc-comment of the Bar structure: 'inststance -> instance'. Add also 'is' to the comment inside Bar's `new()` function (suggested by Dirk): // `pdev` is valid by the invariants of `Device`. Fixes: bf9651f84b4e ("rust: pci: implement I/O mappable `pci::Bar`") Suggested-by: Dirk Behme Signed-off-by: Marko Turk --- Changes since v1: - updated commit msg - added Fixes: tag - fixed another typo as suggested by Dirk Link to v1: https://lore.kernel.org/lkml/20260103143119.96095-1-mt@markoturk.info/ rust/kernel/pci/io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/kernel/pci/io.rs b/rust/kernel/pci/io.rs index 0d55c3139b6f..82a4f1eba2f5 100644 --- a/rust/kernel/pci/io.rs +++ b/rust/kernel/pci/io.rs @@ -20,7 +20,7 @@ /// /// # Invariants /// -/// `Bar` always holds an `IoRaw` inststance that holds a valid pointer to the start of the I/O +/// `Bar` always holds an `IoRaw` instance that holds a valid pointer to the start of the I/O /// memory mapped PCI BAR and its size. pub struct Bar { pdev: ARef, @@ -54,7 +54,7 @@ pub(super) fn new(pdev: &Device, num: u32, name: &CStr) -> Result { let ioptr: usize = unsafe { bindings::pci_iomap(pdev.as_raw(), num, 0) } as usize; if ioptr == 0 { // SAFETY: - // `pdev` valid by the invariants of `Device`. + // `pdev` is valid by the invariants of `Device`. // `num` is checked for validity by a previous call to `Device::resource_len`. unsafe { bindings::pci_release_region(pdev.as_raw(), num) }; return Err(ENOMEM); -- 2.51.0