From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 715F9C433F5 for ; Tue, 3 May 2022 07:30:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B49736B0071; Tue, 3 May 2022 03:30:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AF7FD6B0073; Tue, 3 May 2022 03:30:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E6AD6B0074; Tue, 3 May 2022 03:30:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 90B8E6B0071 for ; Tue, 3 May 2022 03:30:43 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 69C3F121F94 for ; Tue, 3 May 2022 07:30:43 +0000 (UTC) X-FDA: 79423609566.03.43A0AA8 Received: from muru.com (muru.com [72.249.23.125]) by imf22.hostedemail.com (Postfix) with ESMTP id B5DC5C0077 for ; Tue, 3 May 2022 07:30:41 +0000 (UTC) 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-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: B5DC5C0077 Authentication-Results: imf22.hostedemail.com; dkim=none; spf=none (imf22.hostedemail.com: domain of tony@atomide.com has no SPF policy when checking 72.249.23.125) smtp.mailfrom=tony@atomide.com; dmarc=none X-Rspam-User: X-Stat-Signature: bbhb6pij3rf66co6jnj6ke9epp1ex9b1 X-HE-Tag: 1651563041-115788 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: * 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