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 1AC82A0542; Mon, 24 Oct 2022 17:35:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 562F742C10; Mon, 24 Oct 2022 17:33:22 +0200 (CEST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mails.dpdk.org (Postfix) with ESMTP id 2ABDB42D53 for ; Thu, 20 Oct 2022 15:00:47 +0200 (CEST) Received: by mail-ej1-f45.google.com with SMTP id k2so47241265ejr.2 for ; Thu, 20 Oct 2022 06:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=hXolWUgtSypOzk5SfEfzJxoxZO7r3L/E3xejffb1+WQ=; b=hAiQicD5QrEVqv9UDmgV5596+Qe5OXCAwKZFoVyma6rEJJcULMhoPveav3aMd5toa8 8A2WSnLzx7w8loU7Vzne20jUhuSVjzy+FK1rn+CMUw08zJkhd4o07WMRo4NLP91nLlpK EwnwoBlKQrobo7+sZ1x6DkKu1ysV1Sutlh3TPVMRUBM+9QcpiMa6LlGIG4n+/pxnTCBe JmPLj5qOl8YTKWidr7w2jjAwlpGesxdPiyITMMxICZYuHm0/sEc9r/Ly8NH84E1v2GAn bUnemgSahXVrRL0h/XsM3gTLDm8H7uGl8mz9Numm0MrgrPxKjJNkI/vNlybhpFUaP+am SyYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hXolWUgtSypOzk5SfEfzJxoxZO7r3L/E3xejffb1+WQ=; b=YzuLaNjsyvAY8Za53zQ1gvI0A/HkOGWG08j2Cpcs4O05Mth52RHAE+RWTV1thdrkVF 8YKwdrJ8bk9Q0nGt1ixkHMt1vFu7JJKEZ74oN7rriOJI78O0G1yFkZpKy1ZdN7ruUGwA WSstar5AcckSD7bW02lqCzeIsZi83LxUWIqe4RiEXQCpFS5xKTmqfIq29zZw3poZ/2aI VXPxqJullGvLoVq0EB0mPXtt19yzhTaeXz3zXkbU81hTMLGZS26FQh45VqoV5hH/rxr9 ufVQ+JC6gjcjnP5j1DJh7AypJ4XT976aBAJAV/l8HVGk/eZeUtDhSmuoOiw8BBSOP/zi P99w== X-Gm-Message-State: ACrzQf06e/djYOBlMn1QBT7GIJOj0c3EAybMzKzwXiQbS/B1POa1O6Ml 9J5pvIp9rpjGJmZkbaS/SEKtGb0mJwo= X-Google-Smtp-Source: AMsMyM52iwnNQ0l5fzVALjesWeUVQJU56QEzyMNbIKEcJhYHEjHUoVB2ax7y/m9jc9bWYo87LCg7mw== X-Received: by 2002:a17:906:ef8f:b0:78d:fa64:275b with SMTP id ze15-20020a170906ef8f00b0078dfa64275bmr10643682ejb.663.1666270846168; Thu, 20 Oct 2022 06:00:46 -0700 (PDT) Received: from lb-desktop.. (82.166.25.178.fix.netvision.net.il. [82.166.25.178]) by smtp.gmail.com with ESMTPSA id f19-20020a056402195300b00459cd13fd34sm12205902edz.85.2022.10.20.06.00.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 06:00:45 -0700 (PDT) From: Leonid Bloch To: dev@dpdk.org Subject: [PATCH dpdk-kmods] linux/igb_uio: Adjust functions to the current kernel API Date: Thu, 20 Oct 2022 16:00:44 +0300 Message-Id: <20221020130044.17710-1-lb.workbox@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 24 Oct 2022 17:33:01 +0200 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 After commit 7968778914e53788a01c2dee2692cab157de9ac0 in the upstream kernel (v5.18+) The functions pci_set_dma_mask() and pci_set_consistent_dma_mask() are deprecated. Replacing them with the new substitute (to avoid a compilation error). Signed-off-by: Leonid Bloch --- linux/igb_uio/igb_uio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/igb_uio/igb_uio.c b/linux/igb_uio/igb_uio.c index 33e0e02..a9db90d 100644 --- a/linux/igb_uio/igb_uio.c +++ b/linux/igb_uio/igb_uio.c @@ -512,13 +512,13 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) goto fail_release_iomem; /* set 64-bit DMA mask */ - err = pci_set_dma_mask(dev, DMA_BIT_MASK(64)); + err = dma_set_mask(&dev->dev, DMA_BIT_MASK(64)); if (err != 0) { dev_err(&dev->dev, "Cannot set DMA mask\n"); goto fail_release_iomem; } - err = pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64)); + err = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(64)); if (err != 0) { dev_err(&dev->dev, "Cannot set consistent DMA mask\n"); goto fail_release_iomem; -- 2.38.1