Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp427453iob; Tue, 3 May 2022 01:09:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF1t8gfiXXab1f/+XJ25VcZWA+AdtXIZLiqvrfU6MFn37QPzuRyITqIt0Ama9+7pSpb8hC X-Received: by 2002:a63:493:0:b0:3ab:3dda:7e90 with SMTP id 141-20020a630493000000b003ab3dda7e90mr12998538pge.106.1651565379225; Tue, 03 May 2022 01:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651565379; cv=none; d=google.com; s=arc-20160816; b=jHPUlo3x4jNWBolrLIGCOL034YJb81aQ+XO0L2Yg+hskhzPfWxUZNJQJDvZVDhQngq wjB6dMkQjCAVJ1r9kXQGpcghqsbxObExmW7k2fyN0L1uZvjivRZQcTyMax1yZDuUbCos tOpNAPEpDYD/jwHVZA5LS1XHmdSCZ6AcE0D32iVWC7GWBhjboi5aa4ZVlhxDuB59Jv+k 0KQu8W95y4YveLPAEPpOCrA6z/RoW9peT+62NP3Nq5O5fHNs5kRb2p6ZoNMlSZ8zv7oN 2+M6uOH+mqxKeNz5k6jeLXp5x4iOhFVuX5zPbbkWYAi7uuKFbYRq/UasVffyKIQsfmeK +U+g== 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=bcnJ20RAHCYeIv1AZ1sbIvL2M1Q/UrwcxPWb/Cwo7nE=; b=drbuVhs4Io3MJgYgahDm6Zww5cHj2p6tgr6+wucfBPdzu0jHEwgrccKYHEevYSiWu9 JsiwP6qdKiYdoP/8DbVJmQqzviU6wSiUIRnqEUc4L/gCiTXZjKYIj2bAdCI4DHNkC9wv YKhsD6JBIrH7zihwzUMPthUljilYNiui6qnBpMgf4o6KdjEo3Lk2fERiGN6CEcy95wIH fryT3j2h3TRxcHHzxe87KlDJ5dRVj2nJB9De/P3By8UowWrP+QQI30QWkm6BNwktYjlv ZZ3Hezld8e5hQaWlzYp3rAAhhMMPY4a5nwMNX7g710dfL1eKbOG8OafcLERfdr29IGgN zQlw== 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 g14-20020a65580e000000b00382b21d82a2si12442664pgr.366.2022.05.03.01.09.24; Tue, 03 May 2022 01:09:39 -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 S232291AbiECHeU (ORCPT + 99 others); Tue, 3 May 2022 03:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232281AbiECHeO (ORCPT ); Tue, 3 May 2022 03:34:14 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40F34369FF; Tue, 3 May 2022 00:30:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id BAA5C807E; Tue, 3 May 2022 07:27:25 +0000 (UTC) Date: Tue, 3 May 2022 10:30:40 +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 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. Regards, Tony