Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7001083ybi; Mon, 8 Jul 2019 12:26:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOIuRT9V/Xc7OzKTC0DVB2wPclIvLfjblXk361+GWHTOmVdGNyhtG5dvwstGhJBaudyLWe X-Received: by 2002:a63:5045:: with SMTP id q5mr25240329pgl.380.1562613992247; Mon, 08 Jul 2019 12:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562613992; cv=none; d=google.com; s=arc-20160816; b=pMaje3R60vl9PHfNzMBWOqAZtOBi5y7W+twY0Kd7xXMp4+Rrl+4rgkvsEq+ONpBkO5 OsOg/RR6ijvQFy6F+/79TIyorh+uxokhbEeu0umg+0OOFFD8vUlhVqrJIR1GHV3OqhOF RH7skg7Jr8x8Xl+L54hKzJOgyGLzc47IW7I0sBxn3KHD0sXOmnedu5sVPjoVQ5BzNUdu d94h95Bgqk33UCn9FJF6+00M17I8xsKRQZLE3G5ZlpbrkjW0V4eEOP3sio9zZb4Wnn+F Au4dr+gzYRccjmUjs215XmqCcfaKYoFpskx1Pt0BN7cJI1zRny5WXt2c3sSon+khLUHN wIcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id :content-transfer-encoding:references:importance:sensitivity :mime-version:date:cc:to:from:in-reply-to; bh=XNdp1vREPE7i247xJsRJ4XpSlmHMZk5xLmskPPxpHg0=; b=zUBmwr471znrK0phhDPM9htzpkOJT1P4XYlSXFCY+Iio+PvpCKOLXkHoCXacECFeVF PG8fpkMkomgESztQGvL2LuHpxhiowg2YB4IdFxcfjZurZhUOZq+NvujxkzI++Z539LlS ricrW2fs4an3TW092heL1S4FtWCnoSHvVWVMmvydAMBByApD8mRyNpNEnCoi5wSon2eU 8rq8zcAYAUBMqmjQ5DxeBB3yjZovj2fhlszXjstWlWba5LaHxdqV3k4sZ7ZCIKvYHY0O ZB8nLMze2wBrSmqMyZvHqhfbSZ0BToETES0ws1YuK2JxE6RAaYmmSNrZB1wQ/YZexYee kgng== 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 s189si13214611pgb.272.2019.07.08.12.26.17; Mon, 08 Jul 2019 12:26:32 -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 S1731581AbfGHO2V convert rfc822-to-8bit (ORCPT + 99 others); Mon, 8 Jul 2019 10:28:21 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:4822 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729760AbfGHO2V (ORCPT ); Mon, 8 Jul 2019 10:28:21 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x68ERMMl115712 for ; Mon, 8 Jul 2019 10:28:20 -0400 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [158.85.210.112]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tm60yvg5r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 08 Jul 2019 10:28:19 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Mon, 8 Jul 2019 14:28:19 -0000 Received: from us1b3-smtp04.a3dr.sjc01.isc4sb.com (10.122.203.161) by smtp.notes.na.collabserv.com (10.122.47.54) with smtp.notes.na.collabserv.com ESMTP; Mon, 8 Jul 2019 14:28:14 -0000 Received: from us1b3-mail162.a3dr.sjc03.isc4sb.com ([10.160.174.187]) by us1b3-smtp04.a3dr.sjc01.isc4sb.com with ESMTP id 2019070814281388-485737 ; Mon, 8 Jul 2019 14:28:13 +0000 In-Reply-To: <20190708140858.GC23966@mellanox.com> From: "Bernard Metzler" To: "Jason Gunthorpe" Cc: "Stephen Rothwell" , "Doug Ledford" , "Linux Next Mailing List" , "Linux Kernel Mailing List" Date: Mon, 8 Jul 2019 14:28:13 +0000 MIME-Version: 1.0 Sensitivity: Importance: Normal X-Priority: 3 (Normal) References: <20190708140858.GC23966@mellanox.com>,<20190708130351.2141a39b@canb.auug.org.au> X-Mailer: IBM iNotes ($HaikuForm 1054) | IBM Domino Build SCN1812108_20180501T0841_FP55 May 22, 2019 at 11:09 X-KeepSent: 8B5D0A35:3AB4C2D3-00258431:004F7CF8; type=4; name=$KeepSent X-LLNOutbound: False X-Disclaimed: 37267 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=UTF-8 x-cbid: 19070814-0163-0000-0000-000006B23BBB X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.399202; ST=0; TS=0; UL=0; ISC=; MB=0.001805 X-IBM-SpamModules-Versions: BY=3.00011395; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000286; SDB=6.01229239; UDB=6.00647369; IPR=6.01010498; BA=6.00006352; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00027634; XFM=3.00000015; UTC=2019-07-08 14:28:18 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2019-07-08 08:53:28 - 6.00010139 x-cbparentid: 19070814-0164-0000-0000-0000100845AC Message-Id: Subject: Re: Re: linux-next: build failure after merge of the rdma tree X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-08_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -----"Jason Gunthorpe" wrote: ----- >To: "Stephen Rothwell" , "Bernard Metzler" > >From: "Jason Gunthorpe" >Date: 07/08/2019 04:09PM >Cc: "Doug Ledford" , "Linux Next Mailing List" >, "Linux Kernel Mailing List" > >Subject: [EXTERNAL] Re: linux-next: build failure after merge of the >rdma tree > >On Mon, Jul 08, 2019 at 01:03:51PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> After merging the rdma tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> In file included from include/asm-generic/percpu.h:7, >> from arch/x86/include/asm/percpu.h:544, >> from arch/x86/include/asm/preempt.h:6, >> from include/linux/preempt.h:78, >> from include/linux/spinlock.h:51, >> from include/linux/seqlock.h:36, >> from include/linux/time.h:6, >> from include/linux/ktime.h:24, >> from include/linux/timer.h:6, >> from include/linux/netdevice.h:24, >> from drivers/infiniband/sw/siw/siw_main.c:8: >> include/linux/percpu-defs.h:92:33: warning: '__pcpu_unique_use_cnt' >initialized and declared 'extern' >> extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ >> ^~~~~~~~~~~~~~ >> include/linux/percpu-defs.h:115:2: note: in expansion of macro >'DEFINE_PER_CPU_SECTION' >> DEFINE_PER_CPU_SECTION(type, name, "") >> ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/infiniband/sw/siw/siw_main.c:129:8: note: in expansion of >macro 'DEFINE_PER_CPU' >> static DEFINE_PER_CPU(atomic_t, use_cnt = ATOMIC_INIT(0)); >> ^~~~~~~~~~~~~~ >> include/linux/percpu-defs.h:93:26: error: redefinition of >'__pcpu_unique_use_cnt' >> __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ >> ^~~~~~~~~~~~~~ >> include/linux/percpu-defs.h:115:2: note: in expansion of macro >'DEFINE_PER_CPU_SECTION' >> DEFINE_PER_CPU_SECTION(type, name, "") >> ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/infiniband/sw/siw/siw_main.c:129:8: note: in expansion of >macro 'DEFINE_PER_CPU' >> static DEFINE_PER_CPU(atomic_t, use_cnt = ATOMIC_INIT(0)); > >Bernard, > >This looks like the wrong way to use DEFINE_PER_CPU these days. I'm >not sure why my compiles don't hit it, or why 0-day didn't say >something > >Looking at the other atomic_t PER_CPU users they just rely on >automatic zero initialization, so this should just be: > > static DEFINE_PER_CPU(atomic_t, use_cnt); > >? > >Please confirm ASAP. > Hi Jason, Thanks for bringing this up. Indeed, that explicit initialization seem to be inappropriate. Can you please fix that as you suggest? Thanks very much, Bernard.