Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp61281imm; Fri, 21 Sep 2018 10:18:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV6101g66mSWLcdV5+Z7EOjnFs0vfDXCkVLFfguqaWUUDaVh4Sel86KBpP5MVVKIMF0SV3cnN X-Received: by 2002:a17:902:650f:: with SMTP id b15-v6mr1875456plk.2.1537550307081; Fri, 21 Sep 2018 10:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537550307; cv=none; d=google.com; s=arc-20160816; b=Y7ITRROfcajeNtNFWQaAbdk7AqECoETdaDSEJZd9RrSVYhAYNzegVTzXhg/tczJDag HoHs9f6PBx0L4pP6v7f2P3VSDoQ/krSTgZreBQ1PmL4MRY8UeEJu3+D9bQMagQU9P18M hyj0+mQvPg90P4Iv3O/ZfFm4JpYUhAsVp6pLpdp1RAcmxANrcuAIoK3Pk8Jeq0SeWTTx MSAyCNWHfPxC8PdAYh+2z4pywaa/VQz8zvTgs6P8TbIDfclrdrCodIaEnjznmeSZ3/Hp 7OT2Dc835fZ7Eg54WQ9Hps8EPtGhpmZY+spqXTzqLSZIrf1zHnOpVtCkrIQFAr4uDXhu gs6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:reply-to:subject:cc:to:from:date; bh=yHOSjHuuwZyAZ1pdxQbRPNn/0mf2Qn7mW+oL9hEzJNU=; b=jv1XBpEaPmT3xgiNe7qG6TCsT7XvJswUoynkP5UiMg3Hx5Yj7xmtASXUrBx63jZMEH iUv3E+TBhhbWnbL83KegP0xcE/x0rBIYb6P54wPFMBdKo93sIiWPdI76QEIobHIGMK4q ZQU2M+KQEgektNTvawFtPne+MX9E23fuKiom6pROcFsUTabtF2upGZSL7b2xJrc1G9Ft 2uqR9SCBKKcFUOl1Vtd+q8FGh/FtkQJ+PtdPdTP/5UPzbEvgS0sf33UH/vprYMhGU6v+ EZDvQ8I+Zlvlf5cmWFBFz63tNF9lTlbsgO2Qs7/Lep5HCWiJa7Q0NTN8eyx7fmvFdGGm +mgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5-v6si31222978pfb.104.2018.09.21.10.18.11; Fri, 21 Sep 2018 10:18:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390867AbeIUXHl (ORCPT + 99 others); Fri, 21 Sep 2018 19:07:41 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41508 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388909AbeIUXHl (ORCPT ); Fri, 21 Sep 2018 19:07:41 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8LH9pFO118896 for ; Fri, 21 Sep 2018 13:17:51 -0400 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mn3jt3dvf-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 21 Sep 2018 13:17:50 -0400 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Sep 2018 13:17:49 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 21 Sep 2018 13:17:45 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8LHHiTE43581530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 21 Sep 2018 17:17:44 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E7507AC05B; Fri, 21 Sep 2018 13:17:16 -0400 (EDT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A97C6AC059; Fri, 21 Sep 2018 13:17:16 -0400 (EDT) Received: from sofia.ibm.com (unknown [9.79.178.146]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Fri, 21 Sep 2018 13:17:16 -0400 (EDT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 6D74C2E2D93; Fri, 21 Sep 2018 22:47:40 +0530 (IST) Date: Fri, 21 Sep 2018 22:47:40 +0530 From: Gautham R Shenoy To: Michael Neuling Cc: "Gautham R. Shenoy" , "Aneesh Kumar K.V" , Srikar Dronamraju , Michael Ellerman , Benjamin Herrenschmidt , Vaidyanathan Srinivasan , Akshay Adiga , Shilpasri G Bhat , "Oliver O'Halloran" , Nicholas Piggin , Murilo Opsfelder Araujo , Anton Blanchard , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 1/3] powerpc: Detect the presence of big-cores via "ibm,thread-groups" Reply-To: ego@linux.vnet.ibm.com References: <1537464159-25919-1-git-send-email-ego@linux.vnet.ibm.com> <1537464159-25919-2-git-send-email-ego@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 x-cbid: 18092117-0064-0000-0000-00000351F5DD X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009747; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01091619; UDB=6.00564045; IPR=6.00871643; MB=3.00023437; MTD=3.00000008; XFM=3.00000015; UTC=2018-09-21 17:17:47 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18092117-0065-0000-0000-00003AB90ED9 Message-Id: <20180921171740.GA12919@in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-21_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809210170 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Michael, On Fri, Sep 21, 2018 at 01:02:45PM +1000, Michael Neuling wrote: > This doesn't compile for me with: > > arch/powerpc/kernel/smp.c: In function ‘smp_prepare_cpus’: > arch/powerpc/kernel/smp.c:812:23: error: ‘tg.threads_per_group’ may be used uninitialized in this function [-Werror=maybe-uninitialized] > struct thread_groups tg; > ^ > arch/powerpc/kernel/smp.c:812:23: error: ‘tg.nr_groups’ may be used uninitialized in this function [-Werror=maybe-uninitialized] > cc1: all warnings being treated as errors > /home/mikey/src/linux-ozlabs/scripts/Makefile.build:305: recipe for target 'arch/powerpc/kernel/smp.o' failed > I couldn't get this error with gcc 4.8.5 and 8.1.1 with pseries_defconfig and powernv_defconfig with CONFIG_PPC_WERROR=y. Does the following the following delta patch make it work? -----------------------------X8---------------------------------- From 6699ce20573dddd0d3d45ea79015751880740e9b Mon Sep 17 00:00:00 2001 From: "Gautham R. Shenoy" Date: Fri, 21 Sep 2018 22:43:05 +0530 Subject: [PATCH] powerpc/smp: Initialize thread_groups local variable Signed-off-by: Gautham R. Shenoy --- arch/powerpc/kernel/smp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 5cdcf44..356751e 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -809,8 +809,9 @@ static int init_cpu_l1_cache_map(int cpu) { struct device_node *dn = of_get_cpu_node(cpu, NULL); - struct thread_groups tg; - + struct thread_groups tg = {.property = 0, + .nr_groups = 0, + .threads_per_group = 0}; int first_thread = cpu_first_thread_sibling(cpu); int i, cpu_group_start = -1, err = 0; -- 1.9.4