From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754973AbZLPSwB (ORCPT ); Wed, 16 Dec 2009 13:52:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751719AbZLPSwA (ORCPT ); Wed, 16 Dec 2009 13:52:00 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:56925 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbZLPSv6 (ORCPT ); Wed, 16 Dec 2009 13:51:58 -0500 Subject: Re: [PATCH 14/14] kernel/exit.c and kernel/panic.c: Remove unused NORET_TYPE From: Peter Zijlstra To: Joe Perches Cc: Linus Torvalds , linux-kernel@vger.kernel.org In-Reply-To: <29e53e769a3f0b38ea8347b95c8947d3f50ab4c6.1260949674.git.joe@perches.com> References: <29e53e769a3f0b38ea8347b95c8947d3f50ab4c6.1260949674.git.joe@perches.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 16 Dec 2009 19:51:55 +0100 Message-ID: <1260989515.21028.228.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2009-12-16 at 00:09 -0800, Joe Perches wrote: > Make the functions match the prototypes in > It's defined to nothing and useless Uhm, why not make it useful again and define it to something like: #define NORET_TYPE __attribute__((noreturn)) except I guess that should come after the function name, not before. Annotations that tell a particular function is not supposed to exit seems useful to me..