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

Compilation fixed for kernel 5.10.x #6

Merged
merged 1 commit into from
Jun 30, 2021
Merged

Conversation

alex--m
Copy link

@alex--m alex--m commented Dec 28, 2020

Signed-off-by: Alex Margolin alex.margolin@huawei.com

Signed-off-by: Alex Margolin <alex.margolin@huawei.com>
@@ -17,7 +17,6 @@
#include <linux/cdev.h>
#include <linux/percpu.h>

#include <asm/tlb.h>
Copy link

Choose a reason for hiding this comment

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

@alex--m you have to ifdef this include for versions below 5.10.x. For an example grep for LINUX_VERSION_CODE in the code

@shamisp
Copy link

shamisp commented Jan 15, 2021

@alex--m I'm running 5.10.6-200.fc33.aarch64 and I don't see this compilation issue.

@yosefe
Copy link

yosefe commented Jun 29, 2021

related to hpc#48

@shamisp
Copy link

shamisp commented Jun 29, 2021

@yosefe I don't have any x86 to test. If you confirm it works, I will merge,

@shamisp
Copy link

shamisp commented Jun 29, 2021

@yosefe also, probably should be wrapped with LINUX_VERSION_CODE

@tzafrir-mellanox
Copy link

I tested building with kernel 5.0 and older stable branches. 4.9 and below fail to build anyway. 4.14 and above work fine with the fix.

@tzafrir-mellanox
Copy link

Also, as I noted in #43, for me the build fails starting from kernel 5.8.

@shamisp shamisp merged commit 9598d05 into openucx:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants