Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp552933imn; Thu, 28 Jul 2022 08:42:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vY3tQO4Kyd+lTzmwrvRK/PoeDMZ48y+lLsMw68oiZ/hG2OMyCxBH9dKIb82zMvlD1Gmu3g X-Received: by 2002:a17:907:6e13:b0:72b:509e:bd6b with SMTP id sd19-20020a1709076e1300b0072b509ebd6bmr21905457ejc.202.1659022926954; Thu, 28 Jul 2022 08:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659022926; cv=none; d=google.com; s=arc-20160816; b=OH+wa0USna2PaYhLe0Ye4ojpXNmC+kIMR4DQn6DhlrDhvCzI9iGyab1GHt5NeFLVWj p0JhGtsnCx+G5OWl2nq+ZXwPRav4vSx3KvpikrcVrrX2b3vLMZI0dr0eKOm6oe/OhjdN dbvnJkTudYl8mdwPrlMbe8lhKLa6zSPvbZe45qNNcy9L6DAmx+NubPQLsKaaFHMD2Fe4 shMXrX3cQlDi4huoWKfNCqs+9tHbRYPa5SL6B3IhorlbGmdg77BvfGIKP+I4cpNq/3Bt 82I1urZQoB4+HETK9nWKJ1AafxDY2byaK/wtu5lGWHc0WFgtuyJAYWiA3hwhjKhOmoAj 1CTw== 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=cu1gStaA0859c+H3vKSAT1FDu9N7TEl0kup5ZEP7sFk=; b=hrtCswB6UHGh+M0PuXWhkU19VPvyt7GRIiOJloLIbBr/K4SS+bL5EocmH1xpamo88F WV+zwL633pokE7RJ9qWlTOeFmQg/8aRmM8JdxRYfzyDzbjPOTD9OuCjK6woBJl/XW2Jj 62R2qKnGtooWGOv9JjJLjMmkGd47XWdPu7Y/IZGsVMPqx2Y8ls1PggZxHnBxmlx9S36z n2KkroZdu65QSDVx0f3k9A1kDXBwqR3FFohHli0ifC72lKvuZeg+7nO2TvH+jPy3/h7G oqM2tojCPF0ySwRnuANLc+OKR76+0umj7duC/KvHLFqeOn7Q9s6psdMzZGCaG+T2lU8a 1NVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="IvwEwlg/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a0564020f0d00b0043be28d93bbsi959069eda.125.2022.07.28.08.41.42; Thu, 28 Jul 2022 08:42:06 -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=@chromium.org header.s=google header.b="IvwEwlg/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbiG1PMg (ORCPT + 99 others); Thu, 28 Jul 2022 11:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbiG1PMa (ORCPT ); Thu, 28 Jul 2022 11:12:30 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29CAD4BD3C for ; Thu, 28 Jul 2022 08:12:29 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id 15-20020a17090a098f00b001f305b453feso5598646pjo.1 for ; Thu, 28 Jul 2022 08:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cu1gStaA0859c+H3vKSAT1FDu9N7TEl0kup5ZEP7sFk=; b=IvwEwlg/b5pGaEAw55tItIpmKh7gLGTITpXR5azdnJuZO5AmWRffaiukHKI/YJ35r5 19+iDHO6q7nGAIHoV16HzmNAwNpGlHHDZvDINTffeQeAy9RPpxZp6YrOfxt2ukQmQicA 3rsLVpWrdySUBr47fUOVlynHoaJ6uVmDu1liE= 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=cu1gStaA0859c+H3vKSAT1FDu9N7TEl0kup5ZEP7sFk=; b=j53d2S86QHz5yu2k1lG6AiVAgI//parkr0Lc2COkwxv/y3iPQRovfvMxM66GmwJXnh XM/NaT/8n9EDqAocOfa2TD8lor2Cd8zNwbrILHflvnXEbN2wxj+Ft6/i9hM4zPP6p1YK SlLQ6UxP0Etzeplge4nBpXKZOzaLrdgyAzBLlce7anEiuai32oEA47fZCAgu3yTEr0HB ksTFL40vkkCrphMAxqnnnJ1KCMptGBJj6MXYTlGNEO0alTQzvhG2a+eUndh/Z4ou3b57 zF9KSekad/JlbkhPBxmptD8QMzH5AI9zv5E5qIh0g0pkf+WQmCbie6yntATZM4IOQaIl aPlA== X-Gm-Message-State: AJIora8RtVK2ok42maJW8zUQihTIHRtpR+qSN7cyDxThdZGg0DsF/yVi qmR2yRFOGf0SHGcgnI+X3afR1A== X-Received: by 2002:a17:90b:38c4:b0:1f2:c238:37fc with SMTP id nn4-20020a17090b38c400b001f2c23837fcmr10836867pjb.166.1659021148553; Thu, 28 Jul 2022 08:12:28 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:bb10:e729:7f59:7cbc]) by smtp.gmail.com with UTF8SMTPSA id s2-20020a632142000000b0041a8f882e5bsm1097309pgm.42.2022.07.28.08.12.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 08:12:28 -0700 (PDT) Date: Thu, 28 Jul 2022 08:12:26 -0700 From: Matthias Kaehlcke To: Stephen Rothwell Cc: Kees Cook , Alasdair G Kergon , Mike Snitzer , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the kspp tree Message-ID: References: <20220728205404.645f7c12@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220728205404.645f7c12@canb.auug.org.au> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi Stephen, Thanks for letting me know and for the fix in -next. I'll send out a fix (which will probably be the same as yours). Thanks Matthias On Thu, Jul 28, 2022 at 08:55:43PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the kspp tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/md/dm-verity-loadpin.c: In function 'dm_verity_loadpin_is_bdev_trusted': > drivers/md/dm-verity-loadpin.c:61:13: error: implicit declaration of function 'dm_table_get_num_targets'; did you mean 'dm_table_resume_targets'? [-Werror=implicit-function-declaration] > 61 | if (dm_table_get_num_targets(table) != 1) > | ^~~~~~~~~~~~~~~~~~~~~~~~ > | dm_table_resume_targets > drivers/md/dm-verity-loadpin.c:64:14: error: implicit declaration of function 'dm_table_get_target'; did you mean 'dm_table_add_target'? [-Werror=implicit-function-declaration] > 64 | ti = dm_table_get_target(table, 0); > | ^~~~~~~~~~~~~~~~~~~ > | dm_table_add_target > drivers/md/dm-verity-loadpin.c:64:12: error: assignment to 'struct dm_target *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] > 64 | ti = dm_table_get_target(table, 0); > | ^ > > Caused by commit > > b6c1c5745ccc ("dm: Add verity helpers for LoadPin") > > interacting with commits > > 2aec377a2925 ("dm table: remove dm_table_get_num_targets() wrapper") > 564b5c5476cd ("dm table: audit all dm_table_get_target() callers") > > from the device-mapper tree. > > I have applied the following merge fix patch for today. > > From: Stephen Rothwell > Date: Thu, 28 Jul 2022 20:28:41 +1000 > Subject: [PATCH] fix up for "dm: Add verity helpers for LoadPin" > > interacting with > > 2aec377a2925 ("dm table: remove dm_table_get_num_targets() wrapper") > 564b5c5476cd ("dm table: audit all dm_table_get_target() callers") > > from the device-mapper tree. > > Signed-off-by: Stephen Rothwell > --- > drivers/md/dm-verity-loadpin.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/md/dm-verity-loadpin.c b/drivers/md/dm-verity-loadpin.c > index 10c18bc1652c..387ec43aef72 100644 > --- a/drivers/md/dm-verity-loadpin.c > +++ b/drivers/md/dm-verity-loadpin.c > @@ -5,6 +5,7 @@ > #include > > #include "dm.h" > +#include "dm-core.h" > #include "dm-verity.h" > > #define DM_MSG_PREFIX "verity-loadpin" > @@ -58,7 +59,7 @@ bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev) > > table = dm_get_live_table(md, &srcu_idx); > > - if (dm_table_get_num_targets(table) != 1) > + if (table->num_targets != 1) > goto out; > > ti = dm_table_get_target(table, 0); > -- > 2.35.1 > > -- > Cheers, > Stephen Rothwell