From nobody Sun Feb 8 22:50:32 2026 Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) (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 85EA62561D9; Tue, 22 Apr 2025 09:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.128 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745313080; cv=none; b=Jh66YBe8RCNaRJ4+/QTwiFzWGjsIlSztp0Hfn1/sFnuJkzVK/ZHGuC7z2RcMHHS1EEuIWP1SzJ91LPaA/WBGEh+rwh3XfMQYK6e/Zh4sO2G3w0KHHH0wj+rdnoMSBqVB+nzdkqnvLI1CnLklh/vZFKJznIZUVIyDtCcQzQXKZ4g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745313080; c=relaxed/simple; bh=WBUuOWQpdrQOFEYaOQmzhp+l1UfStjkHFbt5cXHqFZQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Pv29DmMds3n0gXIrhMm37Iv6RKemNxNX4CfyVqXJAd+ONHiySGdBwghdGKlSCZ8lGEHSp1TQLFXVbCNOyuFniEYLf5Pbjv9QF2CrvI5a2jaxDaBTOdDckwbY2IJLWT9lCek2zdKofdiDOoh+EZJLgbhfL7etJOUQwY4vShsQRIo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b=PZk2DwvG; arc=none smtp.client-ip=54.254.200.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b="PZk2DwvG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1745313025; bh=VGWZpF9dZHrPeszei/T2CQ20Hv6zpF5SOxVEFV93m3I=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=PZk2DwvGYkpS0AnKVdURrYXzElCQKRjKLaBey04icBal/iGZSkpps5UzEfc2d9k+C B4p64dQ8lIfIoLTIHRLwKLFttobKaxlzT6by9B3Z25mqNTN/dx2Ig83s1NdB5gIBlG 9SUlFQp39As531aFfx1Jwo1QwTfVBinX9bci0zBU= X-QQ-mid: zesmtpip4t1745313008t2c41e022 X-QQ-Originating-IP: D2Ocb7vvYEe79UAEG9zEOt7ZAfusavGiBvAMgQLxemI= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 22 Apr 2025 17:10:06 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 9580230143236949142 EX-QQ-RecipientCnt: 8 From: WangYuli To: gregkh@linuxfoundation.org, sashal@kernel.org, stable@vger.kernel.org Cc: macro@orcam.me.uk, tsbogend@alpha.franken.de, wangyuli@uniontech.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5.4+] MIPS: dec: Declare which_prom() as static Date: Tue, 22 Apr 2025 17:09:37 +0800 Message-ID: X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: zesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: MlPHsU0QBEEv63P2klKLlNoevHRwHdgXgbrVu/2gjZAuqiL1iUprcBge 5qPKsk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stream commit 55fa5868519bc48a7344a4c070efa2f4468f2167 ] Declare which_prom() as static to suppress gcc compiler warning that 'missing-prototypes'. This function is not intended to be called from other parts. Fix follow error with gcc-14 when -Werror: arch/mips/dec/prom/init.c:45:13: error: no previous prototype for =E2=80=98= which_prom=E2=80=99 [-Werror=3Dmissing-prototypes] 45 | void __init which_prom(s32 magic, s32 *prom_vec) | ^~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [scripts/Makefile.build:207: arch/mips/dec/prom/init.o] Error 1 make[5]: *** [scripts/Makefile.build:465: arch/mips/dec/prom] Error 2 make[5]: *** Waiting for unfinished jobs.... Signed-off-by: WangYuli Signed-off-by: Thomas Bogendoerfer --- arch/mips/dec/prom/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/dec/prom/init.c b/arch/mips/dec/prom/init.c index cb12eb211a49..8d74d7d6c05b 100644 --- a/arch/mips/dec/prom/init.c +++ b/arch/mips/dec/prom/init.c @@ -42,7 +42,7 @@ int (*__pmax_close)(int); * Detect which PROM the DECSTATION has, and set the callback vectors * appropriately. */ -void __init which_prom(s32 magic, s32 *prom_vec) +static void __init which_prom(s32 magic, s32 *prom_vec) { /* * No sign of the REX PROM's magic number means we assume a non-REX --=20 2.49.0