lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250304040450.697235-1-sidong.yang@furiosa.ai>
Date: Tue,  4 Mar 2025 13:04:49 +0900
From: Sidong Yang <sidong.yang@...iosa.ai>
To: rust-for-linux@...r.kernel.org
Cc: Sidong Yang <sidong.yang@...iosa.ai>,
	linux-kernel@...r.kernel.org
Subject: [RFC PATCH] rust: add cdev for rust bindings helper

This patch adds cdev rust bindings.

Signed-off-by: Sidong Yang <sidong.yang@...iosa.ai>
---
 rust/bindings/bindings_helper.h | 1 +
 rust/helpers/cdev.c             | 3 +++
 rust/helpers/helpers.c          | 1 +
 3 files changed, 5 insertions(+)
 create mode 100644 rust/helpers/cdev.c

diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h
index f46cf3bb7069..07145905bc10 100644
--- a/rust/bindings/bindings_helper.h
+++ b/rust/bindings/bindings_helper.h
@@ -10,6 +10,7 @@
 #include <linux/blk-mq.h>
 #include <linux/blk_types.h>
 #include <linux/blkdev.h>
+#include <linux/cdev.h>
 #include <linux/cred.h>
 #include <linux/device/faux.h>
 #include <linux/errname.h>
diff --git a/rust/helpers/cdev.c b/rust/helpers/cdev.c
new file mode 100644
index 000000000000..929aa5359a47
--- /dev/null
+++ b/rust/helpers/cdev.c
@@ -0,0 +1,3 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/cdev.h>
diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c
index 0640b7e115be..6aa69761409e 100644
--- a/rust/helpers/helpers.c
+++ b/rust/helpers/helpers.c
@@ -11,6 +11,7 @@
 #include "bug.c"
 #include "build_assert.c"
 #include "build_bug.c"
+#include "cdev.c"
 #include "cred.c"
 #include "device.c"
 #include "err.c"
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ