Skip to content

Commit 3f3bb7e

Browse files
hoshinolinajannau
authored andcommitted
rust: bindings: Add resource_size wrapper
TODO: This isn't abstracted properly yet Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 0694b9c commit 3f3bb7e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

rust/helpers/helpers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "err.c"
1717
#include "io.c"
1818
#include "iomem.c"
19+
#include "ioport.c"
1920
#include "kunit.c"
2021
#include "lockdep.c"
2122
#include "mutex.c"

rust/helpers/ioport.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
3+
#include <linux/ioport.h>
4+
5+
resource_size_t rust_helper_resource_size(const struct resource *res)
6+
{
7+
return resource_size(res);
8+
}

0 commit comments

Comments
 (0)