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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF73EC433F5 for ; Wed, 5 Oct 2022 10:29:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiJEK3w (ORCPT ); Wed, 5 Oct 2022 06:29:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbiJEK3u (ORCPT ); Wed, 5 Oct 2022 06:29:50 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B2DC1571F; Wed, 5 Oct 2022 03:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1664965789; x=1696501789; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5E4QJjuCCvDQ9v5hxdicxtlW9u5VvqxJSbrtoVqnEOg=; b=17p32s08nbQ/0uGDfLKSQ1h8mkKDrKhlQC7NHFnQf8o54GQjK3mmMUcc Xra1RT4Yl+53bW9of0xjPjq4BjG0l9RMYv0+dd/ybOrMY4Nb+rbCZL3/1 iOTxJNLwO4AF42VO6xV7BDsQGVJ/2x97qMZ+Ep3jYo/9rmRsFU/b3fhav x7az5gAbB5M/AURfyMtGb2AFNdLJJXUWq8xT4mIyjZg6KYMHdJo9sryRh 5Mh0Q/lEMDMMKuEb6zEAj7Lc/My32oVSieCcM4iaUY7osFt3oWYWHTLBG lG/865rL7NLzrDsSDAEVZfDHmYdC8xByjV/4OLf0QZWw4skoSEVcQwGH2 A==; X-IronPort-AV: E=Sophos;i="5.95,159,1661842800"; d="scan'208";a="177122166" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 05 Oct 2022 03:29:47 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 5 Oct 2022 03:29:45 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12 via Frontend Transport; Wed, 5 Oct 2022 03:29:41 -0700 Date: Wed, 5 Oct 2022 11:29:20 +0100 From: Conor Dooley To: "Lad, Prabhakar" CC: , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH v2 2/2] soc: renesas: Add L2 cache management for RZ/Five SoC Message-ID: References: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221003223222.448551-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <5254a42c-9233-6f9a-eff8-33324a184d20@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Oct 05, 2022 at 11:20:40AM +0100, Lad, Prabhakar wrote: > Hi Conor, > > On Wed, Oct 5, 2022 at 10:17 AM wrote: > > > > On 05/10/2022 09:58, Conor Dooley wrote: > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > > > On 5 October 2022 09:44:56 IST, "Lad, Prabhakar" wrote: > > >> Hi Conor, > > >> > > >> Thank you for the review. > > >> > > >> On Tue, Oct 4, 2022 at 6:43 PM Conor Dooley wrote: > > > > > >>>> +static void cpu_dcache_wb_range(unsigned long start, > > >>>> + unsigned long end, > > >>>> + int line_size) > > >>>> +{ > > >>>> + bool ucctl_ok = false; > > >>>> + unsigned long pa; > > >>>> + int mhartid = 0; > > >>>> +#ifdef CONFIG_SMP > > >>>> + mhartid = smp_processor_id(); > > >>>> +#endif > > >>> > > >>> Won't this produce complaints from your if you compile with CONFIG_SMP > > >>> set? > > >>> > > >> No I dont see a build issue with SMP enabled, do you see any reason > > >> why it should fail? > > > > > > Not fail but complain about the unused variable. > > > > > > > Not unused variable, sorry but the unused 0 that it was initialised with* > > No, it doesn't complain (I dont think compilers complain of such > unused assignments, maybe I'm wrong). BTW I am using GCC 9.4.0. Do you > think I need to update it? Maybe it's sparse that generates those warnings, I never know which it is...