Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651293rdb; Mon, 4 Dec 2023 03:58:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1jvfZ0MC3XOPPfeoMVl6CnG/bYYlWWiMQhp54sAvLWOchY/mQzo+vt4dm6ntEwgn2Chz+ X-Received: by 2002:a05:6a00:8e0a:b0:6ce:3836:b49f with SMTP id io10-20020a056a008e0a00b006ce3836b49fmr1410305pfb.51.1701691110253; Mon, 04 Dec 2023 03:58:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691110; cv=none; d=google.com; s=arc-20160816; b=q0ZP/qpqi7UMZ1+sO0R+xiK9CxlBU/K7K4uuR62ASn2yDGkc1T7gQgm8AuG5mWKRdl B6PwRhHmnqr8MNvafZaxwCVrZS0gBiWOzS04lF/a8JqBpAQZYmI/rwc5twCnz4gva7pX eue0Fpd/aiaGdavmiIuGlflcgNJ3vJ22p7mPPNXBCkHTN/kvFoE88VDIzcgFI8jjCPEg VUxEW2f5jtpm0TFmqkGD8oI2/7eWzBAus3md9fkblj94YtWuFKdLGPo2uuePYIRoic6I yJZQ9s+njQ4Szgdiim2KbCUytuKD7nfW+ClVllmxDjdAGzHqSlG10RDhx0v09vR5XPVH Da6g== 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=0QXjkXNwUWLt6qex24lidHZQNqfbrNxNN4xrZcP5RE4=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=hyl60NhfCfO1YHq2jUh9plSbzzLL42SGXRjXFudXHRygkn+BXJnJLgyErJQkfNUv5b XIIiU8Dtjv0mEFOuCe0T3S82UnQXV1wRMqRSp6q8pzsD3ZMz90lEqTSL/k2K438gwAFp wEqDtUSmAbRHGIGRcDfZW+PFAAMlGxPvoVI4NzOWanQI2rSntu7zQhevaMkYMDfu/BYH FF9h/rJVo7vYwVkkLY1/8SZwwUJ5nBrrzlMHVnO/NsmAPBtNl2KrKOsh0YJxR1F+CQai FfAiKF3dEpMWSM+y2vfGQOWYW8H/7OuJDl5tdGvA1HNaI9UeB4HPje3NAuNYPcM0gk8/ y8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pUskY87v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id f35-20020a631f23000000b005c688dc20ecsi1732360pgf.510.2023.12.04.03.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:58:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pUskY87v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id BA94080A6EDA; Mon, 4 Dec 2023 03:58:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235391AbjLDL6E (ORCPT + 99 others); Mon, 4 Dec 2023 06:58:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjLDL53 (ORCPT ); Mon, 4 Dec 2023 06:57:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA9E11702 for ; Mon, 4 Dec 2023 03:57:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB8E3C433CB; Mon, 4 Dec 2023 11:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691047; bh=bYK15xB2ytVHbb2n+GAjb9+qJ0IKJuMx6deotQJ5QHM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pUskY87vBF60hK9aIEAt+QS0uxWl+d8yqh+vB1rNFa5tCPcB1nVNU2xouUhVSWRYT QrGULGl3xtt9ik9oAaqSQdF5Aur/ON4iNB0wFxdeq2oG9+PFBJSPooGbmOjjQoZRif W+mJcmTkeynW7TIMiaiE5h5Uvg7hLOTUb8aSgiutEpw13EmupBFUHTi3/+Yozqfsof G06QdLFYU5Thu3KXXba3mhvxn30pJBQboP2qTo493jllAnzHgO+Cv2oSrpPnPEBz0+ oIKpK/1JKzpFSesSvtuWCylh7kTNWONeaLb4KX1nY/umzQjBHYu5C+Kvdhdulj0GzB zXfxSkOLZ2Dew== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 04/20] mips: rs870e: stop exporting local functions Date: Mon, 4 Dec 2023 12:56:54 +0100 Message-Id: <20231204115710.2247097-5-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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:58:26 -0800 (PST) From: Arnd Bergmann These four functions are exported, but don't have any users, and no prototypes, which now causes warnings: drivers/platform/mips/rs780e-acpi.c:35:6: error: no previous prototype for 'pm_iowrite' [-Werror=missing-prototypes] drivers/platform/mips/rs780e-acpi.c:41:4: error: no previous prototype for 'pm_ioread' [-Werror=missing-prototypes] drivers/platform/mips/rs780e-acpi.c:47:6: error: no previous prototype for 'pm2_iowrite' [-Werror=missing-prototypes] drivers/platform/mips/rs780e-acpi.c:53:4: error: no previous prototype for 'pm2_ioread' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- drivers/platform/mips/rs780e-acpi.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/platform/mips/rs780e-acpi.c b/drivers/platform/mips/rs780e-acpi.c index bb0e8ae0eefd..5b8f9cc32589 100644 --- a/drivers/platform/mips/rs780e-acpi.c +++ b/drivers/platform/mips/rs780e-acpi.c @@ -32,29 +32,25 @@ static u8 pmio_read_index(u16 index, u8 reg) return inb(index + 1); } -void pm_iowrite(u8 reg, u8 value) +static void pm_iowrite(u8 reg, u8 value) { pmio_write_index(PM_INDEX, reg, value); } -EXPORT_SYMBOL(pm_iowrite); -u8 pm_ioread(u8 reg) +static u8 pm_ioread(u8 reg) { return pmio_read_index(PM_INDEX, reg); } -EXPORT_SYMBOL(pm_ioread); -void pm2_iowrite(u8 reg, u8 value) +static void pm2_iowrite(u8 reg, u8 value) { pmio_write_index(PM2_INDEX, reg, value); } -EXPORT_SYMBOL(pm2_iowrite); -u8 pm2_ioread(u8 reg) +static u8 pm2_ioread(u8 reg) { return pmio_read_index(PM2_INDEX, reg); } -EXPORT_SYMBOL(pm2_ioread); static void acpi_hw_clear_status(void) { -- 2.39.2