From: Tilman Schmidt <tilman@imap.cc>
To: Andrew Morton <akpm@osdl.org>
Cc: kkeil@suse.de, gregkh@suse.de, linux-kernel@vger.kernel.org,
i4ldeveloper@listserv.isdn4linux.de,
linux-usb-devel@lists.sourceforge.net, hjlipp@web.de
Subject: Re: [mm Patch] isdn4linux: Gigaset driver: fix __must_check warning
Date: Wed, 12 Jul 2006 00:43:10 +0200 [thread overview]
Message-ID: <44B4297E.3040802@imap.cc> (raw)
In-Reply-To: <20060711145117.25dd09f2.akpm@osdl.org>
[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]
On 11.07.2006 23:51, Andrew Morton wrote:
> Tilman Schmidt <tilman@imap.cc> wrote:
>
>>- 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");
>
> With this change we'll emit a warning (actually it's an error - I'll make
> it dev_err(), OK?)
Fine with me. It's not fatal to the driver which is quite capable of
operating without that sysfs file, but ok, it *is* an error, and in
fact, if class_device_create_file() fails there must be something
seriously wrong.
> and then we'll continue execution, pretending that the
> sysfs file actually got registered. Later, we'll try to unregister a
> not-registered sysfs file.
Well, from my reading of the source, class_device_remove_file() should
be able to cope with that. The alternative would be to save off the
fact that the original creation failed somewhere in the driver data,
for the sole purpose of avoiding calling class_device_remove_file()
for it later.
--
Tilman Schmidt E-Mail: tilman@imap.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 253 bytes --]
prev parent reply other threads:[~2006-07-11 22:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060711115359.C9A4D1B8F4F@gx110.ts.pxnet.com>
2006-07-11 21:51 ` [mm Patch] isdn4linux: Gigaset driver: fix __must_check warning Andrew Morton
2006-07-11 22:43 ` Tilman Schmidt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B4297E.3040802@imap.cc \
--to=tilman@imap.cc \
--cc=akpm@osdl.org \
--cc=gregkh@suse.de \
--cc=hjlipp@web.de \
--cc=i4ldeveloper@listserv.isdn4linux.de \
--cc=kkeil@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox