Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp739144pxb; Wed, 6 Oct 2021 14:27:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys4ZQyUBP55RZiQW3fCZtfKuc98QXWN+za9uqrpubb23y3VJQt7KW+sPNbW/AN7I1Wk1K7 X-Received: by 2002:a05:6402:485:: with SMTP id k5mr763948edv.257.1633555655383; Wed, 06 Oct 2021 14:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633555655; cv=none; d=google.com; s=arc-20160816; b=UWRnHBBxEKJG7lfe6d9ieXwY03PEon1gbB/D/jmrZcGQt2js484aXfwrBTSbP6FiZD DgVvoaJxXtNSDcihg83b5DUnKCDsBuDM+OB+Dj7GKhkyGkdoGHQ6ckrodr5uT+NvxKeS 6aqtesxN9WeS+vW416yTDSfmmqjfyIhEu36qDbFpft9zoxfH+5Ke3+rWuxhEjCDG4KPm H2/Pn7/+KJD7ri7UOVb1Jkjfxr2tAKSBJJ04FcqGctEqhGr1LlB3w4Or50JUiYim4Khq nK4OrxtPzFsNgd05pykd8xQgIRZl4dtBdXVHgXNxsNGRVCUGR+SXCmPLv6kdnIP6G+21 Yu9A== 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=e64UMCL2WVnOr2UI7AUcgF8cpI0jeUTyJjvzOQZ8YrE=; b=EYfdJtPLlXUlivgmnFXKtovTloA5Aufi9g3xrXeC+wsLJfT2pLvgvMHEXMl2pYsafJ 8iw1PSkYv2OYnQpXgKxzrI7nIdWSJGYIEJ+gQw1ELbo2+x8DN5eb434ugxNe3ueZWg0y TQAUfDcxw5suWEtGLwlKgYzsft+zu/KigAJINkXIVNnZixwJ51+I1gys2j7xvdX8eXpa 79JSQK7cO9PsIye/9APdETItMx0f3sNt+5Vau6xWtSTvesJVnXxDE27c3PK5ewUig8zN slq0HAe2UQu51HgtvWoEyb2LJKZK9YKz9lWPuYjaZC3h/d1DEzf41wpBqLHWn+bG6jIG vMEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UBSXKYjm; 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 e7si33183941edk.96.2021.10.06.14.27.12; Wed, 06 Oct 2021 14:27:35 -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=UBSXKYjm; 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 S239710AbhJFV1G (ORCPT + 99 others); Wed, 6 Oct 2021 17:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239706AbhJFV1F (ORCPT ); Wed, 6 Oct 2021 17:27:05 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF809C061746; Wed, 6 Oct 2021 14:25:12 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 133so3665956pgb.1; Wed, 06 Oct 2021 14:25:12 -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=e64UMCL2WVnOr2UI7AUcgF8cpI0jeUTyJjvzOQZ8YrE=; b=UBSXKYjm15FEKybh0KfefqRjd/fVs22AWYzwe2iCJvmOHscvoAutQW2HwE99YHZeWu vEtNDuMS9d78IGfnBrQ47YiMpXMPPhe6dbQyF9hg/uSAQDApFpiVmZ7RCXYk//sWXr1Q 0LSfp/P7/3d3pFfamzEH93p+y9SKpm/qjQxtZn4fAQUwleau5VdUB+9jn7Ku+OYnfnmC SnnK3Phc97T0RV6YdV7B/6OMV0qq1QjiJmwn6G9SBEM6VpE4qBOh3ESLF6KJAuPLSvNB EipYZeSbBljiqKzHr1N+foOdNe3WDWrdfrXbmYefd7v8ToBI7aLskwiFwDPpPQdD6I/S LWFA== 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=e64UMCL2WVnOr2UI7AUcgF8cpI0jeUTyJjvzOQZ8YrE=; b=JWdC6OOii4vGrggI1sOIRq8lgFC1JohH33kQxyGAZ6apsqXQjeRJBYIfLm/G9yK/8x wyn9/BItcZrP12BcwK/nNeMDNWKleaWuOg3ync1Npn+jRceN7IGEr6KAU5CW9N7Nyv/U 321AY90hWdGwCLKW16qbsBPuqcp7VrPaXZeFVjtV9753Oqg1gdsruRkNzXUoFZFhQWiB 2jghSJgFeZ21CKz0ygQ/7LUNKvpo4WIk0e1OzBrWhNMnsA1QV6geoB7nFLOLiTN7eiY6 i+utMKV2J9wo75kbiYAsOi+e3atp9JbiDZh8NgP/evvH5SjKe6kF4tLkxhArxxdi5iI1 WVcw== X-Gm-Message-State: AOAM531+sHpjE+qaWCTN4lMkAdeq9nzKXrimslHyejGfKdmAtKF1DIVw p4wso4Wm31K1qhAAIdgoUr8= X-Received: by 2002:aa7:92d0:0:b0:44c:ab24:cce7 with SMTP id k16-20020aa792d0000000b0044cab24cce7mr370069pfa.6.1633555512314; Wed, 06 Oct 2021 14:25:12 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id i9sm18264104pfd.32.2021.10.06.14.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 14:25:11 -0700 (PDT) Date: Thu, 7 Oct 2021 06:25:09 +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 ML , Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Rafael J. Wysocki" , Frank Rowand , linux-arm-kernel , "linux-kernel@vger.kernel.org" , linux-csky@vger.kernel.org, Openrisc , linuxppc-dev , linux-riscv , SH-Linux , 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 04:08:38PM -0500, Rob Herring wrote: > On Wed, Oct 6, 2021 at 3:44 PM Stafford Horne wrote: > > > > 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); > > Oops, that should be: of_get_cpu_hwid(cpu, 0); OK. I checked all other patches in the series, it seems OpenRISC was the only one missing that. Sorry I missed it initially. > I thought I double checked all those... > > > 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? > > I'm counting on the caller to know the max size for their platform. OK. > > > > It seems only if we make with W=3. > > > > I thought we usually warned on this. Oh well, for the openrisc bits. > > That's only on ptr truncation I think. Right, that makes sense. -Stafford