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 A7AD0C433EF for ; Wed, 8 Dec 2021 22:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241027AbhLHWXa (ORCPT ); Wed, 8 Dec 2021 17:23:30 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34448 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240784AbhLHWWp (ORCPT ); Wed, 8 Dec 2021 17:22:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639001953; 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: in-reply-to:in-reply-to:references:references; bh=PreSFQ9NMf7Pktne6qmfy8XkfYdhqYpBJuPe8BD+6Po=; b=IDEvz0WsHuyJGtl0Yq2v0NXU53Udo3BNUCwt299GGBzaXlOm/OHQgXffiJ/2jqI+G6H3SM Gw93w8e5hGe7/wjIx+EvUw315HCpnA+HJQux+LJx2ZBj7A8XayiOI3GZYlQZ4dVOu8fsO+ +S/VRcNLWhYhA7qfFPB94/yNPmMhUWg= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-122-J8eCCnvuN8qUgtTZ3dKMRw-1; Wed, 08 Dec 2021 17:19:12 -0500 X-MC-Unique: J8eCCnvuN8qUgtTZ3dKMRw-1 Received: by mail-wm1-f72.google.com with SMTP id y141-20020a1c7d93000000b0033c2ae3583fso2031424wmc.5 for ; Wed, 08 Dec 2021 14:19:11 -0800 (PST) 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=PreSFQ9NMf7Pktne6qmfy8XkfYdhqYpBJuPe8BD+6Po=; b=aHiNyBP6yyPf0XjwKJMOqiVBa8vFLPjDYR3NsGMOb7nDaO3EcxPCSUG2wGSEbHEa9h WsJF2Tu++okheD3oa063zypJ0ZLgtxTG0T7DYTrM+z6hqRu1RUim/UfxXVvHixM3AIfC Ux2Re11hJNr1QWEnyL8BejsE8RtPy5yzEV+14GoUBGXUbG5G6VPADRnbtjGd/+WGfwKy wujHyU1xhSAUPbx6jsoZ73ua0YSUHZQRahmyD+9vxlQhelYDIKn+YuqhrFtFk2HZKn0b uxFUXKeZfSfPxkF9IVuPDj4GYqJiQBY995w+b4Gu6mte+9E0BOrMmphtY+bqIFCkPPSq rLCw== X-Gm-Message-State: AOAM532d/H/OWl0AkV3aM1lUvtaqPOpHcsyO6sCrBbrudKEyR0IiVHmu XGwQfeTFRECEP+kvBfFJxa6y45mkDBln00UW2xgkr13/G6uor9kz5NapC4LQg6LmMFzDHACxBzE 3F28ANJ6phPKCIOHo6UJ8usMQ X-Received: by 2002:a05:600c:19d1:: with SMTP id u17mr1996589wmq.148.1639001950805; Wed, 08 Dec 2021 14:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPeV5Bfi1VRi8kXW0PzecBfblsGTyIGjeEBtvY+g2p2clfaT3svOHOc+bqkdPnkKT0oPbV/A== X-Received: by 2002:a05:600c:19d1:: with SMTP id u17mr1996565wmq.148.1639001950477; Wed, 08 Dec 2021 14:19:10 -0800 (PST) Received: from redhat.com ([2.55.18.120]) by smtp.gmail.com with ESMTPSA id n1sm4102671wmq.6.2021.12.08.14.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Dec 2021 14:19:09 -0800 (PST) Date: Wed, 8 Dec 2021 17:19:04 -0500 From: "Michael S. Tsirkin" To: Arnd Bergmann Cc: Jason Wang , Wu Zongyong , Arnd Bergmann , Stefano Garzarella , Max Gurtovoy , Eli Cohen , Xie Yongji , "open list:DRM DRIVER FOR QEMU'S CIRRUS DEVICE" , Linux Kernel Mailing List Subject: Re: [PATCH] eni_vdpa: alibaba: select VIRTIO_PCI_LIB Message-ID: <20211208171830-mutt-send-email-mst@kernel.org> References: <20211203185522.692489-1-arnd@kernel.org> <20211208144916-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 08, 2021 at 10:31:03PM +0100, Arnd Bergmann wrote: > On Wed, Dec 8, 2021 at 8:56 PM Michael S. Tsirkin wrote: > > > > On Fri, Dec 03, 2021 at 07:55:14PM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > When VIRTIO_PCI_LIB is not built-in but the alibaba driver is, the > > > kernel runs into a link error: > > > > > > x86_64-linux-ld: drivers/vdpa/alibaba/eni_vdpa.o: in function `eni_vdpa_set_features': > > > eni_vdpa.c:(.text+0x23f): undefined reference to `vp_legacy_set_features' > > > x86_64-linux-ld: drivers/vdpa/alibaba/eni_vdpa.o: in function `eni_vdpa_set_vq_state': > > > eni_vdpa.c:(.text+0x2fe): undefined reference to `vp_legacy_get_queue_enable' > > > x86_64-linux-ld: drivers/vdpa/alibaba/eni_vdpa.o: in function `eni_vdpa_set_vq_address': > > > eni_vdpa.c:(.text+0x376): undefined reference to `vp_legacy_set_queue_address' > > > x86_64-linux-ld: drivers/vdpa/alibaba/eni_vdpa.o: in function `eni_vdpa_set_vq_ready': > > > eni_vdpa.c:(.text+0x3b4): undefined reference to `vp_legacy_set_queue_address' > > > x86_64-linux-ld: drivers/vdpa/alibaba/eni_vdpa.o: in function `eni_vdpa_free_irq': > > > eni_vdpa.c:(.text+0x460): undefined reference to `vp_legacy_queue_vector' > > > x86_64-linux-ld: eni_vdpa.c:(.text+0x4b7): undefined reference to `vp_legacy_config_vector' > > > x86_64-linux-ld: drivers/vdpa/alibaba/eni_vdpa.o: in function `eni_vdpa_reset': > > > > > > Selecting VIRTIO_PCI_LIB_LEGACY is not sufficient here since that is > > > only part of the VIRTIO_PCI_LIB support. > > > > > > Fixes: e85087beedca ("eni_vdpa: add vDPA driver for Alibaba ENI") > > > Signed-off-by: Arnd Bergmann > > > > > > Confused. These are all part of > > drivers/virtio/virtio_pci_legacy_dev.c > > > > and > > obj-$(CONFIG_VIRTIO_PCI_LIB_LEGACY) += virtio_pci_legacy_dev.o > > > > what gives? > > The patch was wrong, see > > https://lore.kernel.org/lkml/20211206085034.2836099-1-arnd@kernel.org/ > > for the correct fix. > > Arnd Oh, ok then, I picked that one up, that explains why the issue does not reproduce for me. -- MST