Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10342862imu; Wed, 5 Dec 2018 22:22:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/W3COUVfrTBmAzghaNEGIAYWhZfuqWZPjDt4PckRYJgbqhBwg7XMtWSH0TiBKQwvTDJeQ33 X-Received: by 2002:a17:902:8b88:: with SMTP id ay8mr27577040plb.55.1544077346246; Wed, 05 Dec 2018 22:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544077346; cv=none; d=google.com; s=arc-20160816; b=KyQmWuvCbhXkf+augw/qBQcS0cP5Ov6l5fAx4bUpV3Nbf5rAFAREpfuH3pkuBlrP6h e5dnGEKhGKHibnGUazNNmTH3J/3w9c1eurKD6JQjIZ6GG9Uf4QdQtSYuPP9j4LYqsQRT cjVXoYeSMqwZFuDwTrcqpQx3pZndU1LHYdoFJBVD696i1VVvN2gktjjQgSvd1mvAJ7v0 AwVMapdSK69zI1hcccCFfC+Y9dRhrULQf5PAb1RrSXxjBpKbNC98UHtiMARUxceJfvbt CYWQ4+lc8xwNd0iZ0IrIw7OjdW35ZcMRu8wtfbpDPiVTcR61MmMd/V9k5skfUJMCi0pr 4yNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature; bh=ZCG5xI6ngp7GxQaWC1j5IbY6SaR+86cxqHhUkJbhXAM=; b=E/jiRO1o+fTXbyZsdXwYVyqXdaiI6e3O09rg4yihRf7Iji8htrQ4thUNlWrM9CfAd6 HmUsJgBaMubM5Sf0/mBR9YaMgxfbC51TzK7fubbFzLT6kPSgkvUmff7gl1jkovR1wiaa 5PDk5/A4ApUqH+8YD5YOsmUYhC1cSF+TzPILFTl1PJxT3poHz2WEVN8foarYv7BNdOw0 ffBN3/9rqvB+Gjm4cuzgXooQqGyI755W1Ej8iJFgeg6fVs0y5nQp+E68l2BhieRbFIwP YrHGKYARG02b00R0hm6os/A3pNxjXyW6AIkfiqOJf/pwtLJmxj3IjVc5zQeRZ52TaU3o SDRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=KEV5fu46; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3si23205795plo.102.2018.12.05.22.22.10; Wed, 05 Dec 2018 22:22:26 -0800 (PST) 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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=KEV5fu46; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbeLFGVe (ORCPT + 99 others); Thu, 6 Dec 2018 01:21:34 -0500 Received: from ozlabs.org ([203.11.71.1]:36905 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728489AbeLFGVd (ORCPT ); Thu, 6 Dec 2018 01:21:33 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 439QV13LBRz9s1c; Thu, 6 Dec 2018 17:21:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1544077289; bh=0PVPOgH2XFvrZqZM3Xik7TIgD7pG911g0wieXwx+T4E=; h=Date:From:To:Cc:Subject:From; b=KEV5fu46Gwtut4jVlvzVjQG61Lp0hNghbgPxOOALegwSju1bxvW4s1KTq0JsbWbEK xsY9kPFfDlYykhh3OR5vmlh4k9JH+aC5ohMNbPjmDaKRCFwxZDulSO+qIe3g319yyO my6QW0Yy/Afxa+nt/PrfbuMG5r71DCth+Jg1viRiPyQQSby19VRdJrv3SVhmF66rQe TQKdRvcRJrhESKqzAzLIgc4GnWcmdkutEd6Jl4hZ695WLhT69CDJNnEGwHVBaTe1t9 ZpJtQm3Ihd8SH9+w7hk/T0J1Tf7kKS2JKhdXC7TWTYScC/oFZZpnSdHfqY6TutBdcQ 1D7pNkdMZZB2Q== Date: Thu, 6 Dec 2018 17:21:28 +1100 From: Stephen Rothwell To: Alasdair G Kergon , Mike Snitzer Cc: Linux Next Mailing List , Linux Kernel Mailing List , Mikulas Patocka Subject: linux-next: build failure after merge of the device-mapper tree Message-ID: <20181206172128.71293ced@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/2iD5IIBb4V8tL44Zu29DhN3"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/2iD5IIBb4V8tL44Zu29DhN3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the device-mapper tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: In file included from arch/powerpc/include/asm/local.h:144, from include/linux/genhd.h:20, from block/genhd.c:7: block/genhd.c: In function 'part_inc_in_flight': include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc' #define local_inc(l) atomic_long_inc(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:56:13: note: in expansion of macro 'per_cpu_ptr' local_inc(&per_cpu_ptr(part->dkstats, cpu)->in_flight[rw]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc' #define local_inc(l) atomic_long_inc(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:56:13: note: in expansion of macro 'per_cpu_ptr' local_inc(&per_cpu_ptr(part->dkstats, cpu)->in_flight[rw]); ^~~~~~~~~~~ include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc' #define local_inc(l) atomic_long_inc(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:58:14: note: in expansion of macro 'per_cpu_ptr' local_inc(&per_cpu_ptr(part_to_disk(part)->part0.dkstats, cpu)->in_fligh= t[rw]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc' #define local_inc(l) atomic_long_inc(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:58:14: note: in expansion of macro 'per_cpu_ptr' local_inc(&per_cpu_ptr(part_to_disk(part)->part0.dkstats, cpu)->in_fligh= t[rw]); ^~~~~~~~~~~ block/genhd.c: In function 'part_dec_in_flight': include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:32:40: note: in definition of macro 'local_dec' #define local_dec(l) atomic_long_dec(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:69:13: note: in expansion of macro 'per_cpu_ptr' local_dec(&per_cpu_ptr(part->dkstats, cpu)->in_flight[rw]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:32:40: note: in definition of macro 'local_dec' #define local_dec(l) atomic_long_dec(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:69:13: note: in expansion of macro 'per_cpu_ptr' local_dec(&per_cpu_ptr(part->dkstats, cpu)->in_flight[rw]); ^~~~~~~~~~~ include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:32:40: note: in definition of macro 'local_dec' #define local_dec(l) atomic_long_dec(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:71:14: note: in expansion of macro 'per_cpu_ptr' local_dec(&per_cpu_ptr(part_to_disk(part)->part0.dkstats, cpu)->in_fligh= t[rw]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:32:40: note: in definition of macro 'local_dec' #define local_dec(l) atomic_long_dec(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:71:14: note: in expansion of macro 'per_cpu_ptr' local_dec(&per_cpu_ptr(part_to_disk(part)->part0.dkstats, cpu)->in_fligh= t[rw]); ^~~~~~~~~~~ block/genhd.c: In function 'part_in_flight': include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:85:27: note: in expansion of macro 'per_cpu_ptr' inflight +=3D local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[0])= + ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:85:27: note: in expansion of macro 'per_cpu_ptr' inflight +=3D local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[0])= + ^~~~~~~~~~~ include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:86:17: note: in expansion of macro 'per_cpu_ptr' local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[1]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:86:17: note: in expansion of macro 'per_cpu_ptr' local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[1]); ^~~~~~~~~~~ block/genhd.c: In function 'part_in_flight_rw': include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:107:30: note: in expansion of macro 'per_cpu_ptr' inflight[0] +=3D local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[= 0]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:107:30: note: in expansion of macro 'per_cpu_ptr' inflight[0] +=3D local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[= 0]); ^~~~~~~~~~~ include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (ha= ve 'struct disk_stats' and 'int') const void __percpu *__vpp_verify =3D (typeof((ptr) + 0))NULL; \ ~~~~~ ^ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:259:2: note: in expansion of macro '__verify_pc= pu_ptr' __verify_pcpu_ptr(__p); \ ^~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:108:30: note: in expansion of macro 'per_cpu_ptr' inflight[1] +=3D local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[= 1]); ^~~~~~~~~~~ include/linux/percpu-defs.h:260:10: error: invalid type argument of unary '= *' (have 'struct disk_stats') (typeof(*(__p)) __kernel __force *)(__p); \ ^~~~~~ include/asm-generic/local.h:29:42: note: in definition of macro 'local_read' #define local_read(l) atomic_long_read(&(l)->a) ^ include/linux/percpu-defs.h:263:47: note: in expansion of macro 'VERIFY_PER= CPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ block/genhd.c:108:30: note: in expansion of macro 'per_cpu_ptr' inflight[1] +=3D local_read(&per_cpu_ptr(part->dkstats, cpu)->in_flight[= 1]); ^~~~~~~~~~~ Caused by commit 3a657cf59109 ("block: switch to per-cpu in-flight counters") This build does not have CONFIG_SMP set and part->dkstats is not a pointer in this case. I have reverted the device-mapper tree changes for today. --=20 Cheers, Stephen Rothwell --Sig_/2iD5IIBb4V8tL44Zu29DhN3 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlwIv+gACgkQAVBC80lX 0GzxcQgAokWkGRcssRyDFC6ojyPb9RygJfoGmKSTgnXkGxaevXEeN35HhECJbeiX KgjCohj2orE/S6I629cKxyuOgH3XP3hOkXtvHO8mRaJdE+dMDKEI23IC2ZckJn13 u9iqciCWLY12y9fTYuB8pdQnG6Ra981E+T4aIRH9YOIEDcfPcSHNCcZxKU/kQnCn dZobFbOZSLFIa0TW2ejO+UfE73brbegg1dkqnsuo0PIwIvVSINQHssxJAdvWLbTp 47UqGcy0gboFot0jR0xNqGqWehDDkB0kODtyU8Bw2dwssDU8mgW2pAm26HQ/y5eP 8NHE/O8BFVbuKjgoZ+Te7xJnagWTnA== =UQX8 -----END PGP SIGNATURE----- --Sig_/2iD5IIBb4V8tL44Zu29DhN3--