Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit e3e4dc6

Browse files
alexreaperhulk
authored andcommitted
Test on xenial (#63)
* Test on xenial * Modernize * Fix for recent kernels where this takes a u64 * See if things can be copy
1 parent d872fa6 commit e3e4dc6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
sudo: required
1+
matrix:
2+
include:
3+
- dist: trusty
4+
- dist: xenial
25

36
language: rust
47
rust:

build.rs

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ fn main() {
4545
let mut builder = bindgen::Builder::default()
4646
.use_core()
4747
.ctypes_prefix("c_types")
48-
.no_copy(".*")
4948
.derive_default(true)
5049
.rustfmt_bindings(true);
5150

src/user_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl UserSlicePtrReader {
100100
bindings::_copy_from_user(
101101
data.as_mut_ptr() as *mut c_types::c_void,
102102
self.0,
103-
data.len() as u32,
103+
data.len() as _,
104104
)
105105
};
106106
if res != 0 {
@@ -126,7 +126,7 @@ impl UserSlicePtrWriter {
126126
bindings::_copy_to_user(
127127
self.0,
128128
data.as_ptr() as *const c_types::c_void,
129-
data.len() as u32,
129+
data.len() as _,
130130
)
131131
};
132132
if res != 0 {

0 commit comments

Comments
 (0)