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 EE0B9A04BA; Fri, 2 Oct 2020 09:54:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7822C1D56D; Fri, 2 Oct 2020 09:54:23 +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 ABA141D56C for ; Fri, 2 Oct 2020 09:54:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601625259; 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; bh=JQBGvp9wFXfsM7tmqWHzuzsQge1SwZYdwZUNz1gZUr4=; b=VzMuGuf247S5Ezr5Y0P1EBaaHNpWEe9B4EtfKi40nLokV/BNZKIbOc981fDbLfTrleJmjp GaHoolXysRsVxe5THRaG2HMspfbaBzAMgw8/Ogq+vQcpW+625VPQaFXKcZXavtHyySJhjB q+XsZl0eJKojMg5rBn6attihebr+SYo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-128-W9J1FejyMJyvPScsx5CYyQ-1; Fri, 02 Oct 2020 03:54:15 -0400 X-MC-Unique: W9J1FejyMJyvPScsx5CYyQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 688338018A7; Fri, 2 Oct 2020 07:54:14 +0000 (UTC) Received: from localhost.localdomain (unknown [10.36.110.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id C0E8278831; Fri, 2 Oct 2020 07:54:02 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com, xiao.w.wang@intel.com Cc: Maxime Coquelin , stable@dpdk.org, Brandon Lo Date: Fri, 2 Oct 2020 09:54:00 +0200 Message-Id: <20201002075400.248206-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] vdpa/ifc: fix build issue with recent kernels X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. 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