Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751747AbbGaLEb (ORCPT ); Fri, 31 Jul 2015 07:04:31 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:36585 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbbGaLE2 (ORCPT ); Fri, 31 Jul 2015 07:04:28 -0400 Date: Fri, 31 Jul 2015 16:34:23 +0530 From: Viresh Kumar To: "Kirill A. Shutemov" Cc: Vlastimil Babka , akpm@linux-foundation.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Steven Rostedt , Hans Ulli Kroll , Alexandre Belloni , Oleg Drokin , Andreas Dilger Subject: Re: [PATCH 00/15] trivial: Drop unlikely before IS_ERR(_OR_NULL) Message-ID: <20150731110423.GA899@linux> References: <55BB42B5.5070409@suse.cz> <20150731102310.GA31850@node.dhcp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150731102310.GA31850@node.dhcp.inet.fi> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 31 On 31-07-15, 13:23, Kirill A. Shutemov wrote: > On Fri, Jul 31, 2015 at 11:41:09AM +0200, Vlastimil Babka wrote: > > On 07/31/2015 10:38 AM, Viresh Kumar wrote: > > >Hi, > > > > > >This cleans up the usage of IS_ERR(_OR_NULL)(), where the callers have > > >added additional unlikely compiler flag to them. It also fixes the > > >definition of IS_ERR_OR_NULL(), to use unlikely for all checks it does. > > > > [+CC Steven Rostedt] > > > > Any idea what the compiler does in the case of > > "if (likely(IS_ERR(...)))"? There are apparently such cases in the source. > > We have two cases in code: > > drivers/rtc/rtc-gemini.c: if (likely(IS_ERR(rtc->rtc_dev))) This one is already fixed in my series (sent a v2 to fix changelog as well) > drivers/staging/lustre/lustre/obdclass/lu_object.c: if (likely(IS_ERR(shadow) && PTR_ERR(shadow) == -ENOENT)) { And I have sent a patch for this (in reply the your mail). -- viresh -- 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/