Skip to content

Commit 63df29c

Browse files
committed
rust: Add powerpc64 as a 64-bit target_arch in c_types.rs
powerpc kernel code uses int-ll64.h. Signed-off-by: Michael Ellerman <[email protected]>
1 parent 56356fe commit 63df29c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust/kernel/c_types.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ mod c {
6060
pub type c_size_t = usize;
6161
}
6262

63-
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
63+
#[cfg(any(
64+
target_arch = "aarch64",
65+
target_arch = "x86_64",
66+
target_arch = "powerpc64"
67+
))]
6468
mod c {
6569
/// C `void` type.
6670
pub type c_void = core::ffi::c_void;

0 commit comments

Comments
 (0)