Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754737AbZKCTK4 (ORCPT ); Tue, 3 Nov 2009 14:10:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754614AbZKCTKx (ORCPT ); Tue, 3 Nov 2009 14:10:53 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:34116 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754315AbZKCTKv (ORCPT ); Tue, 3 Nov 2009 14:10:51 -0500 Date: Tue, 3 Nov 2009 19:12:33 +0000 From: Alan Cox To: Andrew Morton Cc: James Bottomley , KOSAKI Motohiro , linux-scsi@vger.kernel.org, linux-kernel Subject: Re: [PATCH] strstrip incorrectly marked __must_check Message-ID: <20091103191233.0c3ba736@lxorguk.ukuu.org.uk> In-Reply-To: <20091103105921.160d5599.akpm@linux-foundation.org> References: <1257273488.9427.27.camel@mulgrave.site> <20091103105921.160d5599.akpm@linux-foundation.org> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.14.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 534 Lines: 22 > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/