From: Tilman Schmidt <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> Acked-by: Hansjoerg Lipp <[EMAIL PROTECTED]> --- proc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.18-rc1-orig/drivers/isdn/gigaset/proc.c 2006-07-09 17:19:49.000000000 +0200 +++ linux-2.6.18-rc1-mm1-work/drivers/isdn/gigaset/proc.c 2006-07-09 18:31:15.000000000 +0200 @@ -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_warn(cs->dev, "could not create sysfs attribute\n"); } ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel