Skip to content

Commit 8c051fa

Browse files
committed
include: make rust.h private to lib
No need to have it available for others (at least in this case). Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent b487aa6 commit 8c051fa

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16590,7 +16590,7 @@ T: git https://github.com/Rust-for-Linux/linux.git rust-next
1659016590
F: rust/
1659116591
F: samples/rust/
1659216592
F: Documentation/rust/
16593-
F: include/linux/rust.h
16593+
F: lib/rust.h
1659416594
K: \b(?i:rust)\b
1659516595

1659616596
RXRPC SOCKETS (AF_RXRPC)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef __LINUX_RUST_H
3-
#define __LINUX_RUST_H
2+
#ifndef _LIB_RUST_H
3+
#define _LIB_RUST_H
44

55
#ifdef CONFIG_RUST
66
char *rust_fmt_argument(char* buf, char* end, void *ptr);
@@ -11,4 +11,4 @@ static inline char *rust_fmt_argument(char* buf, char* end, void *ptr)
1111
}
1212
#endif
1313

14-
#endif /* __LINUX_RUST_H */
14+
#endif /* _LIB_RUST_H */

lib/vsprintf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include <linux/siphash.h>
4242
#include <linux/compiler.h>
4343
#include <linux/property.h>
44-
#include <linux/rust.h>
4544
#ifdef CONFIG_BLOCK
4645
#include <linux/blkdev.h>
4746
#endif
@@ -53,6 +52,7 @@
5352

5453
#include <linux/string_helpers.h>
5554
#include "kstrtox.h"
55+
#include "rust.h"
5656

5757
static noinline unsigned long long simple_strntoull(const char *startp, size_t max_chars, char **endp, unsigned int base)
5858
{

0 commit comments

Comments
 (0)