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

Fail to build on 5.8/x86_64: implicit declaration of function 'flush_tlb_mm_range' #43

Open
tzafrir-mellanox opened this issue Feb 23, 2021 · 2 comments

Comments

@tzafrir-mellanox
Copy link
Contributor

I tried building xpmem with kernel 5.11 and got the following error:

  CC [M]  /home/tzafrirc/Proj/Packs/xpmem/xpmem/kernel/xpmem_mmu_notifier.o
In file included from /home/tzafrirc/Proj/Packs/xpmem/xpmem/kernel/xpmem_mmu_notifier.c:20:
./arch/x86/include/asm/tlb.h: In function ‘tlb_flush’:
./arch/x86/include/asm/tlb.h:24:2: error: implicit declaration of function ‘flush_tlb_mm_range’; did you mean ‘flush_icache_range’? [-Werror=implicit-function-declaration]
   24 |  flush_tlb_mm_range(tlb->mm, start, end, stride_shift, tlb->freed_tables);
      |  ^~~~~~~~~~~~~~~~~~
      |  flush_icache_range

Kernel 5.7 is OK but kernel 5.8 onwards break. I tried changing the order of includes to place asm/tlbflush.h before asm/tlb.h but I see that this function does not seem to be available for modules.

@rzambre
Copy link

rzambre commented Jun 10, 2021

I'm seeing this issue as well.

tzafrir-mellanox added a commit to tzafrir-mellanox/xpmem that referenced this issue Jun 29, 2021
Fixes issue hpc#43 of implicit decleration of flush_tlb_mm_range from
./arch/x86/include/asm/tlb.

This issue is potentially x86-only.

Signed-off-by: Tzafrir Cohen <[email protected]>
@12rookie21
Copy link

how to fix?Fixes issue #43 of implicit decleration of flush_tlb_mm_range from
./arch/x86/include/asm/tlb.

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

No branches or pull requests

3 participants