+ isdn4linux-gigaset-driver-fix-__must_check-warning.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     isdn4linux: Gigaset driver: fix __must_check warning

has been added to the -mm tree.  Its filename is

     isdn4linux-gigaset-driver-fix-__must_check-warning.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: isdn4linux: Gigaset driver: fix __must_check warning
From: Tilman Schmidt <tilman@xxxxxxx>

This patch to the Siemens Gigaset driver fixes the compile warning
"ignoring return value of 'class_device_create_file', declared with
attribute warn_unused_result" appearing with CONFIG_ENABLE_MUST_CHECK=y in
release 2.6.18-rc1-mm1.

Signed-off-by: Tilman Schmidt <tilman@xxxxxxx>
Acked-by: Hansjoerg Lipp <hjlipp@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/isdn/gigaset/proc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/isdn/gigaset/proc.c~isdn4linux-gigaset-driver-fix-__must_check-warning drivers/isdn/gigaset/proc.c
--- a/drivers/isdn/gigaset/proc.c~isdn4linux-gigaset-driver-fix-__must_check-warning
+++ a/drivers/isdn/gigaset/proc.c
@@ -83,5 +83,6 @@ void gigaset_init_dev_sysfs(struct cards
 		return;
 
 	gig_dbg(DEBUG_INIT, "setting up sysfs");
-	class_device_create_file(cs->class, &class_device_attr_cidmode);
+	if (class_device_create_file(cs->class, &class_device_attr_cidmode))
+		dev_err(cs->dev, "could not create sysfs attribute\n");
 }
_

Patches currently in -mm which might be from tilman@xxxxxxx are

isdn4linux-gigaset-driver-fix-__must_check-warning.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux