Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1630756lqm; Fri, 3 May 2024 01:13:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVknSm6993GFPSbo96/2PGJQq6w9MaI+3Vprm1ssgF3gmEiuzMDG+07vZnvsWa2507ZuKCZsC77SksW5sEU4vvUwmTaY6/HKd4eONDyFw== X-Google-Smtp-Source: AGHT+IE13gtDZlndyqscsN2tv2CwoI7Unx2OpGQjHo8IN8HPWPoPhgdYHD7q8pYsXCQ5HSo3pRmi X-Received: by 2002:a05:6871:33a9:b0:23c:b686:f5a with SMTP id ng41-20020a05687133a900b0023cb6860f5amr2306225oac.49.1714723986642; Fri, 03 May 2024 01:13:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714723986; cv=pass; d=google.com; s=arc-20160816; b=BweZukhD1EqtvaHbCtY93sezwVYDLexliFhpi9+gbqLTF/gqvhkR5iBD2D2VeCIe1p Abbol2z3tA7JrjjOvTCQ2r9jGuUqpZeRRN3xY1lM1rs/62/tIql4zAWJjLr/EVxKpjch pEhhwsXGjjRqnpbkO2mggBUG6btjKFBcchW6PrZMDbE4bJbIeFiPiG1zC5TzKxGfiz6C TannlR1hCnFWUUwAKxQYk6UaOFt0vXNHity7z8PUi2Wi8wB+TZIILplI2xeaoIWuFMIV wOLchvKCZZl4ofrXFm5a3bk2/fAtyskN/nF8iO+W+nDiysBMddNi6r/fGkgvEijWlHmr E5AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EQDOiREA8QAKLhyJwZJypQ3HZE6uHbpxVlYvDNyp57g=; fh=KsdebulFSTDgUgDP2OamvZF2uEg8nzoUdEjFl7UPhdc=; b=LKKUHD5+d5OXAg07D+Qt3TJpHDG+w5FYKh9YalBwQd8k2PEP5YXJIiyCJTeHCzuJ2O u9ohIYq2JBenmx9qYcSbBBy18lJaLBLhh9I2iV2EmmF7EqXmM1c0oa6fBIqfBIfMymg+ 3maKVFRFo+XP5Sn/BuI4sBJ6o5rrgxt84W2x+GZIGIbA/UX6/5WpJuz1n/CmZ7g6ir/I 9k9S5pEpiZ6JUymdUhxqHE2ak9Eyh6uCX4doq0Np/TOxOMJDdYfVXQ27TQgoBtVrneGh n1YLlhYgYRIsicu2KrV5dK4IA2eLo6nP6Vg+u5exjT3Xg27/16pHKxQSr8SxiR8BZyhX sDTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BUkgCLib; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r22-20020a62e416000000b006f44ac2bf49si1022553pfh.204.2024.05.03.01.13.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 01:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BUkgCLib; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F1810282E1E for ; Fri, 3 May 2024 08:13:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 812E114885A; Fri, 3 May 2024 08:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BUkgCLib" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 871AD14EC5E; Fri, 3 May 2024 08:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723937; cv=none; b=czm4cCNhiqdlbcNELpt4rrGFwXUMDmcDopHMCRqmG07cuqeCnN9qk+SU0TLP4YZsxDoC5uVDdBWhz1vhodozCIzW6nzFc1SEASIsoANu49FLRPwpqre7c2f8RyRRKLVrT5YFim7La5Awok09Sk729Zgm+qbspGA1uQX1U+QZWEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714723937; c=relaxed/simple; bh=RytdZHmYvHip2W4dxB0Jwgs5syvGgFQXYO0pQDh3dkI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J+K3ig63JDc+DInjQpJTuStkm9+6Lq+S3jJE5iQxdk5A6A+oz3/UwvR7IpTyViH8zjFP5yUTJewKtbqtCvHrmg2/2XeY9td/yNckVD9lzQrmt9D9hCvsVsAqVW9Fs6DrDBjiqM+dohT0zIT5ABL8hCklbKOAdvCJnpuSguGYSPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BUkgCLib; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E01A5C4AF18; Fri, 3 May 2024 08:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714723937; bh=RytdZHmYvHip2W4dxB0Jwgs5syvGgFQXYO0pQDh3dkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BUkgCLibJmcIOxxisMKrkL2Zvo/7en8jAYthv3g5iCCp5HJeObcZ94jHz6vDUWvV3 aJe0JoB3BWbMz11QdE35FaxK+CzGPR90p0ID+xs2IxbbQ45aN8OdNrC5bF+liH+xQL vrZxA0lrfMuC2zEGwEJ+cyhatCbhI7QDqPZDwCNMRPFVYprjpwArgFePeZ9YIM13+p YaCtXmks62t6tdEoSMAyNwSTqRrZaFjpItEwDuT2Nt2YDQajLm1Fo7hqwdxshgjjgF 979w0vF+jwYlAMpF8nQ16/bnxSJVhvUVi+V3kMCtQU6uDx0+i0kGy9uvTffBKbBNMJ Xy9PkPFF7eKGA== From: Arnd Bergmann To: linux-alpha@vger.kernel.org Cc: Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , Alexander Viro , Marc Zyngier , Linus Torvalds , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: [PATCH 04/14] alpha: don't make functions public without a reason Date: Fri, 3 May 2024 10:11:15 +0200 Message-Id: <20240503081125.67990-5-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240503081125.67990-1-arnd@kernel.org> References: <20240503081125.67990-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Al Viro if it's really used only inside the same source file, make it static... Signed-off-by: Al Viro Signed-off-by: Arnd Bergmann --- arch/alpha/kernel/core_cia.c | 6 +++--- arch/alpha/kernel/core_marvel.c | 2 +- arch/alpha/kernel/core_wildfire.c | 8 ++++---- arch/alpha/kernel/perf_event.c | 2 +- arch/alpha/kernel/smc37c669.c | 4 +++- arch/alpha/kernel/sys_nautilus.c | 6 +++--- arch/alpha/kernel/sys_sio.c | 2 +- drivers/char/agp/alpha-agp.c | 2 +- 8 files changed, 17 insertions(+), 15 deletions(-) diff --git a/arch/alpha/kernel/core_cia.c b/arch/alpha/kernel/core_cia.c index 12926e9538b8..ca3d9c732b61 100644 --- a/arch/alpha/kernel/core_cia.c +++ b/arch/alpha/kernel/core_cia.c @@ -280,7 +280,7 @@ cia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) #define CIA_BROKEN_TBIA_SIZE 1024 /* Always called with interrupts disabled */ -void +static void cia_pci_tbi_try2(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) { @@ -576,7 +576,7 @@ struct } window[4]; } saved_config __attribute((common)); -void +static void cia_save_srm_settings(int is_pyxis) { int i; @@ -602,7 +602,7 @@ cia_save_srm_settings(int is_pyxis) mb(); } -void +static void cia_restore_srm_settings(void) { int i; diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c index e9348aec4649..b22248044bf0 100644 --- a/arch/alpha/kernel/core_marvel.c +++ b/arch/alpha/kernel/core_marvel.c @@ -355,7 +355,7 @@ marvel_init_io7(struct io7 *io7) } } -void __init +static void __init marvel_io7_present(gct6_node *node) { int pe; diff --git a/arch/alpha/kernel/core_wildfire.c b/arch/alpha/kernel/core_wildfire.c index 3a804b67f9da..8dd08c5e4270 100644 --- a/arch/alpha/kernel/core_wildfire.c +++ b/arch/alpha/kernel/core_wildfire.c @@ -59,7 +59,7 @@ unsigned long wildfire_pca_mask; unsigned long wildfire_cpu_mask; unsigned long wildfire_mem_mask; -void __init +static void __init wildfire_init_hose(int qbbno, int hoseno) { struct pci_controller *hose; @@ -137,7 +137,7 @@ wildfire_init_hose(int qbbno, int hoseno) wildfire_pci_tbi(hose, 0, 0); /* Flush TLB at the end. */ } -void __init +static void __init wildfire_init_pca(int qbbno, int pcano) { @@ -154,7 +154,7 @@ wildfire_init_pca(int qbbno, int pcano) wildfire_init_hose(qbbno, (pcano << 1) + 1); } -void __init +static void __init wildfire_init_qbb(int qbbno) { int pcano; @@ -176,7 +176,7 @@ wildfire_init_qbb(int qbbno) } } -void __init +static void __init wildfire_hardware_probe(void) { unsigned long temp; diff --git a/arch/alpha/kernel/perf_event.c b/arch/alpha/kernel/perf_event.c index ccdb508c1516..1f0eb4f25c0f 100644 --- a/arch/alpha/kernel/perf_event.c +++ b/arch/alpha/kernel/perf_event.c @@ -870,7 +870,7 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr, /* * Init call to initialise performance events at kernel startup. */ -int __init init_hw_perf_events(void) +static int __init init_hw_perf_events(void) { pr_info("Performance events: "); diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c index bbbd34586de0..cb8726b667da 100644 --- a/arch/alpha/kernel/smc37c669.c +++ b/arch/alpha/kernel/smc37c669.c @@ -2430,13 +2430,15 @@ int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char * } #endif -void __init +#if SMC_DEBUG +static void __init SMC37c669_dump_registers(void) { int i; for (i = 0; i <= 0x29; i++) printk("-- CR%02x : %02x\n", i, SMC37c669_read_config(i)); } +#endif /*+ * ============================================================================ * = SMC_init - SMC37c669 Super I/O controller initialization = diff --git a/arch/alpha/kernel/sys_nautilus.c b/arch/alpha/kernel/sys_nautilus.c index 96fd6ff3fe81..4dcee81606a5 100644 --- a/arch/alpha/kernel/sys_nautilus.c +++ b/arch/alpha/kernel/sys_nautilus.c @@ -78,7 +78,7 @@ nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) return irq; } -void +static void nautilus_kill_arch(int mode) { struct pci_bus *bus = pci_isa_hose->bus; @@ -127,7 +127,7 @@ naut_sys_machine_check(unsigned long vector, unsigned long la_ptr, /* Machine checks can come from two sources - those on the CPU and those in the system. They are analysed separately but all starts here. */ -void +static void nautilus_machine_check(unsigned long vector, unsigned long la_ptr) { char *mchk_class; @@ -197,7 +197,7 @@ static struct resource busn_resource = { .flags = IORESOURCE_BUS, }; -void __init +static void __init nautilus_init_pci(void) { struct pci_controller *hose = hose_head; diff --git a/arch/alpha/kernel/sys_sio.c b/arch/alpha/kernel/sys_sio.c index 086488ed83a7..0bf38f868665 100644 --- a/arch/alpha/kernel/sys_sio.c +++ b/arch/alpha/kernel/sys_sio.c @@ -310,7 +310,7 @@ alphabook1_init_pci(void) outb(0x0f, 0x3ce); outb(orig, 0x3cf); /* (re)lock PR0-4 */ } -void +static void sio_kill_arch(int mode) { #if defined(ALPHA_RESTORE_SRM_SETUP) diff --git a/drivers/char/agp/alpha-agp.c b/drivers/char/agp/alpha-agp.c index c9bf2c219841..f0d0c044731c 100644 --- a/drivers/char/agp/alpha-agp.c +++ b/drivers/char/agp/alpha-agp.c @@ -149,7 +149,7 @@ struct agp_bridge_driver alpha_core_agp_driver = { struct agp_bridge_data *alpha_bridge; -int __init +static int __init alpha_core_agp_setup(void) { alpha_agp_info *agp = alpha_mv.agp_info(); -- 2.39.2