[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091103191233.0c3ba736@lxorguk.ukuu.org.uk>
Date: Tue, 3 Nov 2009 19:12:33 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: James Bottomley <James.Bottomley@...e.de>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
linux-scsi@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] strstrip incorrectly marked __must_check
> static inline void strsrip_tail(char *str)
> {
> char *x __used;
> x = strstrip(str);
> }
Bikeshed time but its cleaner to do
static inline __must_check void strstrip(char *str)
{
return strim(str);
}
and make strim() the old strstrip function without the check requirement
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists