From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B4535A04BC for ; Fri, 2 Oct 2020 10:33:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 896FA1D592; Fri, 2 Oct 2020 10:33:49 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 01DDA1C22C for ; Fri, 2 Oct 2020 10:33:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601627624; 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=xL8DizqIJ6R4y7MCoQ/gq8Z6cDkEp2uFVedqtKfT6sI=; b=eeH/Z1F5bmC2lYoqnEnVdqWYdeeMLY3sTiv25NwD0ebqUb5/isvDaIPpUKTsVwfCvuZgUu aVjGnO1XT68BdlOvm5zBxeTZU0hhRI3Jsa+1PFkHXGEOZCNwiLSeWqI8S5ocfe0lIzica4 j3vNCaNoWnjklL9YxcS338QlE7zAt2w= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-288-OfunRRdsPiCkMZNzz6Dyng-1; Fri, 02 Oct 2020 04:33:42 -0400 X-MC-Unique: OfunRRdsPiCkMZNzz6Dyng-1 Received: by mail-ua1-f72.google.com with SMTP id k6so291879uab.3 for ; Fri, 02 Oct 2020 01:33:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xL8DizqIJ6R4y7MCoQ/gq8Z6cDkEp2uFVedqtKfT6sI=; b=gmrdkotR7htTZRhv+b0mbR3K5j7BOm4mZWqWjnR5NWPVoqH7preV+yEXBwkSxxXq5Y EIhZNbijZZLlJKjIF1/7DJeyb3PjoDqdaTdRKrXrhmzjUmHm/MDYH9qwFDHY1B55VAJI pyHsiuytE//xPxzZGbzRbaqoxUS7eT/Dcew5itGSMLK8q29vF37evgPUs2dKi4Wr+V4T zuzo6b2z6ic6GHfDgu0t4b/KrWhoroqJhfnul/dLtj7hcodloabBHuvHd6MIdf/m3wT1 c7lUBY2VpQN1RhL9Hzs1Gscz4pp5B641I/98YZ7SasawxF3Fh4Ht8mmdbm6bei8zmc5+ A4BA== X-Gm-Message-State: AOAM5313fVuvHthYdq58je3bgjXyi9z2H+7GAImC5f46oLwm4uWKtqz4 PUxpauWIeQXOJIOEt4hvf+mIWFtw0h9GPyZRcRnmWJS0MyuPDHUn++Ee//mbaQ8hZH6wB4rrlWI X7ttqH2aXGMRbgmlDPUp8vTs= X-Received: by 2002:ab0:20a:: with SMTP id 10mr340959uas.86.1601627622209; Fri, 02 Oct 2020 01:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfB+kipiU17tFeqqStYscT3RhS6s+UZ9UjHtuAnUAP58Of2qMg5RrLQ7KGFdbnWDGZwWKU7hQRCztZvRU6hhI= X-Received: by 2002:ab0:20a:: with SMTP id 10mr340953uas.86.1601627622025; Fri, 02 Oct 2020 01:33:42 -0700 (PDT) MIME-Version: 1.0 References: <20201002075400.248206-1-maxime.coquelin@redhat.com> In-Reply-To: <20201002075400.248206-1-maxime.coquelin@redhat.com> From: David Marchand Date: Fri, 2 Oct 2020 10:33:31 +0200 Message-ID: To: Maxime Coquelin Cc: dev , "Xia, Chenbo" , Xiao Wang , dpdk stable , Brandon Lo Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH] vdpa/ifc: fix build issue with recent kernels X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Fri, Oct 2, 2020 at 9:54 AM Maxime Coquelin wrote: > > VIRTIO_F_IOMMU_PLATFORM is now defined in recent kernel > headers, causing build issue. > > Le's define it in IFC vDPA driver only if wasn't already. Let's* define it in the* IFC vDPA driver only if it* wasn't already. > > Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver") > Cc: stable@dpdk.org > > Reported-by: Brandon Lo > Signed-off-by: Maxime Coquelin > --- > drivers/vdpa/ifc/base/ifcvf.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/vdpa/ifc/base/ifcvf.h b/drivers/vdpa/ifc/base/ifcvf.h > index a288ce57dc..573a35ffb4 100644 > --- a/drivers/vdpa/ifc/base/ifcvf.h > +++ b/drivers/vdpa/ifc/base/ifcvf.h > @@ -13,7 +13,10 @@ > #define IFCVF_SUBSYS_DEVICE_ID 0x001A > > #define IFCVF_MAX_QUEUES 1 > + > +#ifndef VIRTIO_F_IOMMU_PLATFORM > #define VIRTIO_F_IOMMU_PLATFORM 33 > +#endif > > /* Common configuration */ > #define IFCVF_PCI_CAP_COMMON_CFG 1 > -- > 2.26.2 > Acked-by: David Marchand -- David Marchand