From mboxrd@z Thu Jan 1 00:00:00 1970 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 0E05D25334C; Tue, 29 Apr 2025 17:22:45 +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=1745947366; cv=none; b=ibImrTUTfggFbOBk/hD6FQJf9t+QFG2glXUICVHna5eLDJnpek6J9RNnMS8HPEodLNPrKKkW9ZE2aJjDMvXQ/I/Mnu+pH5EfacjuFR8+g10Fxxy/pRkQyaqYK8e6tbiQcgGQhR/PSjutHSvAjbzBOsbCBu5xoQ7N3RMQXWo/Srw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745947366; c=relaxed/simple; bh=ccbyw7ebxQwd0Obuz3Urs6eUF85m8kEZEs+vAGf4Xug=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GJVL5J5KQM11QGE9OP3DgP1dpokRGflh+zRG0Abys6YsDAOIeB+IBGl8STkbHKjkRYuNyQNEXpp9E6FBTYxTst08ERmbGxC1pt9XWJJsfYDNC3EKLlfPQmbyVskNw+jo2ADl0flxj+QTP/NTw/rF4IQs5ut+NdsT7TAbUAqGqgw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1tTu2Egr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1tTu2Egr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23B08C4CEE3; Tue, 29 Apr 2025 17:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745947365; bh=ccbyw7ebxQwd0Obuz3Urs6eUF85m8kEZEs+vAGf4Xug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1tTu2EgrwVJOLmodOr+RUkJRBNZQaUVmAa9ts+y2rXZzNDc1EqZ1SR00G/H56eQNy vjg/PVnQWlGDJ+8r/tfQLO9aCl0YN5wSAGx8rUBzW+Xf77wP2TRnWxmpEOV9VeUk5q 8xJmG5sdibvH0qeVf1moUYirGX1hUSKep2NCCPAE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Yu-Chun Lin , Helge Deller , Sasha Levin Subject: [PATCH 5.10 256/286] parisc: PDT: Fix missing prototype warning Date: Tue, 29 Apr 2025 18:42:40 +0200 Message-ID: <20250429161118.449840419@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161107.848008295@linuxfoundation.org> References: <20250429161107.848008295@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yu-Chun Lin [ Upstream commit b899981750dcb958ceffa4462d903963ee494aa2 ] As reported by the kernel test robot, the following error occurs: arch/parisc/kernel/pdt.c:65:6: warning: no previous prototype for 'arch_report_meminfo' [-Wmissing-prototypes] 65 | void arch_report_meminfo(struct seq_file *m) | ^~~~~~~~~~~~~~~~~~~ arch_report_meminfo() is declared in include/linux/proc_fs.h and only defined when CONFIG_PROC_FS is enabled. Wrap its definition in #ifdef CONFIG_PROC_FS to fix the -Wmissing-prototypes warning. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202502082315.IPaHaTyM-lkp@intel.com/ Signed-off-by: Yu-Chun Lin Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- arch/parisc/kernel/pdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/parisc/kernel/pdt.c b/arch/parisc/kernel/pdt.c index fcc761b0e11b9..d20e8283c5b8a 100644 --- a/arch/parisc/kernel/pdt.c +++ b/arch/parisc/kernel/pdt.c @@ -62,6 +62,7 @@ static unsigned long pdt_entry[MAX_PDT_ENTRIES] __page_aligned_bss; #define PDT_ADDR_PERM_ERR (pdt_type != PDT_PDC ? 2UL : 0UL) #define PDT_ADDR_SINGLE_ERR 1UL +#ifdef CONFIG_PROC_FS /* report PDT entries via /proc/meminfo */ void arch_report_meminfo(struct seq_file *m) { @@ -73,6 +74,7 @@ void arch_report_meminfo(struct seq_file *m) seq_printf(m, "PDT_cur_entries: %7lu\n", pdt_status.pdt_entries); } +#endif static int get_info_pat_new(void) { -- 2.39.5