public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Must check what?
Date: Wed, 4 Oct 2006 12:37:53 -0600	[thread overview]
Message-ID: <20061004183752.GG28596@parisc-linux.org> (raw)


I'd like to propose that anyone adding __must_check markers in the
future be forced to *WRITE SOME FUCKING DOCUMENTATION* about exactly
what it is the caller is supposed to be checking.

extern int __must_check bus_register(struct bus_type * bus);

Why, thank you.  Does it return 0 for success, or 1 on success?  Does it
return an errno?


             reply	other threads:[~2006-10-04 18:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 18:37 Matthew Wilcox [this message]
2006-10-04 19:02 ` Must check what? Andrew Morton
2006-10-04 19:25   ` Matthew Wilcox
2006-10-04 19:43     ` Andrew Morton
2006-10-04 20:58       ` Vadim Lobanov
2006-10-05 13:20         ` Helge Hafting
2006-10-05  3:47       ` Kyle Moffett
2006-10-04 19:50     ` Randy Dunlap

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=20061004183752.GG28596@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@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