<div dir="ltr"><div><div><div><div>Hi!<br><br></div>While testing a module on arm platforms, I got an error which disturbed me.<br><br></div>In my module I&#39;m using pgd_offset_k [<a href="http://lxr.free-electrons.com/source/arch/x86/include/asm/pgtable.h#L720">http://lxr.free-electrons.com/source/arch/x86/include/asm/pgtable.h#L720</a>], and this macro isĀ  working for x86 and x86_64.<br><br>For arm platforms this macro is also defined here: <a href="http://lxr.free-electrons.com/source/arch/arm/include/asm/pgtable.h#L182">http://lxr.free-electrons.com/source/arch/arm/include/asm/pgtable.h#L182</a><br><br>but I get this error while compiling the module on arm board:<br><br>WARNING: &quot;init_mm&quot; [module] undefined!<br><br></div><div>init_mm is first defined in <a href="http://lxr.free-electrons.com/source/mm/init-mm.c#L16">http://lxr.free-electrons.com/source/mm/init-mm.c#L16</a><br></div><div>and then &quot;exported&quot; in <a href="http://lxr.free-electrons.com/source/include/linux/sched.h#L2558">http://lxr.free-electrons.com/source/include/linux/sched.h#L2558</a><br><br></div><div>(I&#39;m including this header)<br></div><div><br></div><div>Anyone knows how could I use pgd_offset_k in my module running on arm?<br><br></div><div>Thank you very much<br><br></div><div><br><br></div></div></div>