Hello community,

here is the log from the commit of package vhba-kmp for openSUSE:Factory 
checked in at 2015-12-24 12:16:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vhba-kmp (Old)
 and      /work/SRC/openSUSE:Factory/.vhba-kmp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vhba-kmp"

Changes:
--------
--- /work/SRC/openSUSE:Factory/vhba-kmp/vhba-kmp.changes        2015-11-26 
17:04:02.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.vhba-kmp.new/vhba-kmp.changes   2015-12-24 
12:16:23.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Dec  9 17:19:01 UTC 2015 - [email protected]
+
+- Improve autoloading by editing vhba-devname.diff to assign a
+  static misc number.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ vhba-devname.diff ++++++
--- /var/tmp/diff_new_pack.o87K2a/_old  2015-12-24 12:16:24.000000000 +0100
+++ /var/tmp/diff_new_pack.o87K2a/_new  2015-12-24 12:16:24.000000000 +0100
@@ -1,23 +1,41 @@
 From: Jan Engelhardt <[email protected]>
 Date: 2015-11-23 23:33:05.117741396 +0100
 
-vhba: add devname alias
+Facililtate automatic loading of the kernel module on openSUSE
 
 depmod scans the devname aliases and populates
-/lib/modules/X/modules.devname, which udev uses to prepopulate /dev
-so that, in turn, a program can open a dev node and thereby cause
+/lib/modules/X/modules.devname if there is also a
+{block,char}-major-* alias. udev uses this file then to prepopulate
+/dev so that a program can open a device node and thereby trigger
 autoloading.
 
+This patch adds the devname (requirement 1), and assigns
+a static number (requirement 2, for openSUSE only).
+
 ---
- vhba.c |    1 +
- 1 file changed, 1 insertion(+)
+ vhba.c |    8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
 
 Index: vhba-module-20140928/vhba.c
 ===================================================================
 --- vhba-module-20140928.orig/vhba.c
 +++ vhba-module-20140928/vhba.c
-@@ -1069,3 +1069,4 @@ static void __exit vhba_exit(void)
+@@ -954,7 +954,11 @@ static struct file_operations vhba_ctl_f
+ };
+ 
+ static struct miscdevice vhba_miscdev = {
+-    .minor = MISC_DYNAMIC_MINOR,
++      /* Facilitate autoload on openSUSE. The exact number does not matter,
++       * and may change over time, e.g. if "170" gets used by upstream.
++       * Of essence is that MISC_DYNAMIC_MINOR is to be avoided.
++       */
++    .minor = 170,
+     .name = "vhba_ctl",
+     .fops = &vhba_ctl_fops,
+ };
+@@ -1069,3 +1073,5 @@ static void __exit vhba_exit(void)
  module_init(vhba_init);
  module_exit(vhba_exit);
  
-+MODULE_ALIAS("devname:vhba");
++MODULE_ALIAS("devname:vhba_ctl");
++MODULE_ALIAS_MISCDEV(170);


Reply via email to