Message ID | 4fbcd4f79be9928a093e2a7ac3609beabdf7a8ce.1444724645.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBB3UA6OYAKGQEGNVOZTQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 85FDC23001 for <linaro@patches.linaro.org>; Tue, 13 Oct 2015 08:27:27 +0000 (UTC) Received: by lbbpc3 with SMTP id pc3sf5261120lbb.2 for <linaro@patches.linaro.org>; Tue, 13 Oct 2015 01:27:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=cwyZCi7fA/0HnbXWbqd9/P6hDulsdh4QlcqurzEvybM=; b=S6iEwiViYqcwkYCPTVNrzmWrWbSae33Ti2cllp9eVTcAPboquvI89Jec6RhLlKeSzb rwvQeXrKcsixd9AZwC/OIKBYxw9yClaWp5w4pkcED9lIPEbXtp7D0utNyCiWRwsz2stI S0f6U71wcvBg5hSqExrfCad6+yBrQF3uv4i0wPB/DTyU55hUDXZRZ823MiSO6as0ewcr czB6KSqMboXoMSGmdZslqBtzqxWWqAsxo9b/oM1v1zdxhFWRuuSs7caKGIFBKtemXt3s APr2GwYYDWtLyfjR/D9Jr0fnMBoOjYys3PfeDbjlL7uQX57IcpYoWxgvo4+1xaLZPxZJ k5gQ== X-Gm-Message-State: ALoCoQm+Qm+qX0aGP8Pt47eoE2q4ByZmFu31xkANs131nvVNYnIsn1PXhOnAtLtwkRWe8NtOQ7hc X-Received: by 10.112.181.10 with SMTP id ds10mr6557720lbc.3.1444724846422; Tue, 13 Oct 2015 01:27:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.28.65 with SMTP id c62ls353433lfc.71.gmail; Tue, 13 Oct 2015 01:27:26 -0700 (PDT) X-Received: by 10.112.52.40 with SMTP id q8mr14502545lbo.100.1444724846252; Tue, 13 Oct 2015 01:27:26 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id ta8si1402545lbb.115.2015.10.13.01.27.25 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2015 01:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbwr8 with SMTP id r8so10789465lbw.2 for <patchwork-forward@linaro.org>; Tue, 13 Oct 2015 01:27:25 -0700 (PDT) X-Received: by 10.112.151.106 with SMTP id up10mr14951219lbb.106.1444724845799; Tue, 13 Oct 2015 01:27:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1982470lbq; Tue, 13 Oct 2015 01:27:24 -0700 (PDT) X-Received: by 10.66.55.41 with SMTP id o9mr39606633pap.44.1444724844775; Tue, 13 Oct 2015 01:27:24 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sn2si3410156pac.146.2015.10.13.01.27.24; Tue, 13 Oct 2015 01:27:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbbJMI1W (ORCPT <rfc822;pingbo.wen@linaro.org> + 30 others); Tue, 13 Oct 2015 04:27:22 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:36192 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbbJMI1U (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Oct 2015 04:27:20 -0400 Received: by pacex6 with SMTP id ex6so14629763pac.3 for <linux-kernel@vger.kernel.org>; Tue, 13 Oct 2015 01:27:19 -0700 (PDT) X-Received: by 10.66.184.203 with SMTP id ew11mr38777913pac.24.1444724839630; Tue, 13 Oct 2015 01:27:19 -0700 (PDT) Received: from localhost ([223.227.239.124]) by smtp.gmail.com with ESMTPSA id hq8sm2344763pad.35.2015.10.13.01.27.17 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Oct 2015 01:27:18 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: trivial@kernel.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH V1 resend] err.h: add (missing) unlikely() to IS_ERR_OR_NULL() Date: Tue, 13 Oct 2015 13:57:10 +0530 Message-Id: <4fbcd4f79be9928a093e2a7ac3609beabdf7a8ce.1444724645.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/include/linux/err.h b/include/linux/err.h index a729120644d5..56762ab41713 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -37,7 +37,7 @@ static inline bool __must_check IS_ERR(__force const void *ptr) static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) { - return !ptr || IS_ERR_VALUE((unsigned long)ptr); + return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); } /**
IS_ERR_VALUE() already contains it and so we need to add this only to the !ptr check. That will allow users of IS_ERR_OR_NULL(), to not add this compiler flag. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- @Jiri: You have applied all other patches, but this one. Can you please apply this one as well, as all others were applied based on the assumption that this one is applied. :) include/linux/err.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)