On 10/9/24 11:22, Jan Beulich wrote:
On 06.10.2024 23:49, Daniel P. Smith wrote:
@@ -639,20 +639,20 @@ static uint64_t __init consider_modules(
for ( i = 0; i < nr_mods ; ++i )
      {
-        uint64_t start = (uint64_t)mod[i].mod_start << PAGE_SHIFT;
-        uint64_t end = start + PAGE_ALIGN(mod[i].mod_end);
+        uint64_t start = (uint64_t)pfn_to_paddr(mods[i].mod->mod_start);

With the switch to pfn_to_paddr() the cast isn't needed anymore.

Ack.

v/r,
dps

Reply via email to