Messages in this thread | | | Date | Tue, 23 Sep 2008 13:48:32 +0200 | From | Ingo Molnar <> | Subject | Re: [patch] x86, ptrace: void dopiness |
| |
* Metzger, Markus T <markus.t.metzger@intel.com> wrote:
> >-----Original Message----- > >From: Ingo Molnar [mailto:mingo@elte.hu] > >Sent: Montag, 22. September 2008 14:08 > >To: Metzger, Markus T > > >> The void-cast is intentional in both cases. > >> > >> I thought it a question of style, i.e. that we don't want void casts > >> just like we want NULL instead of 0. > > > >ok. > > > >But you could mark ds_release_bts() as a __must_check > >function, in that > >case the (void) has functional aspects as well: the kernel build will > >complain if a return value is ignored unintentionally. > > Wouldn't every non-void function be __must_check?
no, only those which we mark so explicitly.
Ingo
| |