From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14878C77B7A for ; Tue, 6 Jun 2023 11:16:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231939AbjFFLQG (ORCPT ); Tue, 6 Jun 2023 07:16:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjFFLP4 (ORCPT ); Tue, 6 Jun 2023 07:15:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9B718E for ; Tue, 6 Jun 2023 04:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686050106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6nOtaiNjzF/2l30khHz4vnxWHOiGMg6bW5+m2iJbioI=; b=SodU1De44BmTh8R4OoQmxYLF2p0yCGJVkmps04XMUqyj2ZCnWq3C+UFfsIPJyAaJ1yG/KL OivtShQXlUvl5hlTMH8yKZP1+KihUuBOndbGiZQJ3Tlz46PZk6qVJYVJhG6YzNwOEoFx+l bJDBtbrPwYuwm+VJ6zMmbHWhn9LX2Fc= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-138-ErCrE8ftOqmEMj4v6WCXBQ-1; Tue, 06 Jun 2023 07:15:05 -0400 X-MC-Unique: ErCrE8ftOqmEMj4v6WCXBQ-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-75eb82ada06so50523485a.1 for ; Tue, 06 Jun 2023 04:15:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686050104; x=1688642104; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6nOtaiNjzF/2l30khHz4vnxWHOiGMg6bW5+m2iJbioI=; b=Qn/JMmNvS79af6XvSL1oD1dpLXmoPNuZ9LYeNiQ6QyZiwoQRfCg0ISSoQzqoG4KQTR AO5sfckyV5Dtl+vVeyaiDs2kzqLt72r0V5DcN3ccISK/QDlp9/KlSK3jo/Il/sGK/tF4 xPrWs3wpOXAoeE5CCQlkT46ddVWGIwUwm4+c1tIh44PkwQZItj7BxW7DBjZWI5N6yOBT 4uEX0R1O2zUkuxzE7yLHnMwtZu4m5muNl+Z8Jcuz4czi0Bh80WyvpELFcU8Yjn6Wu1xg 2lvX/lYsFs/LuA4tDj7X7n1Jx8CFpO04fgta9pyOWYXDZe3JoS9Jz4wmD0fzYTOVWnrN qetA== X-Gm-Message-State: AC+VfDxEQLrJPIBOGOkg4fflFjYMhbAmQC51Oy33vDQducXsOlt/do77 tJhG1KpZHQknGOs77NmQ6taYY9zwP7HXSJb+7i9Q7QDBOzyurs18sHJvcCeCSs8FerFLugWKEGe O7dNxC4brCpf0WqCp0fKadXet X-Received: by 2002:a05:620a:6185:b0:75b:23a1:69e7 with SMTP id or5-20020a05620a618500b0075b23a169e7mr1655417qkn.7.1686050104804; Tue, 06 Jun 2023 04:15:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6tP19Lhtynb9dSrzqdwWnladOfHbnmEns3mricCewylxpVi4WpSIaM1grItcgS6vd5GoRInw== X-Received: by 2002:a05:620a:6185:b0:75b:23a1:69e7 with SMTP id or5-20020a05620a618500b0075b23a169e7mr1655392qkn.7.1686050104521; Tue, 06 Jun 2023 04:15:04 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-114-89.dyn.eolo.it. [146.241.114.89]) by smtp.gmail.com with ESMTPSA id s15-20020a05620a16af00b00746b2ca65edsm4815385qkj.75.2023.06.06.04.15.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 04:15:04 -0700 (PDT) Message-ID: Subject: Re: [PATCH] net: liquidio: fix mixed module-builtin object From: Paolo Abeni To: Masahiro Yamada , Jakub Kicinski , "David S . Miller" , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Derek Chickles , Satanand Burla , Felix Manlunas , Eric Dumazet , Nick Terrell Date: Tue, 06 Jun 2023 13:15:00 +0200 In-Reply-To: <20230604043213.901341-1-masahiroy@kernel.org> References: <20230604043213.901341-1-masahiroy@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, 2023-06-04 at 13:32 +0900, Masahiro Yamada wrote: > With CONFIG_LIQUIDIO=3Dm and CONFIG_LIQUIDIO_VF=3Dy (or vice versa), > $(common-objs) are linked to a module and also to vmlinux even though > the expected CFLAGS are different between builtins and modules. >=20 > This is the same situation as fixed by commit 637a642f5ca5 ("zstd: > Fixing mixed module-builtin objects"). >=20 > Introduce the new module, liquidio-core, to provide the common functions > to liquidio and liquidio-vf. >=20 > Signed-off-by: Masahiro Yamada This does not build with allmodconfig: ERROR: modpost: "lio_get_state_string" [drivers/net/ethernet/cavium/liquidi= o/liquidio.ko] undefined! ERROR: modpost: "lio_get_state_string" [drivers/net/ethernet/cavium/liquidi= o/liquidio_vf.ko] undefined! Please, when you repost include the 'net-next' tag into the subj. Thanks! Paolo