lkml.org 
[lkml]   [2008]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-09-23 13:51    [W:0.054 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site