Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262981AbUKRXTw (ORCPT ); Thu, 18 Nov 2004 18:19:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261166AbUKRXRz (ORCPT ); Thu, 18 Nov 2004 18:17:55 -0500 Received: from siaag2ae.compuserve.com ([149.174.40.135]:9280 "EHLO siaag2ae.compuserve.com") by vger.kernel.org with ESMTP id S262997AbUKRXQU (ORCPT ); Thu, 18 Nov 2004 18:16:20 -0500 Date: Thu, 18 Nov 2004 18:14:06 -0500 From: Chuck Ebbert <76306.1226@compuserve.com> Subject: Re: Six archs are missing atomic_inc_return() To: Anton Blanchard Cc: Alan Cox , linux-kernel Message-ID: <200411181816_MC3-1-8EFB-D509@compuserve.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 30 Anton wrote: > $ grep -l atomic_inc_return include/asm-*/atomic.h I was assuming all archs used a macro for this, so I used: $ grep 'define atomic_inc_return' asm-*/atomic.h But your grep could have found this: /* FIXME: this arch does not have atomic_inc_return */ and returned a false positive. What I need is a C-aware grep: $ cgrep [--definition | --comment | --usage] atomic_inc_return asm-*/atomic.h to search definitions, comments, and code body respectively. --Chuck Ebbert 18-Nov-04 18:08:49 - 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/