Skip to contentSkip to conversation

Fixed "initialialized" typo in auxiliary.rs

PATCH In review JaimeF 3 participants 3 messages Sep 16, 2025

Subsystems (2)
lore
Share & tools
lore

JaimeF

author
#0 lore raw

PATCH 1/1 Fixed "initialialized" typo in auxiliary.rs

From: Jaime Fan <[email protected]>

---
 rust/kernel/auxiliary.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/auxiliary.rs +2 -2
index 58be09871..129eae8ff 100644
@@ -317,12 +317,12 @@ pub fn new(parent: &device::Device, name: &CStr, id: u32, modname: &CStr) -> Res
 
         // SAFETY:
         // - `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`, which has
-        //   been initialialized,
+        //   been initialized,
         // - `modname.as_char_ptr()` is a NULL terminated string.
         let ret = unsafe { bindings::__auxiliary_device_add(adev, modname.as_char_ptr()) };
         if ret != 0 {
             // SAFETY: `adev` is guaranteed to be a valid pointer to a `struct auxiliary_device`,
-            // which has been initialialized.
+            // which has been initialized.
             unsafe { bindings::auxiliary_device_uninit(adev) };
 
             return Err(Error::from_errno(ret));
Signature · 1 line
2.50.1
reviewer
#1 lore raw
Quoted 25 lines · On Tue, 16 Sep 2025 10:38:38 +0000 JaimeF <[email protected]> wrote:

From: Jaime Fan <[email protected]>

---
 rust/kernel/auxiliary.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
rust/kernel/auxiliary.rs +0 -0
index 58be09871..129eae8ff 100644
@@ -317,12 +317,12 @@ pub fn new(parent: &device::Device, name:

&CStr, id: u32, modname: &CStr) -> Res

         // SAFETY:
         // - `adev` is guaranteed to be a valid pointer to a `struct

auxiliary_device`, which has

rust/kernel/auxiliary.rs +1 -1
-        //   been initialialized,
+        //   been initialized,
         // - `modname.as_char_ptr()` is a NULL terminated string.
         let ret = unsafe { bindings::__auxiliary_device_add(adev,
modname.as_char_ptr()) }; if ret != 0 {
             // SAFETY: `adev` is guaranteed to be a valid pointer to

a struct auxiliary_device,

rust/kernel/auxiliary.rs pub fn new(parent: &device::Device, name: &CStr, id: u32, modname: &CStr) -> Res · line 328

Quoted 5 lines
rust/kernel/auxiliary.rs +1 -1
-            // which has been initialialized.
+            // which has been initialized.
             unsafe { bindings::auxiliary_device_uninit(adev) };
 
             return Err(Error::from_errno(ret));

Thank you for fixing this!

Can you please use [email protected] address instead of [email protected] for both cc-list and suggested-by tag ? I am not using [email protected] for LKML.

-Onur