From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; Thu, 22 Dec 2022 16:36:01 +0100 (CET) Received: by mail-yb1-f175.google.com with SMTP id t15so2371403ybq.4 for ; 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 (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 ; 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 Date: Thu, 22 Dec 2022 15:35:48 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH dpdk-kmod] linux/igb_uio: fix build with kernel 5.18 To: Ferruh Yigit Cc: Thomas Monjalon , dev@dpdk.org, David Marchand , Daxue Gao , Christian Ehrhardt 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, 16 Dec 2022 at 12:57, Ferruh Yigit 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 > --- > Cc: Daxue Gao > > Cc: Christian Ehrhardt > 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