← Back to team overview

kernel-packages team mailing list archive

[Bug 1536076] Re: Missing export symbol for mtrr_add and mtrr_del

 

** Also affects: linux (Ubuntu Xenial)
   Importance: Medium
       Status: Confirmed

** Changed in: linux (Ubuntu Xenial)
       Status: Confirmed => Fix Committed

** Changed in: linux (Ubuntu Xenial)
     Assignee: (unassigned) => Tim Gardner (timg-tpi)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1536076

Title:
  Missing export symbol for mtrr_add and mtrr_del

Status in linux package in Ubuntu:
  Fix Committed
Status in linux source package in Xenial:
  Fix Committed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1536076/+subscriptions


References