Skip to content

Cast Dev and Rdev of Stat_t to uint64 for mips#39646

Merged
thaJeztah merged 1 commit intomoby:masterfrom
ydcool:master
Aug 5, 2019
Merged

Cast Dev and Rdev of Stat_t to uint64 for mips#39646
thaJeztah merged 1 commit intomoby:masterfrom
ydcool:master

Conversation

@ydcool
Copy link
Contributor

@ydcool ydcool commented Aug 1, 2019

Signed-off-by: Dominic Yin yindongchao@inspur.com

- What I did

This is yet another pull request based on #37490 , since that PR seems no more progresses.
This PR fixed build errors about like "cannot use s.Rdev (type uint32) as type uint64" when targeting mips due to the Dev and Rdev in Stat_t being 32-bit on 32-bit mips.

- How I did it

Inserted casts to uint64 where needed.

- How to verify it

Note that we cannot build docker on mips64le in conventional way, instead we have to run the script directly. After fix some other problems like ztypes and zerrors in golang.org/x/sys, we build docker successfully following these short steps below:

git clone -b v18.09.8-ce https://github.com/docker/docker-ce "$GOPATH/src/github.com/docker/"
cd $GOPATH/src/github.com/docker
ln -s $GOPATH/src/github.com/docker/docker-ce/components/engine docker
cd docker
sh -x ./hack/make.sh dynbinary

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@GordonTheTurtle GordonTheTurtle added the dco/no Automatically set by a bot when one of the commits lacks proper signature label Aug 1, 2019
@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "master" git@github.com:ydcool/moby.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@GordonTheTurtle GordonTheTurtle removed the dco/no Automatically set by a bot when one of the commits lacks proper signature label Aug 1, 2019
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please sign the commit with your real name including surname

Signed-off-by: Dominic <yindongchao@inspur.com>
Signed-off-by: Dominic Yin <yindongchao@inspur.com>
@ydcool
Copy link
Contributor Author

ydcool commented Aug 1, 2019

@AkihiroSuda thank you, is it all right now?

Copy link
Member

@yongtang yongtang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants