This repository was archived by the owner on Mar 7, 2021. It is now read-only.
File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ bitflags::bitflags! {
36
36
}
37
37
}
38
38
39
- impl FileSystemFlags {
40
- pub const fn const_empty ( ) -> FileSystemFlags {
41
- FileSystemFlags { bits : 0 }
42
- }
43
- }
44
-
45
39
extern "C" fn fill_super_callback < T : FileSystem > (
46
40
_sb : * mut bindings:: super_block ,
47
41
_data : * mut c_types:: c_void ,
Original file line number Diff line number Diff line change 1
1
#![ no_std]
2
2
3
- #[ macro_use]
4
- extern crate linux_kernel_module;
3
+ use linux_kernel_module;
5
4
6
5
struct StaticFileSystemModule {
7
6
_fs : linux_kernel_module:: filesystem:: FileSystemRegistration < StaticFileSystem > ,
@@ -20,10 +19,10 @@ struct StaticFileSystem;
20
19
impl linux_kernel_module:: filesystem:: FileSystem for StaticFileSystem {
21
20
const NAME : & ' static str = "rust_static_filesystem\x00 " ;
22
21
const FLAGS : linux_kernel_module:: filesystem:: FileSystemFlags =
23
- linux_kernel_module:: filesystem:: FileSystemFlags :: const_empty ( ) ;
22
+ linux_kernel_module:: filesystem:: FileSystemFlags :: empty ( ) ;
24
23
}
25
24
26
- kernel_module ! (
25
+ linux_kernel_module :: kernel_module!(
27
26
StaticFileSystemModule ,
28
27
author: "Alex Gaynor and Geoffrey Thomas" ,
29
28
description: "An example Rust kernel module that implements a static file system" ,
You can’t perform that action at this time.
0 commit comments