Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3816519rwb; Tue, 8 Nov 2022 08:40:55 -0800 (PST) X-Google-Smtp-Source: AMsMyM6jkHDxjIcShsAi9/+NslD7KT4jsEXSUfx02dTS2vT6g3O8E2wHz8AYH22YZtnV/DvBcBhk X-Received: by 2002:a17:906:bceb:b0:7ae:75e:3929 with SMTP id op11-20020a170906bceb00b007ae075e3929mr32423315ejb.400.1667925654773; Tue, 08 Nov 2022 08:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667925654; cv=none; d=google.com; s=arc-20160816; b=oNBcpNDCPrr8dUz+ufUhOeVr15ZYHzKotfloq7Xx+/9NJ5/7PlFygPWxgkRU+gMqzl bfbqmFpswYdnU1iaUwcdcw6+rU/Jrlv9+O6wCWRbNDlfDZiTF0YAmnPu01n0FnkjDwJV /Q3i8S2ASLxfD2YCyxxjl1u6k7jwwUIcWPxRmtCqPBBJjEF/Nrtk4UHlmem8sqJtUWMV tdXEsrOZk247rnSPGAZk3ngxVDq4Iootoffx18C6TCAhGtPdP8twgU8997WhQPK60gCy l6hT2VOI9B/eHnbu91UIxT2Tdci4dgV2xSJglaSl6iAZFP1+b8corXuZPZZIRr2d1Wuu Whsw== 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=11wH3muDdNXbQuskjph3+PS52ZAno0n78Bf0q3BZ6As=; b=NLLuWDQNO3SceyftItUYYJkSjfxaZJByDH6McxwMdYfE+vQ0sCRfodqSzukboHrPfG /IkHebsL5cVfzfc20rWa56yT/Y/AD6SazjJIXqFG+bZcnE3FQUM5VeGtGF5gvwPPXUqb HRWFNOcHn/mwOXcIFT8HRInYxCkfI1CIsPX6EzAMVBn9p/eZT9X5UYVNwlHgDuCFy2rl mfJ4k/uIxvAQpwGQWQxdqnAtbFw4dccDeKkbK/TUChmLT6go4yE7nhiPm629TQFesY0Y OuTPNMJqMe13YpvtULGicrRHCKdhRP9mMIZyrzqcpdGBH4bAUnbv+pALH79jb3xP9GPT Tp6w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt9-20020a1709072d8900b007825bd02a6asi14106799ejc.54.2022.11.08.08.40.33; Tue, 08 Nov 2022 08:40:54 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234165AbiKHQGH (ORCPT + 91 others); Tue, 8 Nov 2022 11:06:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232035AbiKHQGF (ORCPT ); Tue, 8 Nov 2022 11:06:05 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A2EA1EC7F; Tue, 8 Nov 2022 08:06:04 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E197C1FB; Tue, 8 Nov 2022 08:06:09 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 10D103F73D; Tue, 8 Nov 2022 08:06:00 -0800 (PST) Date: Tue, 8 Nov 2022 16:05:58 +0000 From: Sudeep Holla To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Gavin Shan , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , SeongJae Park , Jakub Kicinski , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH 2/5] cacheinfo: Return error code in init_of_cache_level() Message-ID: <20221108160558.ee7etff5oom57ddd@bogus> References: <20221108110424.166896-1-pierre.gondois@arm.com> <20221108110424.166896-3-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221108110424.166896-3-pierre.gondois@arm.com> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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, Nov 08, 2022 at 12:04:18PM +0100, Pierre Gondois wrote: > Make init_of_cache_level() return an error code when the cache > information parsing fails to help detecting missing information. > > init_of_cache_level() is only called for riscv. Returning an error > code instead of 0 will prevent detect_cache_attributes() to allocate > memory if an incomplete DT is parsed. > Reviewed-by: Sudeep Holla -- Regards, Sudeep