Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651965rdb; Mon, 4 Dec 2023 04:00:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKfemPaZt1v8Q1UNZFeE3hYIY2bjl0snir+7vYfnTYP7X39o2fVpBqP66CorSx4VMIPA8i X-Received: by 2002:a17:902:9692:b0:1d0:b9fb:bb7a with SMTP id n18-20020a170902969200b001d0b9fbbb7amr279790plp.41.1701691200825; Mon, 04 Dec 2023 04:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691200; cv=none; d=google.com; s=arc-20160816; b=DXEHaQtzOYHavh6yy0EydT3sxFrC+/sSBKBzH7z1I1mU68CpVjb+W+Il7GSv4KjBe2 iDAL2nBK/JRr2LLYGg8sKpZNmCTNCM5cxss1eHykPRuAIXvS7dPgfJp69MdUSLc40huu /gf0vv4nA7Q8HaYu8FN8gwWcpneAVZ0pKEg98KjJ2VjOND+Qa3oSLxmTyxIliJB7odRH laQk5gMSa9t27J6vRpRv+oYqgkQLy1yXxY09GqN8a1r3U5KSWY75YZ7NB1qkYguB4hZ4 aQ+2O9rM1Sv3M7vwAlaTaYeOJlRIeBYQpSi9sx0sJKXRxjxEYeVxFg51qSrB9780RSYT yF7g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vJYDzboJWecEj+qV6NUco0WCPnjY0+hRPgjrJKnhZVA=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=omh1goG9qmWl5qrr8L7rvyu6LP63UTtIwkWHEpdkyJRs85iYOnuLupV7rNmP3D/3fW EmEEB+oVKEiJ9DsFsK0gA/gXR4STcq8xYkuRHw65K3WJ5u1tGtlhPJqEtJbzjvcp+/nF CCCm7p6XWIZw6vvsTi1ESpSSqWw9H/pO12j8Xz5Astw9s4AsiZiffUzYBpPzodLeBPrA WR72Cr2SwHwoK1G20zab9X/Gau9Ut10aN+pdTPMJXUdK2DuOYfRPBwILccAArXtU7+cu E+C3Jq7B0y21YfhioLgdaobzyymdF2LDCafwp43rs8oe7XkpPySDwIH1fWBonzn9shx/ 965A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jDgmyixR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y10-20020a17090322ca00b001d09c539cd5si1825419plg.133.2023.12.04.04.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jDgmyixR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 86C2D805C711; Mon, 4 Dec 2023 03:59:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235417AbjLDL7o (ORCPT + 99 others); Mon, 4 Dec 2023 06:59:44 -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: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:59:58 -0800 (PST) From: Arnd Bergmann When this file is included before defining readq(), it misses the declarations for a couple of functions that now become unusable: lib/iomap.c:156:5: warning: no previous prototype for 'ioread64_lo_hi' [-Wmissing-prototypes] lib/iomap.c:163:5: warning: no previous prototype for 'ioread64_hi_lo' [-Wmissing-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' [-Wmissing-prototypes] lib/iomap.c:272:6: warning: no previous prototype for 'iowrite64_hi_lo' [-Wmissing-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 initial 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) -#include - #if defined(CONFIG_CPU_CAVIUM_OCTEON) #define war_io_reorder_wmb() wmb() #else -- 2.39.2