Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5661824rwb; Wed, 7 Sep 2022 06:19:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR5rEHrZUwXvmcLwy40CKNtAmMbkcp9swm8KdGZigD/PY+JApM96/wDBcYYd/MsNU5z/ADdm X-Received: by 2002:a17:90a:ac2:b0:1fd:fad1:e506 with SMTP id r2-20020a17090a0ac200b001fdfad1e506mr30749985pje.66.1662556756556; Wed, 07 Sep 2022 06:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662556756; cv=none; d=google.com; s=arc-20160816; b=Svq5miivnf9tWnxIGJpg2Wvbclg5HAnpr1TPqu18ul3FjJk1evqVv8h8vJNINhrg+Z 3TZeNJrXL5DDA5N5H25xaWMlK7f4bmjD3yVW3vvd1h14gk4oOShBRBEiGib8mc7JOioU mqfFKeHbIshO6Qsan4RIaYhfX5x2BQtMe7jJgiDs+JrU75ECHFWPhnUsVnKardrH3pqb /06a9lASRwwKDeFiet/CWfjLMurIeHKgo74wFN+tbG9GW2IEW43BtEigZ9Cm1KE/2LeJ CJgES7VvhRIA8wfI/OqbDWc7Rxf4jB/Mg2VBWQuxWZpqI0k/p7vnMfAtRsWQw3e0FJ7R aHtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PJTIn1m5zazzgTH6r4/BGAp9DCVixJ7EjUp9tLhw3xA=; b=IFMcZ6OT7KzFIacQXa2Ni8xBKHtFSz8G3u8G79vypUZjRR/BxEwa41VssVHNulfbZ2 inOvSPvw19S8b6aWkHYpHMXQSwlCvI7t3RIvOjm6KQuBCvvxOMETCk8CM8DbEb2xEgQK /vtWUeo/OiFGqOruw2N9iysiHOJRpkC5/6yloQKZyuNqKJMqPzJdZa0J1+DvA9UCCMg8 lvfJ3VuKPyAikuUTF2quNoicsBDV42Uya6PK960EwHoKEqKamUjeyaH8CpJHKpweaqbc ffwhwKo21y9HKa82nupO0S6Wha9oADYWxuQhKE84swloXiWTHZcCbuS8sM25dTor2zfT LPPA== 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 e129-20020a636987000000b0042b23090b1csi16159026pgc.197.2022.09.07.06.19.04; Wed, 07 Sep 2022 06:19:16 -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 S229683AbiIGNPz (ORCPT + 99 others); Wed, 7 Sep 2022 09:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbiIGNPe (ORCPT ); Wed, 7 Sep 2022 09:15:34 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B23B8048D; Wed, 7 Sep 2022 06:15:15 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1oVutd-0000YC-00; Wed, 07 Sep 2022 15:15:13 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 8E9DDC0DBF; Wed, 7 Sep 2022 15:02:20 +0200 (CEST) Date: Wed, 7 Sep 2022 15:02:20 +0200 From: Thomas Bogendoerfer To: Alexander A Sverdlin Cc: Yu Zhao , Joe Perches , linux-mips@vger.kernel.org, Corey Minyard , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] MIPS: octeon: Get rid of preprocessor directives around RESERVE32 Message-ID: <20220907130220.GA17817@alpha.franken.de> References: <20220906083239.10163-1-alexander.sverdlin@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906083239.10163-1-alexander.sverdlin@nokia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,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, Sep 06, 2022 at 10:32:39AM +0200, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > Some of them were pointless because CONFIG_CAVIUM_RESERVE32 is now always > defined, some were not enough (Yu Zhao reported > "Failed to allocate CAVIUM_RESERVE32 memory area" error). > > Removing the directives allows for compiler coverage of RESERVE32 code and > replacing one of [always-true] "ifdef" with a compiler conditional fixes > the [cosmetic] error message. > > Signed-off-by: Alexander Sverdlin > --- > > Changelog: > v2: > * Reduced the scope of addr variable > > arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c | 4 ---- > arch/mips/cavium-octeon/setup.c | 27 +++++++++------------- applied to mips-fixes with Fixes: 3e3114ac460e ("MIPS: Introduce CAVIUM_RESERVE32 Kconfig option") added. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]