From d8322e38c7b80c85ca1e61dbbe638983b4a443cf Mon Sep 17 00:00:00 2001 From: wanghuaiqing Date: Wed, 7 Aug 2019 15:53:05 +0800 Subject: [PATCH] cast Rdev of Stat_t to uint64 for mips Signed-off-by: wanghuaiqing --- oci/spec_opts_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oci/spec_opts_linux.go b/oci/spec_opts_linux.go index d4b95e7b1..918c8f4ec 100644 --- a/oci/spec_opts_linux.go +++ b/oci/spec_opts_linux.go @@ -32,7 +32,8 @@ func deviceFromPath(path, permissions string) (*specs.LinuxDevice, error) { } var ( - devNumber = stat.Rdev + // The type is 32bit on mips. + devNumber = uint64(stat.Rdev) // nolint: unconvert major = unix.Major(devNumber) minor = unix.Minor(devNumber) )