From patchwork Mon Sep 27 14:15:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 514719 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp4162671jao; Mon, 27 Sep 2021 07:15:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7mv144lU/Dx1TZsXPNXuWJofmrD9CvAFBJxoF0Uve9306mpD+6MV/6M/w0VxnP5Q/XNGd X-Received: by 2002:a17:90a:2e0e:: with SMTP id q14mr157630pjd.171.1632752138320; Mon, 27 Sep 2021 07:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632752138; cv=none; d=google.com; s=arc-20160816; b=N9NbyI9r9IG+eNP6DyRYwpaC9YQUJ0YlisKa1gJvNNcc+PWLISPHLUurYfBo8iOqqr 57q9/VN5PyTvw5NFOVubcFbj4YI2gsi/77a1qBjrPXjIdxp3PDl21doRAvm0XsDjLicD CZ2WqtYYKBYfUlYHUDQ3GJUIgCrd033B1+uRw9NkTaTanONbFWKEuyh2WZdndb9b8iTA KpVU8rbgT9EfrfR3qHp+gioIkB59YangNni6hmUFYvDzrFJI02PXvIBOKJGtQ2BNwd0K log/fklY2cmeZ9G0sTYK4boNJpfhpcYQCqDla+u+SmUpVJcOrvM3rqaNCvz/wNTHTdLy 71mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=otTLC9BxiXShxsrN9Eje6stbNNlcGLPYKQUHKTHrj1I=; b=eRUhQdU4/ekluBRrZi/+8XU+gvii2fOeMZWvSoNjjz7mm8VuXOfq7DszcXaTnbymjo fYXXLtM33lJknx3/PwMwp7IX1mSKX/cYYFWXF1krfA8dEwtFwnvG9QwbIpz2GQsr/4cy 1A7E2klJz+T7+kE72z7+hb1ULLRhDCDKX1LHr0pRUtAkj0i1o4Gi/+5/4GraENoCAF9o WWj/eBfvrR7CMuvFNCIuduxSwzzUsK3tfC/EYf6DqG9tG56DxzSY2x/WJ9xUCBtBImaw q89on72ke01jlX4pphL4Km6XGoxcCxDHrK7mZ17LHx0ItNOBOuTGsWq+MHHMJ5zHQVua 0eSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZN24zF99; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si20965356pff.177.2021.09.27.07.15.35; Mon, 27 Sep 2021 07:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZN24zF99; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234747AbhI0ORL (ORCPT + 8 others); Mon, 27 Sep 2021 10:17:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:58318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234682AbhI0ORL (ORCPT ); Mon, 27 Sep 2021 10:17:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E82DF6113A; Mon, 27 Sep 2021 14:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632752133; bh=JMUuQhsPUSWFNQbmuQaLIk/pVKNby0xD64MgB2oLDWQ=; h=From:To:Cc:Subject:Date:From; b=ZN24zF99o/cDwJxYkoVnMpPZUTKXpZv2w3I2wweizbjQD0sS03ZSvVA36Yh8D5dKG daV0bBJHJ3Tx7r+FLCT1RXjuND3FkNs44azOWwPpuuSrQY3MIwtF1h1kH6Qy5bVzit mRCco9OYW3Jyy7lb/mpBetauBH1rh7vCu+Hw2Njdk2bKptxik0FG5dXGaSt8OSvY5o kZ3BuehrG75BPFZhdLxouUgmAE7HkVy0W5zaTk3RzlhKLm4qoavpuhTs41flzkuKeM P2iI52MA+xr/RO5dN27ACLy9x4OMHr/7v1crUZ/1HNvjfjbEi9ariZBYuO37Ro/R5i opB4OKc6pSXlA== From: Arnd Bergmann To: "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dmascc: add CONFIG_VIRT_TO_BUS dependency Date: Mon, 27 Sep 2021 16:15:24 +0200 Message-Id: <20210927141529.1614679-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann Many architectures don't define virt_to_bus() any more, as drivers should be using the dma-mapping interfaces where possible: In file included from drivers/net/hamradio/dmascc.c:27: drivers/net/hamradio/dmascc.c: In function 'tx_on': drivers/net/hamradio/dmascc.c:976:30: error: implicit declaration of function 'virt_to_bus'; did you mean 'virt_to_fix'? [-Werror=implicit-function-declaration] 976 | virt_to_bus(priv->tx_buf[priv->tx_tail]) + n); | ^~~~~~~~~~~ arch/arm/include/asm/dma.h:109:52: note: in definition of macro 'set_dma_addr' 109 | __set_dma_addr(chan, (void *)__bus_to_virt(addr)) | ^~~~ Add the Kconfig dependency to prevent this from being built on architectures without virt_to_bus(). Fixes: bc1abb9e55ce ("dmascc: use proper 'virt_to_bus()' rather than casting to 'int'") Signed-off-by: Arnd Bergmann --- drivers/net/hamradio/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/net/hamradio/Kconfig b/drivers/net/hamradio/Kconfig index f4843f9672c1..441da03c23ee 100644 --- a/drivers/net/hamradio/Kconfig +++ b/drivers/net/hamradio/Kconfig @@ -48,6 +48,7 @@ config BPQETHER config DMASCC tristate "High-speed (DMA) SCC driver for AX.25" depends on ISA && AX25 && BROKEN_ON_SMP && ISA_DMA_API + depends on VIRT_TO_BUS help This is a driver for high-speed SCC boards, i.e. those supporting DMA on one port. You usually use those boards to connect your