Missing export symbol for mtrr_add and mtrr_del

Bug #1536076 reported by Mario Schroen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Tim Gardner
Xenial
Invalid
Medium
Tim Gardner

Bug Description

I try to use the 4.4 Kernel from the ppa git.

So if i complie the current fglrx driver all is fine but on modules load i get the error that the symbols

mtrr_del
mtrr_add

are missing.
I saw a patch for 4.3 for Nvidia facing the same issue.

Could you integrate the patch in the kernel ?

Here is the patch for
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index 5c3d149..ad7471c 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
+++ b/arch/x86/kernel/cpu/mtrr/main.c
@@ -448,7 +448,7 @@ int mtrr_add(unsigned long base, unsigned long size, unsigned int type,
        return mtrr_add_page(base >> PAGE_SHIFT, size >> PAGE_SHIFT, type,
                             increment);
 }
-
+EXPORT_SYMBOL(mtrr_add);
 /**
  * mtrr_del_page - delete a memory type region
  * @reg: Register returned by mtrr_add
@@ -536,7 +536,7 @@ int mtrr_del(int reg, unsigned long base, unsigned long size)
                return -EINVAL;
        return mtrr_del_page(reg, base >> PAGE_SHIFT, size >> PAGE_SHIFT);
 }
-
+EXPORT_SYMBOL(mtrr_del);
 /**
  * arch_phys_wc_add - add a WC MTRR and handle errors if PAT is unavailable
  * @base: Physical base address

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1536076

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Mario Schroen (ms193) wrote :

i can not collect the log currently.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Xenial):
assignee: nobody → Tim Gardner (timg-tpi)
status: Confirmed → Fix Committed
Revision history for this message
Tim Gardner (timg-tpi) wrote :

I'm not sure what happened to this patch as there is no commit in the repo. Is it still required ?

Changed in linux (Ubuntu Xenial):
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.