Skip to content

Commit 37bfea1

Browse files
authored
Merge pull request torvalds#767 from ojeda/sync-contents-with-next
Small cleanups from v6
2 parents fbf6cf4 + f56ba65 commit 37bfea1

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

lib/vsprintf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ int __init no_hash_pointers_enable(char *str)
22712271
early_param("no_hash_pointers", no_hash_pointers_enable);
22722272

22732273
/* Used for Rust formatting ('%pA'). */
2274-
char *rust_fmt_argument(char* buf, char* end, void *ptr);
2274+
char *rust_fmt_argument(char *buf, char *end, void *ptr);
22752275

22762276
/*
22772277
* Show a '%p' thing. A kernel extension is that the '%p' is followed

rust/kernel/kasync/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<'a, Out, F: FnMut() -> Result<Out> + Send + 'a> SocketFuture<'a, Out, F> {
183183

184184
/// Callback called when the socket changes state.
185185
///
186-
/// If the state matches the one we're waiting on, we wake up the tak so that the future can be
186+
/// If the state matches the one we're waiting on, we wake up the task so that the future can be
187187
/// polled again.
188188
unsafe extern "C" fn wake_callback(
189189
wq_entry: *mut bindings::wait_queue_entry,

rust/kernel/net/filter.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub enum Family {
7070
/// IPv6 packets.
7171
Ipv6(ipv6::Hook, ipv6::PriorityBase),
7272

73-
/// Adress resolution protocol (ARP) packets.
73+
/// Address resolution protocol (ARP) packets.
7474
Arp(arp::Hook),
7575
}
7676

@@ -152,7 +152,7 @@ impl<T: Filter> Registration<T> {
152152
/// registered.
153153
///
154154
/// The priority is relative to the family's base priority. For example, if the base priority
155-
/// is `100` and `priority` is -1, the actual priority will be `99`. If a family doesn't
155+
/// is `100` and `priority` is `-1`, the actual priority will be `99`. If a family doesn't
156156
/// explicitly allow a base to be specified, `0` is assumed.
157157
pub fn register(
158158
self: Pin<&mut Self>,
@@ -431,7 +431,7 @@ pub mod inet {
431431
/// Inbound packets that are meant to be delivered locally.
432432
LocalIn = bindings::nf_inet_hooks_NF_INET_LOCAL_IN as _,
433433

434-
/// Inbound pakcets that are meant to be forwarded to another host.
434+
/// Inbound packets that are meant to be forwarded to another host.
435435
Forward = bindings::nf_inet_hooks_NF_INET_FORWARD as _,
436436

437437
/// Outbound packet created by the local networking stack.

rust/kernel/raw_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use core::{
1616
/// It describes the type of list elements and provides a function to determine how to get the
1717
/// links to be used on a list.
1818
///
19-
/// A type that may be in multiple lists simultaneously neneds to implement one of these for each
19+
/// A type that may be in multiple lists simultaneously needs to implement one of these for each
2020
/// simultaneous list.
2121
pub trait GetLinks {
2222
/// The type of the entries in the list.

rust/kernel/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl fmt::Debug for CStr {
249249
/// let s = CString::try_from_fmt(fmt!("{:?}", penguin)).unwrap();
250250
/// assert_eq!(s.as_bytes_with_nul(), "\"\\xf0\\x9f\\x90\\xa7\"\0".as_bytes());
251251
///
252-
/// // embedded double quotes are escaped
252+
/// // Embedded double quotes are escaped.
253253
/// let ascii = c_str!("so \"cool\"");
254254
/// let s = CString::try_from_fmt(fmt!("{:?}", ascii)).unwrap();
255255
/// assert_eq!(s.as_bytes_with_nul(), "\"so \\\"cool\\\"\"\0".as_bytes());

rust/kernel/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ where
494494

495495
/// A trait for boolean types.
496496
///
497-
/// This is meant to be used in type states to allow booelan constraints in implementation blocks.
497+
/// This is meant to be used in type states to allow boolean constraints in implementation blocks.
498498
/// In the example below, the implementation containing `MyType::set_value` could _not_ be
499499
/// constrained to type states containing `Writable = true` if `Writable` were a constant instead
500500
/// of a type.

scripts/generate_rust_analyzer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: GPL-2.0
23
"""generate_rust_analyzer - Generates the `rust-project.json` file for `rust-analyzer`.
34
"""
45

0 commit comments

Comments
 (0)