From nobody Mon Dec 29 00:36:53 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71B07C4167B for ; Mon, 4 Dec 2023 11:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235434AbjLDL7q (ORCPT ); Mon, 4 Dec 2023 06:59:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbjLDL6w (ORCPT ); Mon, 4 Dec 2023 06:58:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EA6A1BE9 for ; Mon, 4 Dec 2023 03:57:50 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 416CEC433CA; Mon, 4 Dec 2023 11:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691070; bh=I6e6Jdsd6eFyhDh9BLUZ1O2SCcl426/1L6UNxcB9EvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jDgmyixRN4sf7gYD8vVt4DZLUwhlb20yLc5VtWPWNFQvoj8+0VvqLydiBOCPyG0Y1 isQ0RKV78VcuIhioHT8TlHcGaG+6Btq89S1SapqHdQjMfcV/JGcAnMIrwT36TxRpBu eMoZV3OW66g6+CVBlEWoFZElyiaeJtc1hGX0uqv8noA3o1K9rtMpDpSR1/Al5mZQrb 4yT36qMUpu00hCWgacT1FxpI1IdMay1rj66/86cgSFl1B91NSM+sEKZmRQUOLiPrZq bwKglKYsSbljMAGaU5pdrXBebAN15jFI4Gf60NNL5aSrrxZhP6uIJlmkKVhETL8bkB W/xrMj/D6OW6Q== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 16/20] mips: remove extraneous asm-generic/iomap.h include Date: Mon, 4 Dec 2023 12:57:06 +0100 Message-Id: <20231204115710.2247097-17-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231204115710.2247097-1-arnd@kernel.org> References: <20231204115710.2247097-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann When this file is included before defining readq(), it misses the declarati= ons for a couple of functions that now become unusable: lib/iomap.c:156:5: warning: no previous prototype for 'ioread64_lo_hi' [-Wm= issing-prototypes] lib/iomap.c:163:5: warning: no previous prototype for 'ioread64_hi_lo' [-Wm= issing-prototypes] lib/iomap.c:170:5: warning: no previous prototype for 'ioread64be_lo_hi' [-= Wmissing-prototypes] lib/iomap.c:178:5: warning: no previous prototype for 'ioread64be_hi_lo' [-= Wmissing-prototypes] lib/iomap.c:264:6: warning: no previous prototype for 'iowrite64_lo_hi' [-W= missing-prototypes] lib/iomap.c:272:6: warning: no previous prototype for 'iowrite64_hi_lo' [-W= missing-prototypes] lib/iomap.c:280:6: warning: no previous prototype for 'iowrite64be_lo_hi' [= -Wmissing-prototypes] lib/iomap.c:288:6: warning: no previous prototype for 'iowrite64be_hi_lo' [= -Wmissing-prototypes] The file is included again later from asm-generic/io.h, so dropping the ini= tial include statement makes it do the right thing, both for avoiding the warning and for actually providing these functions. Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/io.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index b0866100baf2..85bbd967e05f 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -187,8 +187,6 @@ void iounmap(const volatile void __iomem *addr); #define ioremap_wc(offset, size) \ ioremap_prot((offset), (size), boot_cpu_data.writecombine) =20 -#include - #if defined(CONFIG_CPU_CAVIUM_OCTEON) #define war_io_reorder_wmb() wmb() #else --=20 2.39.2