Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp708724pxb; Wed, 6 Oct 2021 13:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKPyGArIgg7THIeqITFel3SczTCb301Mf49UERxt5pyg3bHntBqjL0lHgw152kjfK2V49m X-Received: by 2002:a17:902:a50f:b029:11a:cd45:9009 with SMTP id s15-20020a170902a50fb029011acd459009mr366220plq.38.1633553197893; Wed, 06 Oct 2021 13:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633553197; cv=none; d=google.com; s=arc-20160816; b=cAMW/zsz8d1ip9dGgltxcT7w5fUf7eREY2LSI1IBD3bejLoiEZvqdNvtZd4fz06HG5 yhPpi6SWpFhU2bcTHcHwiOpSzKo/QUs82uazLEUDC7hvmte6NLoKu7/NtUmWeuRDgdRS dIAjiD9iSfmP6syPLqK2LkokSHY4T3vQFXQtm3wtaGlEbnfKbPsEVnp0zzcbNxMSHfJe 3jFppzQpFnkXaRjJGsGt1GDozJ6eVMm4xB6D155s7NkJwK477Hv5VdditY+EeaKpENEo L+YwEEpcv/bbVK2FZjHbfe3aNCE1EiktFavOMtpMbuzDfCwwA2NvHHYuAvEoXi7ktA3K SO8g== 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:dkim-signature; bh=uukXjZUQ/w+EOWxXqSK1+sdvRdmpSRZkmYypGawzIsM=; b=U2J3o1u7UYV2uDC8MT5wJPDCl72bFZ+kBt0aTadC5140R1FuEaHUNXBTWxxaBltP4A 8TwaJSpf4JL/H6+jaJ2ZLe+PjNtiARULcatA3j50e260V/txHwz/O4MI9LMy4Op/+9W7 bSDtnBPDnYQMFY0RBPhggGZC+GRJGWlNZnoX93Lx99mDkitqekBU4jZ8QtCOGEs3+HS+ cpxhFITJmeTFsETCtuooGbjBS+jriK1TMSY0GSYiM/fIDIH39KmAoSqBeDtsMhPh/CqI m+kmEzQGV6Su0gpLXzP0ktqAG9TZjmQ7t1/xq2ZlD3IgpC/qDp6AH6smPVpxbT0IUeNv z9jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QT+moIpp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si7195126pjl.137.2021.10.06.13.46.24; Wed, 06 Oct 2021 13:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QT+moIpp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239524AbhJFUp5 (ORCPT + 99 others); Wed, 6 Oct 2021 16:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239511AbhJFUp4 (ORCPT ); Wed, 6 Oct 2021 16:45:56 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5E5DC061753; Wed, 6 Oct 2021 13:44:03 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id ls18-20020a17090b351200b001a00250584aso4834837pjb.4; Wed, 06 Oct 2021 13:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uukXjZUQ/w+EOWxXqSK1+sdvRdmpSRZkmYypGawzIsM=; b=QT+moIpptwRsvjJhH6SoVjzQTZZ76DE7Nw9kqS29J/CEKIqSBkKNAPsy0jT6+cMT5r 0B+0+QxpzmLLa3r7jEXnwxbIQgJkwMi/us4S+81A070jhHgCr7uQ+fbqDmEae7tJyZrW KXcNV8SnxYIgrHqlro0WODjOtXLW8X88ZHdiubGxyQ6s4VSefvMST/UT52GjNmBirP7J vPJrn4/h0HeMwFA9oFdn+ECv8WDQE4jLb4GwOzBBu4isPwb9sn2ye3J8U1vaLKqwIt6z g4sBC+3kK0eokeo5x1JO49TmdiQsp14FxekFKZ6n9Z+Jk+BJ4arhTM0CkIcl8c56mqWF a5Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uukXjZUQ/w+EOWxXqSK1+sdvRdmpSRZkmYypGawzIsM=; b=VEFyg7RWWiqrBN1ghf0WFRGdya2NV8YeXc9yTR4umQ+RrbZmQMnKUMYk8M/hqdnAx9 K4TGUGQ0ku+OwqDO4QXMmIPgXHNBiMVjRjkAJuiCrGyTpc5x1MXP4+815LugJU/VuzBi IqruQBBdfsjTnt5tGmGhd88L5AUoYYv34nPUMel02xhi0gxIbABqd+xUUpuNikXr24dZ VLMX65Pcl9NFDvaCjr1vOQdC58utfmHXSH+aKSSP0/nhZhaIaKe36FgkAt3ffrKDUdu5 Y23a7SOxGTK2pfKN7NXyvcH7V+1bUFsOvlwh/gOyLVbDAl917qiYCUrGD95UapPmEDQ7 EZ9w== X-Gm-Message-State: AOAM533+Mmt0p51sP+xx9MaukHN+UPZrkiUr54ioP/lKQLYJI2phPS3z PlDjOgdiLE9rAi0JozSsR7w= X-Received: by 2002:a17:902:bb81:b0:12d:a7ec:3d85 with SMTP id m1-20020a170902bb8100b0012da7ec3d85mr328965pls.17.1633553043180; Wed, 06 Oct 2021 13:44:03 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id q8sm5806904pja.52.2021.10.06.13.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 13:44:02 -0700 (PDT) Date: Thu, 7 Oct 2021 05:44:00 +0900 From: Stafford Horne To: Rob Herring Cc: Russell King , James Morse , Catalin Marinas , Will Deacon , Guo Ren , Jonas Bonn , Stefan Kristiansson , Michael Ellerman , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , x86@kernel.org, Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Rafael J. Wysocki" , Frank Rowand , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 06/12] openrisc: Use of_get_cpu_hwid() Message-ID: References: <20211006164332.1981454-1-robh@kernel.org> <20211006164332.1981454-7-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211006164332.1981454-7-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 11:43:26AM -0500, Rob Herring wrote: > Replace open coded parsing of CPU nodes' 'reg' property with > of_get_cpu_hwid(). > > Cc: Jonas Bonn > Cc: Stefan Kristiansson > Cc: Stafford Horne > Cc: openrisc@lists.librecores.org > Signed-off-by: Rob Herring > --- > arch/openrisc/kernel/smp.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/arch/openrisc/kernel/smp.c b/arch/openrisc/kernel/smp.c > index 415e209732a3..7d5a4f303a5a 100644 > --- a/arch/openrisc/kernel/smp.c > +++ b/arch/openrisc/kernel/smp.c > @@ -65,11 +65,7 @@ void __init smp_init_cpus(void) > u32 cpu_id; > > for_each_of_cpu_node(cpu) { > - if (of_property_read_u32(cpu, "reg", &cpu_id)) { > - pr_warn("%s missing reg property", cpu->full_name); > - continue; > - } > - > + cpu_id = of_get_cpu_hwid(cpu); You have defined of_get_cpu_hwid to return u64, will this create compiler warnings when since we are storing a u64 into a u32? It seems only if we make with W=3. I thought we usually warned on this. Oh well, for the openrisc bits. Acked-by: Stafford Horne > if (cpu_id < NR_CPUS) > set_cpu_possible(cpu_id, true); > } > -- > 2.30.2 >