From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753967AbeEaHOq (ORCPT ); Thu, 31 May 2018 03:14:46 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:37774 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753825AbeEaHOn (ORCPT ); Thu, 31 May 2018 03:14:43 -0400 X-Google-Smtp-Source: ADUXVKIBploSguuaV4PmttaWTpT+N2fYWAprffJxrhXHbnAqpois55c0eWw3kQ2FHcu5JblTcEf0dg== Date: Thu, 31 May 2018 00:14:42 -0700 From: Joel Fernandes To: kbuild test robot Cc: Joel Fernandes , kbuild-all@01.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Boqun Feng , Byungchul Park , Erick Reyes , Ingo Molnar , Julia Cartwright , linux-kselftest@vger.kernel.org, Masami Hiramatsu , Mathieu Desnoyers , Namhyung Kim , Paul McKenney , Peter Zijlstra , Shuah Khan , Steven Rostedt , Thomas Glexiner , Todd Kjos , Tom Zanussi Subject: Re: [PATCH] kselftests: fix ptr_ret.cocci warnings Message-ID: <20180531071442.GA214576@joelaf.mtv.corp.google.com> References: <20180530000500.257225-9-joel@joelfernandes.org> <20180531064535.GA53792@lkp-ib04> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531064535.GA53792@lkp-ib04> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 02:45:35PM +0800, kbuild test robot wrote: > From: kbuild test robot > > lib/test_atomic_sections.c:66:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Fixes: 3b0e47f0ade1 ("kselftests: Add tests for the preemptoff and irqsoff tracers") Seems a simple cosmetic/style fix. I can fold it into this patch. thanks, - Joel