driver core fixes for your 2.6-git tree
Subsystems (4)
PATCH 1/1 driver core fixes for your 2.6-git tree
Here are 4 patches for your 2.6-git tree.
They contain:
- licensing fix for the xilinx_hwicap drivers (signed off by the original authors)
- 2 dynamic debug printk fixes
- staging Kconfig fix
All of these have been in the -next trees and the -mm releases for a while now.
Please pull from:
master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-core-2.6.git/
The patches will be sent as a follow-on to this message to lkml for people to see.
thanks,
greg k-h
------------
drivers/char/xilinx_hwicap/buffer_icap.c | 3 --- drivers/char/xilinx_hwicap/buffer_icap.h | 3 --- drivers/char/xilinx_hwicap/fifo_icap.c | 3 --- drivers/char/xilinx_hwicap/fifo_icap.h | 3 --- drivers/char/xilinx_hwicap/xilinx_hwicap.c | 3 --- drivers/char/xilinx_hwicap/xilinx_hwicap.h | 3 --- drivers/staging/Kconfig | 3 +++ lib/dynamic_printk.c | 6 +++--- 8 files changed, 6 insertions(+), 21 deletions(-)
---------------
Dmitry Baryshkov (1):
STAGING: Move staging drivers back to staging-specific menu
Greg Kroah-Hartman (1):
xilinx_hwicap: remove improper wording in license statement
Johann Felix Soden (1):
driver core: fix using 'ret' variable in unregister_dynamic_debug_module
Marcel Holtmann (1):
driver core: add newlines to debugging enabled/disabled messages
PATCH 1/4 driver core: fix using 'ret' variable in unregister_dynamic_debug_module
From: Johann Felix Soden <[email protected]>
The 'ret' variable is assigned, but not used in the return statement. Fix this.
--- lib/dynamic_printk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/dynamic_printk.c +1 -1
@@ -135,7 +135,7 @@ int unregister_dynamic_debug_module(char *mod_name) nr_entries--; out:up (&debug_list_mutex); -return 0 ; +return ret; }EXPORT_SYMBOL_GPL (unregister_dynamic_debug_module);
Signature · 1 line
1.6.0.4
PATCH 2/4 xilinx_hwicap: remove improper wording in license statement
In reply to Greg KHGPLv2 doesn't allow additional restrictions to be imposed on any code, so this wording needs to be removed from these files.
--- drivers/char/xilinx_hwicap/buffer_icap.c | 3 --- drivers/char/xilinx_hwicap/buffer_icap.h | 3 --- drivers/char/xilinx_hwicap/fifo_icap.c | 3 --- drivers/char/xilinx_hwicap/fifo_icap.h | 3 --- drivers/char/xilinx_hwicap/xilinx_hwicap.c | 3 --- drivers/char/xilinx_hwicap/xilinx_hwicap.h | 3 --- 6 files changed, 0 insertions(+), 18 deletions(-)
drivers/char/xilinx_hwicap/buffer_icap.c +0 -3
@@ -21,9 +21,6 @@* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * -* Xilinx products are not intended for use in life support appliances, -* devices, or systems. Use in such applications is expressly prohibited. -* * (c) Copyright 2003-2008 Xilinx Inc. * All rights reserved. *
drivers/char/xilinx_hwicap/buffer_icap.h +0 -3
@@ -21,9 +21,6 @@* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * -* Xilinx products are not intended for use in life support appliances, -* devices, or systems. Use in such applications is expressly prohibited. -* * (c) Copyright 2003-2008 Xilinx Inc. * All rights reserved. *
drivers/char/xilinx_hwicap/fifo_icap.c +0 -3
@@ -21,9 +21,6 @@* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * -* Xilinx products are not intended for use in life support appliances, -* devices, or systems. Use in such applications is expressly prohibited. -* * (c) Copyright 2007-2008 Xilinx Inc. * All rights reserved. *
drivers/char/xilinx_hwicap/fifo_icap.h +0 -3
@@ -21,9 +21,6 @@* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * -* Xilinx products are not intended for use in life support appliances, -* devices, or systems. Use in such applications is expressly prohibited. -* * (c) Copyright 2007-2008 Xilinx Inc. * All rights reserved. *
drivers/char/xilinx_hwicap/xilinx_hwicap.c +0 -3
@@ -21,9 +21,6 @@* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * -* Xilinx products are not intended for use in life support appliances, -* devices, or systems. Use in such applications is expressly prohibited. -* * (c) Copyright 2002 Xilinx Inc., Systems Engineering Group * (c) Copyright 2004 Xilinx Inc., Systems Engineering Group * (c) Copyright 2007-2008 Xilinx Inc.
drivers/char/xilinx_hwicap/xilinx_hwicap.h +0 -3
@@ -21,9 +21,6 @@* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * -* Xilinx products are not intended for use in life support appliances, -* devices, or systems. Use in such applications is expressly prohibited. -* * (c) Copyright 2003-2007 Xilinx Inc. * All rights reserved. *
Signature · 1 line
1.6.0.4
Re: [PATCH 2/4] xilinx_hwicap: remove improper wording in license statement
Quoted 2 lines · On Wed, 17 Dec 2008 11:28:21 -0800 Greg Kroah-Hartman <[email protected]> wrote:
GPLv2 doesn't allow additional restrictions to be imposed on any code, so this wording needs to be removed from these files.
You only need to remove the "Use in .. expressly prohibited bit", the rest seems like useful relevant information.
Re: [PATCH 2/4] xilinx_hwicap: remove improper wording in license statement
Quoted 8 lines · Alan Cox
Quoted 2 lines · On Wed, 17 Dec 2008 11:28:21 -0800 Greg Kroah-Hartman <[email protected]> wrote:
GPLv2 doesn't allow additional restrictions to be imposed on any code, so this wording needs to be removed from these files.
You only need to remove the "Use in .. expressly prohibited bit", the rest seems like useful relevant information.
As this ended up just being boiler-plate wording from an internal Xilinx template, and didn't apply at all to these files, it seemed easier to just remove the whole thing :)
thanks,
greg k-h
PATCH 3/4 driver core: add newlines to debugging enabled/disabled messages
In reply to Greg KHFrom: Marcel Holtmann <[email protected]>
Both messages are missing the newline and thus dmesg output gets scrambled.
--- lib/dynamic_printk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
lib/dynamic_printk.c +2 -2
@@ -289,7 +289,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf, dynamic_enabled =DYNAMIC_ENABLED_SOME ; err =0 ;printk (KERN_DEBUG -"debugging enabled for module %s" , +"debugging enabled for module %s\n" , elem->name); }else if (!value && (elem->enable ==1 )) { elem->enable =0 ;
@@ -309,7 +309,7 @@ static ssize_t pr_debug_write(struct file *file, const char __user *buf, err =0 ;printk (KERN_DEBUG "debugging disabled for module " -"%s" , elem->name); +"%s\n" , elem->name); } } }
Signature · 1 line
1.6.0.4
PATCH 4/4 STAGING: Move staging drivers back to staging-specific menu
In reply to Greg KHFrom: Dmitry Baryshkov <[email protected]>
--- drivers/staging/Kconfig | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/staging/Kconfig +3 -0
@@ -22,6 +22,8 @@ menuconfig STAGING If in doubt, say N here. +if STAGING + config STAGING_EXCLUDE_BUILD bool "Exclude Staging drivers from being built" if STAGING default y
@@ -62,3 +64,4 @@ source "drivers/staging/at76_usb/Kconfig" source "drivers/staging/poch/Kconfig" endif # !STAGING_EXCLUDE_BUILD +endif # STAGING
Signature · 1 line
1.6.0.4