[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2021-10-13 Thread Steve Langasek
The Precise Pangolin has reached end of life, so this bug will not be
fixed for that release

** Changed in: linux (Ubuntu Precise)
   Status: New => Won't Fix

-- 
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/1327619

Title:
  kernel version detection in module build

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Lucid:
  Won't Fix
Status in linux source package in Precise:
  Won't Fix
Status in linux source package in Trusty:
  Fix Released
Status in linux source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-06-07 Thread Andy Whitcroft
Ignore the bot.  We have what we need.  Will discuss with stable as
well.

** Changed in: linux (Ubuntu)
 Assignee: (unassigned) => Andy Whitcroft (apw)

** Changed in: linux (Ubuntu)
   Importance: Undecided => Low

** Changed in: linux (Ubuntu)
   Status: Incomplete => In Progress

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  In Progress

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-06-07 Thread Adam Conrad
I'm guessing parsing this wouldn't be particularly ideal, and having
something more macro-friendly would be better?

include/generated/utsrelease.h:#define UTS_RELEASE "3.15.0-5-generic"

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  In Progress

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-06-08 Thread Hauke
I saw that, but I am unable to parse this in the C preprocessor.

I could do something like this:

#if UTS_RELEASE == "3.15.0-5-generic"
/* some code */
#else
/some code */
#endif

but that does not scale.

Having something like:

#define UTS_RELEASE_MINOR 5

would help, the rest is already in
include/generated/uapi/linux/version.h

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  In Progress

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-06-16 Thread Tim Gardner
** Also affects: linux (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Utopic)
   Importance: Low
 Assignee: Andy Whitcroft (apw)
   Status: In Progress

** Changed in: linux (Ubuntu Trusty)
   Status: New => In Progress

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  In Progress
Status in “linux” source package in Trusty:
  In Progress
Status in “linux” source package in Utopic:
  In Progress

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-06-17 Thread Tim Gardner
Hauke - we ultimately ended up adding UTS_UBUNTU_RELEASE_ABI to
include/generated/utsrelease.h

** Changed in: linux (Ubuntu Trusty)
   Status: In Progress => Fix Committed

** Changed in: linux (Ubuntu Utopic)
   Status: In Progress => Fix Committed

** Patch added: "Add UTS_UBUNTU_RELEASE_ABI to utsrelease.h"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1327619/+attachment/4133363/+files/0001-UBUNTU-Debian-Add-UTS_UBUNTU_RELEASE_ABI-to-utsrelea.patch

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Committed
Status in “linux” source package in Trusty:
  Fix Committed
Status in “linux” source package in Utopic:
  Fix Committed

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-06-17 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Committed
Status in “linux” source package in Trusty:
  Fix Committed
Status in “linux” source package in Utopic:
  Fix Committed

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-10-10 Thread Andy Whitcroft
** Also affects: linux (Ubuntu Precise)
   Importance: Undecided
   Status: New

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Released
Status in “linux” source package in Precise:
  New
Status in “linux” source package in Trusty:
  Fix Released
Status in “linux” source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-07-16 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 3.13.0-32.57

---
linux (3.13.0-32.57) trusty; urgency=low

  [ Upstream Kernel Changes ]

  * l2tp: Privilege escalation in ppp over l2tp sockets
- LP: #1341472
- CVE-2014-4943

linux (3.13.0-32.56) trusty; urgency=low

  [ Luis Henriques ]

  * Merged back Ubuntu-3.13.0-30.55 security release
  * Revert "x86_64,ptrace: Enforce RIP <= TASK_SIZE_MAX (CVE-2014-4699)"
- LP: #1337339
  * Release Tracking Bug
- LP: #1338524

  [ Upstream Kernel Changes ]

  * ptrace,x86: force IRET path after a ptrace_stop()
- LP: #1337339
- CVE-2014-4699
  * hpsa: add new Smart Array PCI IDs (May 2014)
- LP: #1337516

linux (3.13.0-31.55) trusty; urgency=low

  [ Luis Henriques ]

  * Release Tracking Bug
- LP: #1336278

  [ Andy Whitcroft ]

  * [Config] switch hyper-keyboard to virtual
- LP: #1325306
  * [Packaging] linux-udeb-flavour -- standardise on linux prefix

  [ dann frazier ]

  * [Config] CONFIG_GPIO_DWAPB=m
- LP: #1334823

  [ Feng Kan ]

  * SAUCE: (no-up) arm64: dts: Add Designware GPIO dts binding to APM
X-Gene platform
- LP: #1334823

  [ John Johansen ]

  * SAUCE: (no-up) apparmor: fix apparmor spams log with warning message
- LP: #1308761

  [ Kamal Mostafa ]

  * [Config] updateconfigs ACPI_PROCFS_POWER=y after v3.13.11.4 rebase

  [ Loc Ho ]

  * SAUCE: (no-up) phy-xgene: Use correct tuning for Mustang
- LP: #1335636

  [ Michael Ellerman ]

  * SAUCE: (no-up) powerpc/perf: Ensure all EBB register state is cleared
on fork()
- LP: #1328914

  [ Ming Lei ]

  * Revert "SAUCE: (no-up) rtc: Add X-Gene SoC Real Time Clock Driver"
- LP: #1274305

  [ Suman Tripathi ]

  * SAUCE: (no-up) libahci: Implement the function ahci_restart_engine to
restart the port dma engine.
- LP: #1335645
  * SAUCE: (no-up) ata: Fix the dma state machine lockup for the IDENTIFY
DEVICE PIO mode command.
- LP: #1335645

  [ Tim Gardner ]

  * [Config] CONFIG_POWERNV_CPUFREQ=y for powerpc, ppc64el
- LP: #1324571
  * [Debian] Add UTS_UBUNTU_RELEASE_ABI to utsrelease.h
- LP: #1327619
  * [Config] CONFIG_HAVE_MEMORYLESS_NODES=y
- LP: #1332063
  * [Config] CONFIG_HID_RMI=m
- LP: #1305522

  [ Upstream Kernel Changes ]

  * Revert "offb: Add palette hack for little endian"
- LP: #1333430
  * Revert "net: mvneta: fix usage as a module on RGMII configurations"
- LP: #1333837
  * Revert "USB: serial: add usbid for dell wwan card to sierra.c"
- LP: #1333837
  * Revert "macvlan : fix checksums error when we are in bridge mode"
- LP: #1333838
  * serial: uart: add hw flow control support configuration
- LP: #1328295
  * mm/numa: Remove BUG_ON() in __handle_mm_fault()
- LP: #1323165
  * Tools: hv: Handle the case when the target file exists correctly
- LP: #1306215
  * Documentation/devicetree/bindings: add documentation for the APM X-Gene
SoC RTC DTS binding
- LP: #1274305
  * drivers/rtc: add APM X-Gene SoC RTC driver
- LP: #1274305
  * arm64: add APM X-Gene SoC RTC DTS entry
- LP: #1274305
  * powerpc/perf: Add Power8 cache & TLB events
- LP: #1328914
  * powerpc/perf: Configure BHRB filter before enabling PMU interrupts
- LP: #1328914
  * powerpc/perf: Define perf_event_print_debug() to print PMU register
values
- LP: #1328914
  * powerpc: Add a cpu feature CPU_FTR_PMAO_BUG
- LP: #1328914
  * powerpc/perf: Add lost exception workaround
- LP: #1328914
  * powerpc/perf: Reject EBB events which specify a sample_type
- LP: #1328914
  * powerpc/perf: Clean up the EBB hash defines a little
- LP: #1328914
  * powerpc/perf: Avoid mutating event in power8_get_constraint()
- LP: #1328914
  * powerpc/perf: Add BHRB constraint and IFM MMCRA handling for EBB
- LP: #1328914
  * powerpc/perf: Enable BHRB access for EBB events
- LP: #1328914
  * powerpc/perf: Fix handling of L3 events with bank == 1
- LP: #1328914
  * Bluetooth: Add support for Intel Bluetooth device [8087:0a2a]
- LP: #1329184
  * iwlwifi: mvm: disable beacon filtering
- LP: #1293569
  * SUNRPC: Ensure that call_connect times out correctly
- LP: #1322407
  * SUNRPC: Ensure call_connect_status() deals correctly with SOFTCONN
tasks
- LP: #1322407
  * bitops: Fix signedness of compile-time hweight implementations
- LP: #1321791
  * cpumask.h: silence warning with -Wsign-compare
- LP: #1321791
  * fbdev/fb.h: silence warning with -Wsign-compare
- LP: #1321791
  * rtlwifi: make MSI support a module parameter
- LP: #1296591
  * rtlwifi: rtl8188ee: add msi module parameter
- LP: #1296591
  * rtlwifi: rtl8723be: add msi module parameter
- LP: #1296591
  * net: avoid dependency of net_get_random_once on nop patching
- LP: #1330671
  * x86-64, modify_ldt: Make support for 16-bit segments a runtime option
- LP: #1328965
  * ALSA: usb-audio: Prevent printk ratelimiting from spamming kernel log
while DEBUG n

[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-07-16 Thread Hauke
Thanks for adding this, now I am able to automatically detect the
version. It would sill be better if this define would be in
include/generated/uapi/linux/version.h and not in
include/generated/utsrelease.h, because utsrelease.h is not there in non
ubuntu kernel and then an include   will fail,
but I can include  which again includes
 to circumvent this problem.

Instead of adding the ubuntu kernel version it would be better to add
the EXTRAVERSION, then this would also work for the kernel versions you
provide longterm support for.

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Released
Status in “linux” source package in Trusty:
  Fix Released
Status in “linux” source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-11-19 Thread Andy Whitcroft
** Also affects: linux (Ubuntu Lucid)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Trusty)
   Importance: Undecided => Low

** Changed in: linux (Ubuntu Precise)
   Importance: Undecided => Low

** Changed in: linux (Ubuntu Lucid)
   Importance: Undecided => Low

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Released
Status in “linux” source package in Lucid:
  New
Status in “linux” source package in Precise:
  New
Status in “linux” source package in Trusty:
  Fix Released
Status in “linux” source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-07-03 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-proposed/linux-lts-trusty

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Committed
Status in “linux” source package in Trusty:
  Fix Committed
Status in “linux” source package in Utopic:
  Fix Committed

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-07-10 Thread Luis Henriques
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
trusty' to 'verification-done-trusty'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-trusty

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Committed
Status in “linux” source package in Trusty:
  Fix Committed
Status in “linux” source package in Utopic:
  Fix Committed

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-07-11 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/linux-keystone

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Committed
Status in “linux” source package in Trusty:
  Fix Committed
Status in “linux” source package in Utopic:
  Fix Committed

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2014-07-11 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 3.16.0-3.8

---
linux (3.16.0-3.8) utopic; urgency=low

  [ Tim Gardner ]

  * Release Tracking Bug
- LP: #1340091
 -- Tim GardnerThu, 10 Jul 2014 10:06:47 +0100

** Changed in: linux (Ubuntu Utopic)
   Status: Fix Committed => Fix Released

-- 
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/1327619

Title:
  kernel version detection in module build

Status in “linux” package in Ubuntu:
  Fix Released
Status in “linux” source package in Trusty:
  Fix Committed
Status in “linux” source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2015-05-27 Thread Mathew Hodson
** Tags removed: verification-needed-trusty

-- 
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/1327619

Title:
  kernel version detection in module build

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Lucid:
  New
Status in linux source package in Precise:
  New
Status in linux source package in Trusty:
  Fix Released
Status in linux source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1327619] Re: kernel version detection in module build

2015-06-17 Thread Rolf Leggewie
lucid has seen the end of its life and is no longer receiving any
updates. Marking the lucid task for this ticket as "Won't Fix".

** Changed in: linux (Ubuntu Lucid)
   Status: New => Won't Fix

-- 
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/1327619

Title:
  kernel version detection in module build

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Lucid:
  Won't Fix
Status in linux source package in Precise:
  New
Status in linux source package in Trusty:
  Fix Released
Status in linux source package in Utopic:
  Fix Released

Bug description:
  When building an external kernel module against an Ubuntu kernel it
  would help to be able to include some special code for some specific
  Ubuntu kernel version.

  I want to ship a kernel module in source code which the user should be
  able to compile against mainline kernels and various distribution
  kernels like the Ubuntu kernel, it would help if there is some way to
  identify the version of the Ubuntu kernel.

  To identify the kernel version it creates a file in 
include/generated/uapi/linux/version.h and then I can use something like:
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
  /* some code */
  #else
  /* some code */
  #endif

  The problem is that your kernel is not 100% API compatible with the
  mainline kernel and in some cases such a detection is also needed
  based on the Ubuntu kernel version used.

  RedHat extended this file with some version information about the RHEL
  kernel in use:

  #define LINUX_VERSION_CODE 132640
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
  #define RHEL_MAJOR 6
  #define RHEL_MINOR 5
  #define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
  #define RHEL_RELEASE_CODE 1541
  #define RHEL_RELEASE "430"

  I would like to see something like this also in the Ubuntu kernel
  (e.g. 3.13.0-27-generic) and in the long term kernel versions (e.g.
  3.13.11.2) provided by Canonical.

  My current problem is that I do not know if the kernel I am compiling against 
has this backport in or not:
  
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commitdiff;h=f4c342cdce8acfaef2d89a800bb6a10128d802c8

  Adding some version to the kernel will help the backports project.
  https://backports.wiki.kernel.org/

  This problem effects at least trusty, but probably all versions,
  having such a feature in Debian would also be nice, but I have not
  checked. SLES already has a similar feature.

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

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp