Hello community, here is the log from the commit of package ndiswrapper for openSUSE:Factory checked in at 2013-05-27 09:54:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ndiswrapper (Old) and /work/SRC/openSUSE:Factory/.ndiswrapper.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ndiswrapper" Changes: -------- --- /work/SRC/openSUSE:Factory/ndiswrapper/ndiswrapper.changes 2013-01-03 13:54:37.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.ndiswrapper.new/ndiswrapper.changes 2013-05-27 09:54:24.000000000 +0200 @@ -1,0 +2,9 @@ +Mon May 20 13:02:47 CEST 2013 - mhruse...@suse.cz + +- fixed compilation against kernel 3.9 and newer + * ndiswrapper-1.58-kernel-3.9.patch + ** daemonize shouldn't be used in threads created by kthread_create + ** add_taint function API changed + ** __devexit was abandoned + +------------------------------------------------------------------- New: ---- ndiswrapper-1.58-kernel-3.9.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ndiswrapper.spec ++++++ --- /var/tmp/diff_new_pack.knPSCi/_old 2013-05-27 09:54:24.000000000 +0200 +++ /var/tmp/diff_new_pack.knPSCi/_new 2013-05-27 09:54:24.000000000 +0200 @@ -28,6 +28,7 @@ Source2: README.SUSE Source3: preamble Patch1: ndiswrapper.diff +Patch2: ndiswrapper-1.58-kernel-3.9.patch BuildRequires: kernel-source BuildRequires: kernel-syms BuildRequires: module-init-tools @@ -58,6 +59,7 @@ %prep %setup -q -n %{name}-%{real_version} %patch1 +%patch2 cp %{SOURCE2} . mkdir obj ++++++ ndiswrapper-1.58-kernel-3.9.patch ++++++ Index: driver/loader.c =================================================================== --- driver/loader.c.orig +++ driver/loader.c @@ -23,6 +23,10 @@ #include <linux/miscdevice.h> #include <asm/uaccess.h> +#ifndef __devexit_p +#define __devexit_p(A) A +#endif + /* Network adapter: ClassGuid = {4d36e972-e325-11ce-bfc1-08002be10318} Network client: ClassGuid = {4d36e973-e325-11ce-bfc1-08002be10318} @@ -575,7 +579,11 @@ static int load_user_space_driver(struct } else { printk(KERN_INFO "%s: driver %s (%s) loaded\n", DRIVER_NAME, wrap_driver->name, wrap_driver->version); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0) + add_taint(TAINT_PROPRIETARY_MODULE, LOCKDEP_NOW_UNRELIABLE); +#else add_taint(TAINT_PROPRIETARY_MODULE); +#endif EXIT1(return 0); } } Index: driver/wrapper.c =================================================================== --- driver/wrapper.c.orig +++ driver/wrapper.c @@ -72,7 +72,11 @@ static void module_cleanup(void) static int __init wrapper_init(void) { #ifdef TAINT_OOT_MODULE - add_taint(TAINT_OOT_MODULE); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0) + add_taint(TAINT_OOT_MODULE, LOCKDEP_NOW_UNRELIABLE); +#else + add_taint(TAINT_OOT_MODULE); +#endif #endif printk(KERN_INFO "%s version %s loaded (smp=%s, preempt=%s)\n", DRIVER_NAME, DRIVER_VERSION, Index: driver/pnp.h =================================================================== --- driver/pnp.h.orig +++ driver/pnp.h @@ -20,6 +20,10 @@ #include "ndis.h" #include "wrapndis.h" +#ifndef __devexit +#define __devexit +#endif + int wrap_pnp_start_pci_device(struct pci_dev *pdev, const struct pci_device_id *ent); void __devexit wrap_pnp_remove_pci_device(struct pci_dev *pdev); Index: driver/workqueue.c =================================================================== --- driver/workqueue.c.orig +++ driver/workqueue.c @@ -53,7 +53,6 @@ static int workq_thread(void *data) WORKTRACE("%p, %d, %p", workq, thread_data->index, thread); strncpy(thread->name, current->comm, sizeof(thread->name)); - daemonize(thread->name); set_user_nice(current, -5); if (thread->task != current) { -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org