Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp528606iob; Tue, 3 May 2022 04:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpFGdjuaKC09G/aagoXE3myyDt0mQoDCpRRa7EGsBy1GxEcxKG1le07ZozYGeMzW+qhWrV X-Received: by 2002:a05:6512:c19:b0:472:5d07:c962 with SMTP id z25-20020a0565120c1900b004725d07c962mr8751980lfu.569.1651576395096; Tue, 03 May 2022 04:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651576395; cv=none; d=google.com; s=arc-20160816; b=Za04v2BlqCW6N2fuzgoJN12iDqd2Gc6StxArVNt08/NFVDlvlJBNw1y5EK1YwC4nK8 cfWoPcVewFrR8k/TwEgL+GRfuuzJiozpp2XBBgC7wNhTmORaIVEl1BYAy4rURwiFQfqe BmFZX/4bgbqmRiqKMGdtyOyi23GePVgu5Tn61sFevwxBLTCihP9SWtzEeKF5WPsrM1Mh j8WumRPtogJy8EH+HbaWBt58s2SsPZ8yTLkWnXwODhAF00fdZpTC9NbnSzApH+iLBWef jYyhUqNO2CNEhcToDAgbduMax+N8CoLPpeT02tXEkxibK9zkIg19JLv5GwJo2/ydu5j0 5ibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=B733mb1VwJ4Po1ZjvWFT4qqnB7EjVsgWcp+Y0H4ffHY=; b=nxLK8SmFYZzhvHgIntURr7qXG+DcKnjzx+43U9erSXGHQ8TwN3GoMupKvLEFgOhIfo qwVxPr+u13I9eIBCIDxNEzB1cWsSDg+niThSvV1+bDPnZiChBszigvBKZptr7h8Y4O5P o/jCsYRI4u7vHwQyrJqmfcUQ6mxLrxqbC99f/7EHGL3g7AE8u/joW8UWN7Rqhca5Hllt SfLyHroXni3qukoigZVkZDWQ/hZgVAiXjDU+qgleBnKQUZctA0JenOy7Mg2qAxr3zwxV Nnis+3ZoDoajs2+amI3AvOf+MBrGEiUVonOMyWJA33z+VL7pAGLFudz4AoIeqcpPucTk BpwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a2e7c0b000000b0024dadc1fc90si14788881ljc.330.2022.05.03.04.12.47; Tue, 03 May 2022 04:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232697AbiECI0n (ORCPT + 99 others); Tue, 3 May 2022 04:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231240AbiECI0m (ORCPT ); Tue, 3 May 2022 04:26:42 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 76EDB29800; Tue, 3 May 2022 01:23:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D8A15814C; Tue, 3 May 2022 08:19:54 +0000 (UTC) Date: Tue, 3 May 2022 11:23:09 +0300 From: Tony Lindgren To: Arnd Bergmann Cc: kernel test robot , kbuild-all@lists.01.org, Linux Memory Management List , Russell King , linux-omap , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH] ARM: dove: fix returnvar.cocci warnings Message-ID: References: <202205031017.4TwMan3l-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnd Bergmann [220503 08:12]: > On Tue, May 3, 2022 at 9:30 AM Tony Lindgren wrote: > > * Arnd Bergmann [220503 07:18]: > > > On Tue, May 3, 2022 at 4:45 AM kernel test robot wrote: > > > > > > > > From: kernel test robot > > > > > > > > arch/arm/mach-omap2/dma.c:82:10-16: Unneeded variable: "errata". Return "0" on line 161 > > > > > > > > > > > > Remove unneeded variable used to store return value. > > > > > > > > Generated by: scripts/coccinelle/misc/returnvar.cocci > > > > > > > > Reported-by: kernel test robot > > > > Signed-off-by: kernel test robot > > > > > > I checked the patch, and unfortunately it is wrong, the current code > > > needs to stay. > > > The problem is the SET_DMA_ERRATA() macro that accesses the > > > local 'errata' variable. > > > > Yeah this one keeps popping up. Maybe we can make SET_DMA_ERRATA > > into a function or have it at least change it to set the errata > > value. > > I would just remove the macro and open-code the assignment, which > I think makes it more readable to both people and tools. Yeah agree after looking at the macro :) Regards, Tony