From nobody Wed Apr 13 23:09:48 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 03C6D1B414C5; Wed, 13 Apr 2022 23:09:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdywY2D2Cz4m9w; Wed, 13 Apr 2022 23:09:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WvQXaUI/K79sy6oMyN8lre+UKAbtDb/mbTLs2r19pto=; b=GdZVMvT2E0oZBM8yBO+xCbNIbFvNrjBDgLynZBhKakgTP9eoQ6/ZaM5MTQ2sM9vl5xhL2K EW9hTmJcgP6dEBueSN73YsAlgtCoBeJgel9TlO+7h6t4bbFkO7QWf19XwpjJW2hG52rMOq F3zsIr87p7uZkR4u2BKJddOek11RnIesZcHwDFtHyxoUcdjl2KHcdcqlaZ/a9vH5cR+h9c jvGragT1Hi+lDgDVSaXHnIvOsa1otqF8CEGS+8QL22Gyko03XUTVs06ueJY81mchMEFSA7 l18tdjQZExQH0FmffJZyJ1891bjdt6wDlEnhMZWxlkY1EaEafAk8b51UlYlUrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BBBB915404; Wed, 13 Apr 2022 23:09:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23DN9mLM074865; Wed, 13 Apr 2022 23:09:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9mGQ074864; Wed, 13 Apr 2022 23:09:48 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:48 GMT Message-Id: <202204132309.23DN9mGQ074864@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 34dae08e6c1c - main - linuxkpi: Use an inline function for the _ioremap_attr stub. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 34dae08e6c1cc8a5f3fcffb2edd5fc9123700ba6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WvQXaUI/K79sy6oMyN8lre+UKAbtDb/mbTLs2r19pto=; b=pgQhWE4yBLc17szJO5D00nfXHYsss4qqItl4Aiw8h8MYzVhmTtCAB7rrs9PYwBkx02malH uoJoROm+i5nAL8NXyrUrUpCuzwrTO8hYZUdNorROkyRAss51KEf06nlGW3ha0LnGZvhNhy x9LhqSTdyCftgUGsAVDutIxGhxH4OF04ROLz4kkh75Y8u88lQSc3OUf7dQcDoYlnfTmLDy 5avRX0+Ef/6p2v38TY4K3oKXtB8Re5H4zUE4H91QkvG3JNt4bwAkNFaTM3KvWJp+fk6mlI M9yoXFkDL0HiGQVC5GERnWydJYL71/XWCvtdpWHth9sVGnHxpcFjdplJUuB1Ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891389; a=rsa-sha256; cv=none; b=bSjhnohZo3U0eTrpphUZ8ALQsl/HfvofCk6fKfIiS+kYlpJ6q972tUBsr2szC5iA+H54if cPHo6olz1+p/vH68aHrvmZnpBQxmdw6iJKIwUOUq9nNMfMP2Gqo11/FaEw9YqzSPQSvjPb GGhAlEGWxKwmpJT1bY9XIv4UQTbzZN32/c020Y12oMYe51hN6zT+KghUCz9iLKdEqbhH4k k19swUQgFIhHTAvOn6npby8uics1SUjEPq+sRrcTkzdKZahJnm5t6VRN+w0aVTQgkIZPwk xieOcsL0/AukTjiYJ6yc2Y7KEKzzJnYn2DmGHhj1vCghNKjvcZ0lLWCITscybg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=34dae08e6c1cc8a5f3fcffb2edd5fc9123700ba6 commit 34dae08e6c1cc8a5f3fcffb2edd5fc9123700ba6 Author: John Baldwin AuthorDate: 2022-04-13 23:08:22 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:22 +0000 linuxkpi: Use an inline function for the _ioremap_attr stub. This "consumes" variables passed to ioremap*() avoiding set but unused warnings. --- sys/compat/linuxkpi/common/include/linux/io.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index d2ebf7e328cf..0790e518a1a3 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -393,7 +393,11 @@ _outb(u_char data, u_int port) #if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__) || defined(__riscv) void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr); #else -#define _ioremap_attr(...) NULL +static __inline void * +_ioremap_attr(vm_paddr_t _phys_addr, unsigned long _size, int _attr) +{ + return (NULL); +} #endif #ifdef VM_MEMATTR_DEVICE