From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 0EDC6A034C;
	Thu, 22 Dec 2022 16:36:03 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id F39E14282D;
	Thu, 22 Dec 2022 16:36:02 +0100 (CET)
Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com
 [209.85.219.175])
 by mails.dpdk.org (Postfix) with ESMTP id 6FE474282D
 for <dev@dpdk.org>; Thu, 22 Dec 2022 16:36:01 +0100 (CET)
Received: by mail-yb1-f175.google.com with SMTP id t15so2371403ybq.4
 for <dev@dpdk.org>; Thu, 22 Dec 2022 07:36:01 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=DunJRmj1RAy6PspVKcge6gk5eLUL2wYdjj26+jcp8Bk=;
 b=yWYDgaI0rPcW0AfiJZV9r5x+T9qMWDlIW002KcdZbGm+o1I7Kq+SjdLrDrr1vX3MbJ
 KgGwLBnD9QU5v+MkkwW9YDV7z1ACLGJaQ4e70Xwi5hR4OUlrzkZ8MQwKfYi8HLolX80C
 WttAH7OfRyrl8l1aKAUXCuCais9tppSL7bhzP+fK3fse6XN0VUW/4MHSN2Bx5XDmuCkv
 8c1zz6HSVJAncfiV9BDR4Vo1zRQXn7mDC9Jt+MyWgsw2m/Fx1Lw08WDUgFlcPhf/+xhP
 /8JjuGTSHqq8hq66+Oz1DqRsWs6knS7w5wXbDSi5x5zKgksUyEpZKZx59NnpXX5aLnX9
 uf7Q==
X-Gm-Message-State: AFqh2kpMRjI+MZAqtOwfkRUGdM7R+kVGyTump3Zu6GkDziQuGVEPlLNs
 QKcwFrfkZpLzHmjI9oJc1PUfSJj5wST+L7LA
X-Google-Smtp-Source: AMrXdXv1pX1ik7wN5OO7aq5GdQo0fpzYnZJXiGtc3nZGnJ847d2EbBK20fSyVdWJohRS/ualPD3Zbg==
X-Received: by 2002:a25:e004:0:b0:702:9bb5:322d with SMTP id
 x4-20020a25e004000000b007029bb5322dmr6503317ybg.16.1671723360603; 
 Thu, 22 Dec 2022 07:36:00 -0800 (PST)
Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com.
 [209.85.128.172]) by smtp.gmail.com with ESMTPSA id
 bs7-20020a05620a470700b006b61b2cb1d2sm505940qkb.46.2022.12.22.07.35.59
 for <dev@dpdk.org>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 22 Dec 2022 07:36:00 -0800 (PST)
Received: by mail-yw1-f172.google.com with SMTP id
 00721157ae682-45c11d1bfc8so31224037b3.9
 for <dev@dpdk.org>; Thu, 22 Dec 2022 07:35:59 -0800 (PST)
X-Received: by 2002:a81:6657:0:b0:3ed:6b33:1f32 with SMTP id
 a84-20020a816657000000b003ed6b331f32mr782006ywc.131.1671723359711; Thu, 22
 Dec 2022 07:35:59 -0800 (PST)
MIME-Version: 1.0
References: <20221216115732.3552650-1-ferruh.yigit@amd.com>
In-Reply-To: <20221216115732.3552650-1-ferruh.yigit@amd.com>
From: Luca Boccassi <bluca@debian.org>
Date: Thu, 22 Dec 2022 15:35:48 +0000
X-Gmail-Original-Message-ID: <CAMw=ZnSC3o+5oZrh4TcUt1JK93LQxeJ_DzxA44zTXkzfmLmN_w@mail.gmail.com>
Message-ID: <CAMw=ZnSC3o+5oZrh4TcUt1JK93LQxeJ_DzxA44zTXkzfmLmN_w@mail.gmail.com>
Subject: Re: [PATCH dpdk-kmod] linux/igb_uio: fix build with kernel 5.18
To: Ferruh Yigit <ferruh.yigit@amd.com>
Cc: Thomas Monjalon <thomas@monjalon.net>, dev@dpdk.org, 
 David Marchand <david.marchand@redhat.com>, Daxue Gao <daxuex.gao@intel.com>, 
 Christian Ehrhardt <christian.ehrhardt@canonical.com>
Content-Type: text/plain; charset="UTF-8"
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

On Fri, 16 Dec 2022 at 12:57, Ferruh Yigit <ferruh.yigit@amd.com> wrote:
>
> In Linux kernel v5.18, "pci-dma-compat.h" wrapper file is removed [1].
>
> Some APIs in that wrapper file were used by igb_uio kernel module and
> kernel module build fails after mentioned commit.
>
> Fixed build for v5.18 by replacing APIs in igb_uio.
>
> Replaced APIs are available in Linux v4.4 (minimum Linux kernel version
> supported by DPDK), so no Linux version check is needed.
>
> [1]
> Commit 7968778914e5 ("PCI: Remove the deprecated "pci-dma-compat.h" API")
>
> Bugzilla ID: 1142
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com>
> ---
> Cc: Daxue Gao <daxuex.gao@intel.com>
>
> Cc: Christian Ehrhardt <christian.ehrhardt@canonical.com>
> This also needs to be backported to v19.11 LTS
> ---
>  linux/igb_uio/igb_uio.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)

Tested-by: Luca Boccassi <bluca@debian.org>