From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Rfkill rewrite: eeepc-laptop resume
Date: Sat, 18 Apr 2009 15:02:12 +0100 [thread overview]
Message-ID: <49E9DD64.7000902@tuffmail.co.uk> (raw)
In-Reply-To: <1240061621.4755.35.camel@johannes.local>
Johannes Berg wrote:
> On Sat, 2009-04-18 at 14:29 +0100, Alan Jenkins wrote:
>
>
>> API nit:
>>
>> * This function tells the rfkill core that the device is capable of
>> * remembering soft blocks (which it is notified of via the set_block
>> * method) -- this means that the driver may ignore the return value
>> * from rfkill_set_hw_state().
>>
>> Doesn't this conflict with the declaration of rfkill_set_sw_state() as
>> __must_check?
>>
>
> Yeah, in a way it does, but I figure it's rare enough that those who
> really can ignore it can write
> (void) rfkill_set_sw_state(...)
>
> Don't really have a strong opinion, it just seemed the mistake in the
> other direction would be more common.
>
Oops... I meant to write rfkill_set_hw_state(), I think you copied me. Ok.
So then why is the _sw_ variant marked __must_check? That looks like a
mistake. I don't see what I can sensibly do with the return value.
Unless you want EPO to veto a firmware-initiated enable?
Thanks
Alan
next prev parent reply other threads:[~2009-04-18 14:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49DCA88E.6060400@tuffmail.co.uk>
[not found] ` <1239204090.16477.1.camel@johannes.local>
[not found] ` <49DCDD2E.80705@tuffmail.co.uk>
[not found] ` <49E38BBC.5010708@tuffmail.co.uk>
[not found] ` <1239741968.4205.1.camel@johannes.local>
[not found] ` <49E98C86.2040308@tuffmail.co.uk>
[not found] ` <1240043283.5792.0.camel@johannes.local>
2009-04-18 9:43 ` rfkill rewrite bug Alan Jenkins
2009-04-18 12:24 ` Johannes Berg
2009-04-18 13:29 ` Rfkill rewrite: eeepc-laptop resume Alan Jenkins
2009-04-18 13:33 ` Johannes Berg
2009-04-18 14:02 ` Alan Jenkins [this message]
2009-04-18 14:10 ` Johannes Berg
2009-04-18 15:49 ` rfkill rewrite bug Alan Jenkins
2009-04-18 15:57 ` Johannes Berg
2009-04-18 17:48 ` Alan Jenkins
2009-04-18 17:57 ` Johannes Berg
2009-04-18 18:03 ` Alan Jenkins
2009-04-18 17:42 ` Alan Jenkins
2009-04-18 17:59 ` Johannes Berg
2009-04-20 8:33 ` Alan Jenkins
2009-04-20 8:44 ` Johannes Berg
2009-04-20 9:20 ` Alan Jenkins
2009-04-20 11:28 ` Johannes Berg
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=49E9DD64.7000902@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).