Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move code from .h into .cc #12737

Merged
merged 3 commits into from Jan 4, 2017
Merged

Move code from .h into .cc #12737

merged 3 commits into from Jan 4, 2017

Conversation

amirv
Copy link
Contributor

@amirv amirv commented Jan 2, 2017

Hi,

This pull request has some cosmetic changes to the RDMA code.
It has only copy-paste stuff (Except the last small patch) to make it easy to review.

last patch fixes a warning which is actually a small bug.

Thanks,
Amir

Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: Amir Vadai <amir@vadai.me>
Infiniband.cc: In member function ‘int Infiniband::recv_msg(CephContext*, int, IBSYNMsg&)’:
Infiniband.cc:883:86: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘uint16_t* {aka short unsigned int*}’ [-Wformat=]
     sscanf(msg, "%x:%x:%x:%x:%s", &(im.lid), &(im.qpn), &(im.psn),
     &(im.peer_qpn),gid);

Signed-off-by: Amir Vadai <amir@vadai.me>
@amirv
Copy link
Contributor Author

amirv commented Jan 2, 2017

Adding @Adirl

@Adirl
Copy link

Adirl commented Jan 2, 2017

@yuyuyu101 pls take a look
this is preparation for RDMA-CM

@yuyuyu101
Copy link
Member

hmm, it's ok to me.. but I don't why we need to move all tiny implementation to .cc?

@amirv
Copy link
Contributor Author

amirv commented Jan 2, 2017

Thanks @yuyuyu101

I moved only multiline functions to the .cc
At least in gvim, it makes things much clearer and easy to work on this way.

Copy link

@Adirl Adirl left a comment

Choose a reason for hiding this comment

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

make sure code compiles and msngr unittest pass

@yuyuyu101 yuyuyu101 merged commit 0940e7e into ceph:master Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants