Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12734220rwd; Fri, 23 Jun 2023 09:56:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sX8DcwXn1d0+nRlNLuz/aNkJHdG4EUReH7YA/hgG/ujUZHz4OwkJDxrrFX23QzhnHA6Cj X-Received: by 2002:a05:6a21:789a:b0:125:6695:8622 with SMTP id bf26-20020a056a21789a00b0012566958622mr3910493pzc.17.1687539365040; Fri, 23 Jun 2023 09:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687539365; cv=none; d=google.com; s=arc-20160816; b=f8KK3ZsvnPLkWtb1CZ/J3TzuGrR5p5Ic1LLg8u1L7bglHHn40q/DJU0bxDbkJqlPOL YLdBT2g+BRn5Kgsxzvb7XZLIohIOP27AZgODO8SG+ptHIYyxAnWbjXRgClss/l83C+Ao TWzsVwjfShlcSf63yjyCgdWdGt6LbVtpnHtflpsnwQMHPs8Yx4OY+9zcDo9Ms5YNcRug 6WH5/BmuZrqx59uvAQNGeZXao4YD07gNZ2y2dqrurI498p3Ai+PNx2PSqSA6R0YkrYYL NCUms7hj6cpbik5qw/PNuZmANwXnPnGDfQ4QxgEKAYbBVbpZ3D5Aa8DvQXj1u/ixlieU PGYA== 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:feedback-id :dkim-signature:dkim-signature; bh=FxZNrWvPKPTmkKt5iB7ImZO3THwWpV5+LtbCehNa1QQ=; b=OxHvPJ7u8f5KefPGps01/IE9qVU+EUFr/rpJ7LceVBeyL2a7CZqipdB+ZKAsm0TNy4 dPdheBJ6cY91P+Q8SvlEzTkOlLokQQmj+uO0Sj4jiy3czo97cy/Mp4lPcWx+xT4B+zIN fBojqE5t9rtgnkHy8DqFwCyq4REuZgD+uh1rHuytK0Im+I1LkCgfjYG2FAVc7K+sMlgf t4vDW4r108eBAMXIOljTb+lBnFR6PZS2sbPv0XO7B9/DZygEwsv/KV18gAb8m4UqHKzu oyYwznbTj0NgidESExb7k52ycqKah781KGh686ywg03DoiaLkkR8wwT+7mPwbP2uJFu+ sEpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm2 header.b=Xx8eLf6F; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TQ9kPjqD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji21-20020a170903325500b001b036adfdf7si5646212plb.107.2023.06.23.09.55.52; Fri, 23 Jun 2023 09:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm2 header.b=Xx8eLf6F; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=TQ9kPjqD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232082AbjFWQrT (ORCPT + 99 others); Fri, 23 Jun 2023 12:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231421AbjFWQrR (ORCPT ); Fri, 23 Jun 2023 12:47:17 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8590B10C; Fri, 23 Jun 2023 09:47:16 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E017E5C0048; Fri, 23 Jun 2023 12:47:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 23 Jun 2023 12:47:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1687538835; x=1687625235; bh=FxZNrWvPKPTmkKt5iB7ImZO3THwWpV5+Ltb CehNa1QQ=; b=Xx8eLf6FvI9QvBbx2NwBBbOsmcGespbXP7jpO3YIoJOsmmCs05F G1GxEpmNgfJglbMjEtyEqGH0Zf+cSVoWPhh3/DEc8SmFLxap9J+Azi2CcLaSZggg ir5DbER1EEFN+iffZq18yjjH1FtW3EHnkZ1h3p+CTXXwRi6Tp8EabSFgma5zIzT4 kAjcHYzZW2vD/Fh3f2NMrJjUhVniitoadBGEE8TzobZh6lKarAlvGG2Hb7P8V2x1 GAuewE4l9NMkJkPswneD7FzDRMbIkLa3A5MsKEnaIEcrLhfFUA2W4twOSgqRYWxt 8S2kIb13ZS+T/dshV+dsr69hu4KjOeSIpYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1687538835; x=1687625235; bh=FxZNrWvPKPTmk Kt5iB7ImZO3THwWpV5+LtbCehNa1QQ=; b=TQ9kPjqDlLIibATgeZ6muabnXmhlp VGKp/xsc8zKPY+j1gBMNgiG8d2qfy1ALB024SWI9D+fCTDX3Aa/0uC1PjtXtULDw QuiOnO8s0OQJ55y6XbSDK3Ifg4i4MwMML80ysJPrW0bZWUxo3WMhwmxcq9rFlFBz t9w+3znKnGw/dgpQe5gERY3kRjwdA5FUMIVhP0K2mcUa96HJCXLuxu7LEFRw2o0j JqmfcP5OnNcuop7kmobJD00YDRyuFvayeRbZ+Q1/UDclW/hT/oC9zqCQ3LNnG3q3 yYRmZV+UZP3+apd8ueDHFda9F5RDFgA86rIekeSD+UqM6H4wL1QReiOCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeeggedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeffvghm ihcuofgrrhhivgcuqfgsvghnohhurhcuoeguvghmihesihhnvhhishhisghlvghthhhinh hgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpedvjeetgeekhfetudfhgfetffeg fffguddvgffhffeifeeikeektdehgeetheffleenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpeguvghmihesihhnvhhishhisghlvghthhhinhhg shhlrggsrdgtohhm X-ME-Proxy: Feedback-ID: iac594737:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Jun 2023 12:47:14 -0400 (EDT) Date: Fri, 23 Jun 2023 12:47:08 -0400 From: Demi Marie Obenour To: Stephen Rothwell , Alasdair G Kergon , Mike Snitzer Cc: Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the device-mapper tree Message-ID: References: <20230623143011.7deba53c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PNJM2LfTtJi3ok2p" Content-Disposition: inline In-Reply-To: <20230623143011.7deba53c@canb.auug.org.au> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PNJM2LfTtJi3ok2p Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Jun 2023 12:47:08 -0400 From: Demi Marie Obenour To: Stephen Rothwell , Alasdair G Kergon , Mike Snitzer Cc: Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the device-mapper tree On Fri, Jun 23, 2023 at 02:30:11PM +1000, Stephen Rothwell wrote: > Hi all, >=20 > After merging the device-mapper tree, today's linux-next build (i386 > defconfig) failed like this: >=20 > In file included from include/linux/kernel.h:30, > from arch/x86/include/asm/percpu.h:27, > from arch/x86/include/asm/current.h:10, > from include/linux/sched.h:12, > from include/linux/kthread.h:6, > from drivers/md/dm-core.h:13, > from drivers/md/dm-ioctl.c:9: > drivers/md/dm-ioctl.c: In function 'next_target': > include/linux/kern_levels.h:5:25: error: format '%lu' expects argument of= type 'long unsigned int', but argument 3 has type 'unsigned int' [-Werror= =3Dformat=3D] > 5 | #define KERN_SOH "\001" /* ASCII Start Of Header = */ > | ^~~~~~ > include/linux/printk.h:427:25: note: in definition of macro 'printk_index= _wrap' > 427 | _p_func(_fmt, ##__VA_ARGS__); = \ > | ^~~~ > include/linux/printk.h:498:9: note: in expansion of macro 'printk' > 498 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) > | ^~~~~~ > include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH' > 11 | #define KERN_ERR KERN_SOH "3" /* error conditions */ > | ^~~~~~~~ > include/linux/printk.h:498:16: note: in expansion of macro 'KERN_ERR' > 498 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) > | ^~~~~~~~ > include/linux/device-mapper.h:626:25: note: in expansion of macro 'pr_err' > 626 | #define DMERR(fmt, ...) pr_err(DM_FMT(fmt), ##__VA_ARGS__) > | ^~~~~~ > drivers/md/dm-ioctl.c:1421:17: note: in expansion of macro 'DMERR' > 1421 | DMERR("Next dm_target_spec (offset %u) is not %lu= -byte aligned", > | ^~~~~ > cc1: all warnings being treated as errors >=20 > Caused by commit >=20 > 5df1daff2cc6 ("dm ioctl: Check dm_target_spec is sufficiently aligned") Ugh, sorry about that. I=E2=80=99m pretty sure the code would actually work okay at runtime since unsigned long and unsigned int are passed the same way, but this is still a bug. > I have applied the following patch for today: >=20 > From: Stephen Rothwell > Date: Fri, 23 Jun 2023 14:24:29 +1000 > Subject: [PATCH] fix up for "dm ioctl: Check dm_target_spec is sufficient= ly aligned" >=20 > Signed-off-by: Stephen Rothwell > --- > drivers/md/dm-ioctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c > index 5f0b641538d8..8b480d7825fe 100644 > --- a/drivers/md/dm-ioctl.c > +++ b/drivers/md/dm-ioctl.c > @@ -1418,7 +1418,7 @@ static int next_target(struct dm_target_spec *last,= uint32_t next, const char *e > } > =20 > if (next % __alignof__(struct dm_target_spec)) { > - DMERR("Next dm_target_spec (offset %u) is not %lu-byte aligned", > + DMERR("Next dm_target_spec (offset %u) is not %zu-byte aligned", > next, __alignof__(struct dm_target_spec)); > return -EINVAL; > } > --=20 > 2.39.2 That fix is correct, thanks! --=20 Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab --PNJM2LfTtJi3ok2p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmSVzJAACgkQsoi1X/+c IsH60g/+NCH4eD7P5GyFdcqFNWM/aI3nn9Uu7FNb6Xr4y2T3cmIKrGvGHOYAunm4 AF00Y0OuDq53do4Ruf6fc2Jufb4IDJR19rHU4dFX5r1L462SOno0e1eFmsgzvTat P9GnKuPTsHTgLf9oWV6ACNqdM7G4v57sRsGCm4cvpFSz8CreOM7P8lwer0gyJy0+ Lfk+CIWJat+ICEhj2+qmXert16D3eQVNpnFHCMs09414J/GnL1E717bdJycZ3dug FSidDTf4t66rGcuU95AEzEFCrHEBnn5hJmKdQuW/Bg+QXFcPMWqPhOZ0DG/Yqw+S VKbaDfYcmCA03bwgVP9kNX8nU3sipJifXmqyGrFo6pOHbMcr3SBcW7SLeGSiPd3J TDja4Ja+bOIQjIPCrxzqwnNxS/FrGgiOwvHwNPJjxfpIsSGTonPDsq4D4A7S9D9k JtRx6U+mscjIwvz2O8qcsl9z0mwHBCIhQe28TZ1u3Yo1e9OLazrAkO28fHb3/U80 l6arsce9dpWpKB4Dtc/sw6u/2XhnlCIUa2hoF8wzPVdOGcvlsX5utQG+vbiu04yW y+5bB/i2z09q2gZzCA+19qE0q8gvRSgSuKIDTVWgeTAndUb1YzUaOKAgk0izt/KQ pcgcv15XK19taV1Jo/LGey7jt6I3j2SQfwIMM4u8AX5+WAHxeqc= =qJJP -----END PGP SIGNATURE----- --PNJM2LfTtJi3ok2p--