Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp533660iob; Tue, 3 May 2022 04:20:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGxfeyWjnXnB1xyIDtgPmzoieoG1DVDLmt0X16ELJ6kKH53sHVNa+zI4yxvx9R/I7ncsdS X-Received: by 2002:a17:90a:e008:b0:1d9:2f9a:b7f1 with SMTP id u8-20020a17090ae00800b001d92f9ab7f1mr4086162pjy.173.1651576856158; Tue, 03 May 2022 04:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651576856; cv=none; d=google.com; s=arc-20160816; b=LvRj1bBeuuEDEf8OCz1/YR/HalQnJiMkIyHC3/ocyGcj0AEKDY5tOcPiCvnOBEWmpa g74QlNrLmCcmB0TngQ8Ss7uWCwxfrkveGZ1+01s7xUJj5Dw8wUM+9PxA+kOicY87vJQh EpWnAJd2gyibq0Sxaqm4S348/wXhW6fKVL6lP7+8kS+U05E2dd2/PIDgrRlmN75A/NPi z9kkNiMEQcLGV33IqQfgBW0b4sZLogsK7zgm5H9t6NEcNfQ6Wzi3L1bVWd53xc3hnPwy W6mIaXgSHAnWjK6hvBfKxCWsaqykDWIu/nw+orRI6Mpfo5JdRxu59NKXT1JUVHLWYkEn dmkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=tcvOKOqY5guNEywXsxdeTK0DaF4UBovj/Gq3imZNAJA=; b=DizmoO6UEWPzEhwgJtUHfYUOjwWtDkY6eTPf47xEyU7bqS9FFlv2bJDhudlrRjyPJA VDOseTP/lPhaj0621haWed6go0KeLPwBg1lso7Ag5iPUVZu59UGe1OOuL365YSHZKLyK J4WLhUgIyDE1GMT04pLaIQJbiuPpvt0MeiNQNLQTlWF31RoRYTuBNwDXCEeuH/VZHKf2 ubb6FGy7dG439FMyjR+57aXBaPPr8GCK71d1T2oQE9KM7sfODS+BsYEcpI+9vTN5ovkG 8f8moqt7O/rrVfSqO/Iqwtb1k+ZabBlcXMrUBMgz8LAQLVzO6s/TR4f9vOormcc2onJ7 +uag== 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 v202-20020a6361d3000000b003c2677ce295si2367903pgb.171.2022.05.03.04.20.40; Tue, 03 May 2022 04:20:56 -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 S232791AbiECI2L (ORCPT + 99 others); Tue, 3 May 2022 04:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232773AbiECI2I (ORCPT ); Tue, 3 May 2022 04:28:08 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 351DD29800 for ; Tue, 3 May 2022 01:24:36 -0700 (PDT) Received: from mail-ot1-f47.google.com ([209.85.210.47]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1Md66H-1oLgcC1DYR-00aADF; Tue, 03 May 2022 10:24:35 +0200 Received: by mail-ot1-f47.google.com with SMTP id 31-20020a9d0822000000b00605f1807664so8152468oty.3; Tue, 03 May 2022 01:24:34 -0700 (PDT) X-Gm-Message-State: AOAM53074jkgLK+v5S2QeAd1nHKqbiNBsFoPaeAmpveEG9ztG5S9Fbbn +xAKNUreKB60yNmbly/v3+td1gGxEsM+b2flrwQ= X-Received: by 2002:a81:9213:0:b0:2f6:eaae:d22f with SMTP id j19-20020a819213000000b002f6eaaed22fmr14611680ywg.249.1651564406792; Tue, 03 May 2022 00:53:26 -0700 (PDT) MIME-Version: 1.0 References: <202205031017.4TwMan3l-lkp@intel.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 3 May 2022 09:53:10 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: dove: fix returnvar.cocci warnings To: Tony Lindgren Cc: Arnd Bergmann , kernel test robot , kbuild-all@lists.01.org, Linux Memory Management List , Russell King , linux-omap , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:74Mgwc2DUG5mMwrZ6MNsmoljzN6pyJ9yjLycxRNFA3NqtnvQWvr +XXc1CwiRNmjo/CHNnk9+yENODqvKGuJ7B71HiOOTee+ifhGGaplPvstsZEDQr8Co3QMA6p 5Uk5Xn1+YkJ0lZaorHRMpaPbP4yJtzAU0rnEvz1bCxIg7lyZqZnBc1HbBjBZzINP2n/BLLF TzMmA22OUqRjjhUusxGIw== X-UI-Out-Filterresults: notjunk:1;V03:K0:IhXJ72qjzsg=:ai2zbYV0s3CvosNkOJkCC+ I+UKncQ/z1HuV8EVlSldc2dCNSQCKSO1i9E9aHk3mlczCjBGOs2UCooQuUI+2+EB+ncRlQmkD lM9NSrQqPjnr16wmBNq/Dl7w/7rWUv4OlOMbaHKnrfdu9Yw773DwIZZEsqBjl3n+kFQaeg/F9 EE+xs1+Z39JkpiYG5jyxZHgcGlWtssL1hcQZ8wFEl3m03TzMiwryMU1+kPdidX77wPQQknbhZ aJcNJX45pIYuRGCA8pfir82kO9n/D720A4/ctf6g0Pi3z+s/Zh3G7GBZhvO8AOxJiFK6SfI0U qSHfw5qGeoOmxVtOezVW6jjZ8vdY7TTrpbpju+dzrUrjsN9dg4Jf/2Z9ZebtNc5TRGdsIlPlA my5ECci3ACDC90RZFupwgbXMOzQC0Ojf3RHTq9Q4I4jAD6f2Kk8zu1WkhbWbxO3kVYRxTIBsT 6fguHE6+FBeCSQS0MJnFENq7JLiVcauVdzmm1erigXqhe8V74klZKSifl4BNOkh787CKlLKAz DConUfj9JOKeIJUBAC7C+/ZcYjG6wmX7s7e/8aSrWSrKNMn3KE175Ur3Mt+HfaTUakXpIAH5Z 4XinPKuY/XHoXTHZbyaMaKoKirw0gCJCiwHz0BsQwQG5H3gJL9hnW/1AHCAgvd/8qfvu1NIjl PpJkP1tX5RGRanNWo30aZ2Zi4xtK/ZX+mHiUHwc6IxrvpLGxkwk7iu5Quc8kAteA5wrc2ST+t kQhE44+lwERrfvNwLS+rBUd7SFUc1iydKzdJP3C2RMSndS41VNZiFp5a9wpP99loOEZfPOszf JyPYr2AqPiGhxeJbm/BtHkpQghoB3/AnkBOsGSj5GNXyHhiSi8= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 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. Arnd