From patchwork Tue Feb 18 12:54:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979776 Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) (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 885EC1DDE9; Tue, 18 Feb 2025 12:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.92 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883341; cv=none; b=LdZJnc7JG4bwRZosNTmQM9OkhhSRgzPzuydTiGwRY0MGDXJ2GNH2WLPHtLyYMg9/7tJaqR3RtAF9W5hC1QK3AOVZ3qwooTPe+0adgeAaBquNJ47sY3813Z1Ikzh+Mq3q5OxnbB9iy82Agk5w4PkTPv3uPjubo9Q0Q2JB2gUPBjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883341; c=relaxed/simple; bh=xJo0Xrc/RxAlepuz1Lr5txeY5Au+59t5wfpVH28jO1M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eAqznp3OqX5KuVt9ai+7HiORCyElSiUJkk9k5oVhVjsq4Fhc38qprwenr4ZlcN3p3h8YKHkazxq+l2jAB/j/kAGrtrMmC4q3Jpjx3lk6V/1n/d7wMof5U+DJ6+CDrz/mquHCGr5wu+93KkgwP1p+VAt6kQ/kTiS0NW5SL67+PIU= 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=m2Lr2bgg; arc=none smtp.client-ip=54.254.200.92 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="m2Lr2bgg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883320; bh=PipOO5cc775nKDa2hWJYOG9AUg/xgW40yGEOyGeXg04=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=m2Lr2bggD7DeN/6afpqF9V7wcOW/MfMiafNgCyVCjy2KT0sP/+GbTygFxlQ0Nnh6Y anJVO4DdYs6X1So77JK5GccjgLPqjwHMRE8ZcoZIBc9FRwWXdhCHKFT5iKb3q9CnI5 Q7dz7yEiHOgl1B56u9vHcrJiGkvJRcsMTM2cQoUY= X-QQ-mid: bizesmtpip3t1739883276tz850aw X-QQ-Originating-IP: gSkUCH2fWVWVmCCXxhwuSOHKSjJQRY5yL9/DnoUs2VM= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 20:54:34 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 6309835871196480234 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com Subject: [PATCH 1/7] MIPS: dec: Declare which_prom() as static Date: Tue, 18 Feb 2025 20:54:31 +0800 Message-ID: <22CF8506E42636AF+20250218125431.665670-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: N+zv///MAAEk47Uc2uTzhhAJloA+s98pwsasgf4yc//G96WycMqWVCyP 3NQVUQt7r1S5hXhrqMlTrH/EbbzEH3VEntBOWoEYfAaAfc5tamJExkdI0sdZn09+eecxi+B CacLQBU+91dCMwrr5KUqSXsFoSoAKb7S7AIA3CeXR/e/Eas6onlA2r6s0k+y4ff0FJBjrSV Qq+by8Ov1rXCohy618G5pU8i6WwPGUCKvR/dmuH0IJEYdldbAE12lmXeMb7SuLZDpBtdOWe ylFGoK25oezRF33zHl/jlmTIbgha9GmtKtJ23CdQhRNuzgVUEanhBcq6QOKzAkv2/hLmMBL GUx+nFTAE5GMbb+MGQF1NIMZaNVlT19Oc8yikOOEzRz7FPrfZssZRy3aLsK4Szho9IqMT45 mahIlpkg/nlJI1apZGKwfchipmgLWs6EvAVO1MyqqNBP8FoQ5I0ExwBcmAWYCGsCKO3jlq+ JI5lK/EVb2uhrQbYaFi6Q4e969wPAMmxeddY3+XkwBoEbU3HhHLkYZZ+OhlecJhaXEOU+Sv 5xKHd3va8fPHvpJ7ykc0NafCnDgJA4L0+09ENtMFRIbYOUT8ovAEHaX2i1NhrtmAFa8KjM1 U/RCu4iXK3sCFDrZPFvA6dxjzuGat0Yu59h4w/ntVLRMQ4SH8+6hVHaJjGZvqIQzW+sKpbz KIP9IR+2fkydohuoyNUyOKctlSK7vQwDqtjPXMdKXdRBS75yze7QDK2wKdgS4fa/aybobym eU/VoqPYgVWpRx+kvBMrAmP8q5m1xAWDToGRpmzzzQI3L4XVOTmocNn9WOS2YSiqdnmXBCr AQoOPKGpP6HZEFBOA/V60BZ560AzzOh6ZoiwKbqulaGohT7lThz+LW3jttAB8obkM/Tw8jI PPJL8fQX8J66tdCVTnNpq5LOw7/3WOX5YBKNIayW4keCT2BF4ed9PQA7+9z5rjXdzbPZJ9H baTe8MU9+WvbbUS7bpUlkYiHDKhdmjz66du/bu1VIXtrfGW6j4A/hLAgWD4G0IwlTsUmsMe 9pIZu9ysUXBoQe7mVn6nbrFX1IQVuDVOuu/A1HYJ7f/U2YylHihfcMe5KzNkqoSAnvkTUUy UBok1Xq4Gka X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= X-QQ-RECHKSPAM: 0 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 ‘which_prom’ [-Werror=missing-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 --- 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 From patchwork Tue Feb 18 12:56:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979777 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (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 59EC0264A64; Tue, 18 Feb 2025 12:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883468; cv=none; b=TVC+C7085iVO0jNj/XeAXIuuhdtvoOl3x7RL/rfUcBsf7cHblOSxsmWdQ8uR2k8iLy8rSFpb+E0Y90MWmoIh1BrqeWguFAlOKqQsn8j6kMri0ysoMW4v363RGOC917oXD9JyASdpldPrV3+TolYhTFEeN4VxjAymT7EODBJ9/20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883468; c=relaxed/simple; bh=B0cw1V0WWbSv6W+IJDae4P27mQS5mJPijK/THLDv2XI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JfNiBOROoYBpoiBEFtUqmHf6WtNFHw5FLUZhpPXG71UiKjhu3icHnsdF1PjYcMhP3ADb9ypW5WbFBpXqQixrogOFSfzr+7TQHcBRQFYcxXF/tudcuomxtnalhUNTpTfQj7HsDPKv+1RMfZYVsd0EGd3H47KTqu5ZoTk3yONxuic= 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=J9rhzdl2; arc=none smtp.client-ip=54.92.39.34 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="J9rhzdl2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883447; bh=VEbG+LuqDITNF5aS09ODkacNvzPLmBuo+Y5S4w8RYds=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=J9rhzdl2hgy9NYDyRE+u69RUsO0pl/iwpF48CRXXqguHKwZn6ImfQzvX5CHyqyH7B FU68NUDRKula/J3TIgQq0MiBGNyIKDGhVCKIxFbOR18FCQWcz0CLv+CY0dzqQPuhXx wpSl3+eZrB372RKHnpu41vzO4hBWk48hf7wC8YaA= X-QQ-mid: bizesmtpip4t1739883400tkf5uey X-QQ-Originating-IP: yFhL8vgklBZI5ayeD56aGt2cGV2R5s2iLXHzTKJTLJ0= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 20:56:38 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 11245035312823928988 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com Subject: [PATCH 2/7] MIPS: dec: Create reset.h Date: Tue, 18 Feb 2025 20:56:33 +0800 Message-ID: <65F124DA37C9CC6A+20250218125633.666501-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: NRLj+a+1JRyJptqqLa1zNFuqSBXDlIWd1FC99XrEikoWZyOJ91njqaZD MRjRq1J1USSOs0ITobdjeIBVmYbubBGDqbdAOa9hk15ShdA5An2GY+2fZklH5RVtSqykmbJ CM5LAfYT6eXw4zmwLLBj89tIVs6DhybHyFlQgXWl1t4Lx6K8SjWqSojJZzestIVUJ6uDtxG HVc/1qhTeA+AeNom6iijhj6AC+uCKhxCfwKtwZl+QhqUskEpqFYL68WZRBxcXNg1VXMTbOu Z2aeFDZksC9t8EEQ6QrPtt6NA/gsFJTWD5oRobEeptB6fsfDDZAEl2IZ/0xYoxXMKi5zdzH tzQDRxa2wIMtG9xFkiqAE1yKZ6wCNplyg+0xS0auePd5fv/nVxR9ACLS24WwSr9AEMwI4Bp M4Si1QEJKXsX+jDe+f1eOdTrYIbsHdw8Y8HnOMZoSxT8MGGqu1onn9DXFazw53MHP9nev0Y i/A815s25RGs9hlk8ap8LICB6lAnA5/y3ckJKcJmrx8ktGo85jgEOZGZJgANDSN9JPjl9wY jANBK/Pd8FDUueSBRoLEUVW1sWVCRdN3NBcyHKkWjzL5Laa/gwf3Z3ukAZZv3Shl4Y97bAI bLB1YrO9j96+Us0ddr0FBcQ8R4IuE/PnlS0hW7+h/jfAB8+LnSzrOs47m7ynCE14nmOUCQL lS2fC4QkxKTQuQD2obndcTlhiOXbV/eKJy7zHcTSXia/e5XOmkay/5xpy+q4oZYWUliIzxf VlW74lpEms6WSM37vwJCYjNrYnBoCxSAoV7HHHOouquTgjv+OetBx4WeOabfrclfv88z2Kp 1VPWWXdQyZbKhfeAyZvQGHBlGrrKGlIVJ/rX0+/VeEPW6NeFXGUSbJiFlN4NT8hAgfE1cEy av23e3vRpwZBlqqud7OFmaD5NWR6vp6fQnM36epVH7n5HVDLFaurf+cec6PfsJ6upK1Vz2S qL1laTpnGKWmS3W1antF3Q94v/q/zm3YGCFUXRp/daNqn5CQw6ahjUZZ1d3VWjHfthz06YI iVoyIAovAWucgN0H3EqT2/5A+YqKHJ+uitgcfC9g== X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= X-QQ-RECHKSPAM: 0 Declare externally used functions in reset.c to resolve compilation warnings. Fix follow errors with gcc-14 when -Werror: arch/mips/dec/reset.c:22:17: error: no previous prototype for ‘dec_machine_restart’ [-Werror=missing-prototypes] 22 | void __noreturn dec_machine_restart(char *command) | ^~~~~~~~~~~~~~~~~~~ arch/mips/dec/reset.c:27:17: error: no previous prototype for ‘dec_machine_halt’ [-Werror=missing-prototypes] 27 | void __noreturn dec_machine_halt(void) | ^~~~~~~~~~~~~~~~ arch/mips/dec/reset.c:32:17: error: no previous prototype for ‘dec_machine_power_off’ [-Werror=missing-prototypes] 32 | void __noreturn dec_machine_power_off(void) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/dec/reset.c:38:13: error: no previous prototype for ‘dec_intr_halt’ [-Werror=missing-prototypes] 38 | irqreturn_t dec_intr_halt(int irq, void *dev_id) | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:207: arch/mips/dec/reset.o] Error 1 make[7]: *** Waiting for unfinished jobs.... In passing, also correct the include file ordering in setup.c as it doesn't merit a separate commit. Signed-off-by: WangYuli --- arch/mips/dec/prom/init.c | 3 +-- arch/mips/dec/reset.c | 2 ++ arch/mips/dec/setup.c | 9 ++------- arch/mips/include/asm/dec/reset.h | 17 +++++++++++++++++ 4 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 arch/mips/include/asm/dec/reset.h diff --git a/arch/mips/dec/prom/init.c b/arch/mips/dec/prom/init.c index 8d74d7d6c05b..a8393052a443 100644 --- a/arch/mips/dec/prom/init.c +++ b/arch/mips/dec/prom/init.c @@ -18,7 +18,7 @@ #include #include - +#include int (*__rex_bootinit)(void); int (*__rex_bootread)(void); @@ -88,7 +88,6 @@ static void __init which_prom(s32 magic, s32 *prom_vec) void __init prom_init(void) { - extern void dec_machine_halt(void); static const char cpu_msg[] __initconst = "Sorry, this kernel is compiled for a wrong CPU type!\n"; s32 argc = fw_arg0; diff --git a/arch/mips/dec/reset.c b/arch/mips/dec/reset.c index 3df01f1da347..ee1ad38f4a69 100644 --- a/arch/mips/dec/reset.c +++ b/arch/mips/dec/reset.c @@ -10,6 +10,8 @@ #include +#include + typedef void __noreturn (* noret_func_t)(void); static inline void __noreturn back_to_prom(void) diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index 87f0a1436bf9..56a7ecf06b7b 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c @@ -17,11 +17,11 @@ #include #include #include +#include #include #include #include #include -#include #include #include @@ -48,14 +48,9 @@ #include #include #include +#include #include - -extern void dec_machine_restart(char *command); -extern void dec_machine_halt(void); -extern void dec_machine_power_off(void); -extern irqreturn_t dec_intr_halt(int irq, void *dev_id); - unsigned long dec_kn_slot_base, dec_kn_slot_size; EXPORT_SYMBOL(dec_kn_slot_base); diff --git a/arch/mips/include/asm/dec/reset.h b/arch/mips/include/asm/dec/reset.h new file mode 100644 index 000000000000..5e7b27561fbe --- /dev/null +++ b/arch/mips/include/asm/dec/reset.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Reset a DECstation machine. + * + * Copyright (C) 2025 WangYuli + */ + +#ifndef __ASM_DEC_RESET_H + +#include + +extern void __noreturn dec_machine_restart(char *command); +extern void __noreturn dec_machine_halt(void); +extern void __noreturn dec_machine_power_off(void); +extern irqreturn_t dec_intr_halt(int irq, void *dev_id); + +#endif /* __ASM_DEC_RESET_H */ From patchwork Tue Feb 18 12:57:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979778 Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) (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 83D89264A91; Tue, 18 Feb 2025 12:58:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.206.34.216 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883509; cv=none; b=LgOamuX99qshNsa1uAf26QFJKmtPfq2WQWY1dC3idJotVWPBk1IqbCqs+JJLcgkLpX2/LMDFRKTRXuJUevlORM8GJbkq/du6Y1tQE2tyOxh5ujuHeuRaN6PWMI+86Gsc23ffhnPciJ2txOsHfAXEdnQqspJG89saWmSjtqsh66w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883509; c=relaxed/simple; bh=JJlh/bjdYAPnydJgo042TzApMxiaqJrFo2/KXVAdsNY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q/2oCri1IdAwrLu55egn+gY5MXQkZB1xbcUU7sQEl7QVFVT9Ql17AteZ+VKnzVBtJwLrr5ZzhqTT8cfo/RLbfIlKO5/I3yGtaogIBEI7qupZ+eWPkF7ZDYuHMmlGZdT4L7MHj3hAsYULFTMPkKkO8KekkfB6kWqaL+AT/wSKDtE= 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=pjrqVmDO; arc=none smtp.client-ip=54.206.34.216 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="pjrqVmDO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883494; bh=2zCWdRd1PrOVUVSxD8wqwoiJzCtYme80y79Zs2msm2s=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=pjrqVmDOvYJs9lRzHGDYlsQ+i5RFzbG0ZsBmURx20cT0xIzUC63JMPOEHrJOsHAYo I6uP2OwIxG//zWA277Il9zGcNrJUbdFC8xOzzFOL4R3tU8+Cbhm0ZroH02HO/pBQry a7hRxYPBu3Qqwj1cLKPPcDEfVQOtaI12n4+IYTzo= X-QQ-mid: bizesmtpip2t1739883448t4da3sb X-QQ-Originating-IP: mGMHbKw3tTDM8SfAf0LzgUC50c9uJ58QL0TdxvUEBfo= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 20:57:26 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 18014004292230785986 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com Subject: [PATCH 3/7] MIPS: cevt-ds1287: Add missing ds1287.h include Date: Tue, 18 Feb 2025 20:57:23 +0800 Message-ID: <6A027EE413E09E1F+20250218125723.666989-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: N5WxDrSUSX1PFCLI/iX7P1eZ9zo+KJOX21FLALxaDVZl2Ky5+jgYFTMV 0fk+RVBZGqReriMOyt7GfqMOoLkZdOu3r5Hx2qs6gq1A/WI5DeMvf3tr73tTV/BXApyHjGc 6p8k02x7vaBFk9Lv6r77bdx4AZ2mrULVM7b2A/E+27F9HG/8NZlYob1cbrZJWWyIUcXR5eK fEb6g/OkO0vRtgwVwe0WX3vZUjVJu3KzExFLPDWNx5NzK0vMYoHdrfdvTsv6bQqBaxnSHh6 ptDIn+tdIFjQlKgZLrkF6V4fMHGNDk+caBP18hTmBdSj8qEQTyo/AKTuy5q6hMCbGMNfgDD WWzk0SNvs5FaG0YMA6qxxE5ymd0dycTqbfq0OA4wCqSNhg+uKpGZL1WQ3fmI61mbFbPIwHf +NO57PBlT7zX9+Gx5lvXXOfz3XG99/FERJ28hYbSvICvLB/UXbhjvexSQPIt32icPQT20/e KjvnBetdcEo06b4AL4zdaalZDweWoshS6gIeatuJP5IONX3Vu6vhN50ChS46ahz05D95Urr hqKgo5C1FA1mmcAUjNPx/0l3qLAWnQCqtLuuKeRLxq89+mv8qNsiGj2CfjJP4fsjEauzIOw rzua1NTr9in8mAl8tG+rzbMIWstSOb5XEkJg0A1M7gXr5nNrpL03fY5C/UuV4ggODNCyhQ/ wXHNNXAL9UXgq5JvddNHcPLJaDU5CrlBLzQ6W7CODITQsW4gJ6Nra0bg7WYc0lu2vNV4MdT a/aPDHP8QwDRSFwGwaVdQYFEkCmLgLnyMExCPMNgC3snANzjxoc4Jpn09vM6t3GVevDJVLg Men6K4iGxasLwuECfDPIt1g6UZMV9upDVmz+n0sv3YY/ETNE4hoMCz82hAd854CcoVNi32W LdPXj1e75v90BEBz3uO9KlV6Oy0eQoThn4rEJxp1e7Ez7iUsvARMrllktMoN1JEo3pJojNX QRM/KYdNSepzDVFRnHn0j1xg3uRU/1Mm6NUGoTvjxQHm4kvOcNwo7yoQMPcqr7TzAPmLOzg 3F3mSAT37RBSmtQHYgf5JlaMkLe36pos0YDno5+2UGNEH1iXvn X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= X-QQ-RECHKSPAM: 0 Address the issue of cevt-ds1287.c not including the ds1287.h header file. Fix follow errors with gcc-14 when -Werror: arch/mips/kernel/cevt-ds1287.c:15:5: error: no previous prototype for ‘ds1287_timer_state’ [-Werror=missing-prototypes] 15 | int ds1287_timer_state(void) | ^~~~~~~~~~~~~~~~~~ arch/mips/kernel/cevt-ds1287.c:20:5: error: no previous prototype for ‘ds1287_set_base_clock’ [-Werror=missing-prototypes] 20 | int ds1287_set_base_clock(unsigned int hz) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/cevt-ds1287.c:103:12: error: no previous prototype for ‘ds1287_clockevent_init’ [-Werror=missing-prototypes] 103 | int __init ds1287_clockevent_init(int irq) | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:207: arch/mips/kernel/cevt-ds1287.o] Error 1 make[7]: *** Waiting for unfinished jobs.... make[6]: *** [scripts/Makefile.build:465: arch/mips/kernel] Error 2 make[6]: *** Waiting for unfinished jobs.... Signed-off-by: WangYuli --- arch/mips/kernel/cevt-ds1287.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/cevt-ds1287.c b/arch/mips/kernel/cevt-ds1287.c index 9a47fbcd4638..de64d6bb7ba3 100644 --- a/arch/mips/kernel/cevt-ds1287.c +++ b/arch/mips/kernel/cevt-ds1287.c @@ -10,6 +10,7 @@ #include #include +#include #include int ds1287_timer_state(void) From patchwork Tue Feb 18 12:57:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979779 Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) (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 CCB52264A65; Tue, 18 Feb 2025 12:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.169.211.239 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883545; cv=none; b=Q7x/Uy1pnrzrO/hVtJQSiqgLwMD02Eqi2hTJzeNFrteu8vCiXAAMY4XMPaN3qF7NRvEfK7uUCHStOFD2AiUkMJhHBij36Fqt+NPBWu9iJTdK5afM+U9uz6aPguTjtXX0sX0mgIVxt1tmcSz3RhEOcU/PVpUM3UWQYiDySTz2p5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883545; c=relaxed/simple; bh=lOSMJwejeI48r5X/uxUNPbe6m5DJ7Oz1bKD7op2ABfg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=a7E7CCbDLAt4DViTmIAXOiyxFydnZZM04GcpY7g37nWtTkODesLFUY1X8o1dUcIwoxAfcMqSo/BNyGsOwkVG2ihiDAgYHYYnxBxhFaxgLRUIi9V4mUJbB4aJlg2WvRFhI1pd2OD1Sw7uYEMMdASTGsevwj4tIBxLfY67wDDg5ts= 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=AJWuty4l; arc=none smtp.client-ip=18.169.211.239 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="AJWuty4l" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883527; bh=q3DOjpewePmV51uT0y+fwg6nBfRHlVwep0EKCAsnWSs=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=AJWuty4l7OgpjDVLd3JSSHlTNhfqkyajgk72mrMvIOp9WMMX6KP1tustEbOlOu1a5 lUP440bmjQ4iPnnTQEGbxyJ1hRr7xW5O4GXl60j0ajORCtMgkIHNLL6rUSjDyF6wZo 8ZFm3c6GkQJ4e4w8rU/uB4+aO3kLvwpKGe8dT+R4= X-QQ-mid: bizesmtpip2t1739883480ta6rkl3 X-QQ-Originating-IP: Lg/bf8HK4AHRgOwJTXa3vIiUaIhPvRsAc9QiLASbRcQ= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 20:57:59 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 17186450553818784558 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com Subject: [PATCH 4/7] MIPS: ds1287: Match ds1287_set_base_clock() function types Date: Tue, 18 Feb 2025 20:57:55 +0800 Message-ID: X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: Mdc3TkmnJyI/MuVmiG7DVUPoiOFkEQsLwmk7+xkPx5vB44S4XIupU1MW wgLWB65CYy3NRCwkaQbIroKP6wOjZw/YYYRsJUxZd9a2PBkR15Whv+X0RbTKRWFHDPbGEgm T6eAdtdFGCNQ9+yR624ireAUrCqtrpM0kX0h4rC8/9i7FugyR+w/Brl+lUqJeUApMSOb//a THF6V26PCR6TDJjjA/8N4FIp2MD+LwE8+B1O9TECYOWmKPk6pXsHsM7xJGn4txCZm3/jNNn Q2yOPUGB4j2J8uVQYVxYOnWGpn+l5wwyNC+9FAl6n9SOCtt08t9/bqJhcXGyfTQS3+0wxiF Iiyn6e9vj53FkGJI2yfTPKjOgV8OPhLQVDBMsx3FVUDSEnnk79ZE6WsCttWPkGVbz/VP1+q Bu+QuQK+Ki350cszautsUlWJF36dC39mZP3V1b0gh9D5lV5IAzQRSnHMURNwcTl84Nb1gsW g+ndXLYXrhGvmtZ6FXZsIW29co6hqfHPlqnVwGYoFmyXGrgUM0zSJwoFcOQ69Cb0P0O7A69 4BAN15Z4/qFfxiSLdnQ/lilvE43A5EsBO2IbD9qqu2TXBTf6okrcEU4E5LDjmnP8jmPgkYU Yfch11K2fHaRI1WkyKDeLfTuDDgtai4saHUn7v5KjsnVQfaw8zTU08Usd9U7kh0y8PpFS7B HQbNEwSHpxLfMQzqIV3gDx7Z7DQIhgLDqsPLabERhEeXL9ajXOJGXow2eiKDwUJ32z5wkN4 ZZ2ZFQH9htZXrLRzGEQuqLwtvIo3RLoQwKY5jidCtq3oJHQXSoCnLwcKO7a84+q5sOluCZU gGVP0suIWmPxl7LcYS3QzH77jfPliPGra5PYoIk0j/KSulZfJbnJH0n0UPfrw+TiGKhuPD/ m3hQvRIQFHeXBqpFJ4jiQBZ0busXMYvmUqqvNH2SQxcls8wUoL0VyKAPxotrtdVaZpN93PE 1K/oaG01mIf0PaAsL5z+GrlLZU9esE7QJoLzLac+0dMe+NY8dv/c32rRJfa2eg352Ko7Vob 4Oa5ilANzMf8eR8iF6jR0KedrWpnQectIIaE4FHiqVUv3ZM/1d0f982Ko0DmSyYbVw1ArOQ w== X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= X-QQ-RECHKSPAM: 0 Synchronize the declaration of ds1287_set_base_clock() between cevt-ds1287.c and ds1287.h. Fix follow error with gcc-14 when -Werror: arch/mips/kernel/cevt-ds1287.c:21:5: error: conflicting types for ‘ds1287_set_base_clock’; have ‘int(unsigned int)’ 21 | int ds1287_set_base_clock(unsigned int hz) | ^~~~~~~~~~~~~~~~~~~~~ In file included from arch/mips/kernel/cevt-ds1287.c:13: ./arch/mips/include/asm/ds1287.h:11:13: note: previous declaration of ‘ds1287_set_base_clock’ with type ‘void(unsigned int)’ 11 | extern void ds1287_set_base_clock(unsigned int clock); | ^~~~~~~~~~~~~~~~~~~~~ make[7]: *** [scripts/Makefile.build:207: arch/mips/kernel/cevt-ds1287.o] Error 1 make[6]: *** [scripts/Makefile.build:465: arch/mips/kernel] Error 2 make[6]: *** Waiting for unfinished jobs.... Signed-off-by: WangYuli --- arch/mips/include/asm/ds1287.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/ds1287.h b/arch/mips/include/asm/ds1287.h index 46cfb01f9a14..51cb61fd4c03 100644 --- a/arch/mips/include/asm/ds1287.h +++ b/arch/mips/include/asm/ds1287.h @@ -8,7 +8,7 @@ #define __ASM_DS1287_H extern int ds1287_timer_state(void); -extern void ds1287_set_base_clock(unsigned int clock); +extern int ds1287_set_base_clock(unsigned int hz); extern int ds1287_clockevent_init(int irq); #endif From patchwork Tue Feb 18 12:58:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979780 Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) (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 A508D264A91; Tue, 18 Feb 2025 12:59:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.169.211.239 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883589; cv=none; b=KFTYRLGkHi2nXR21yAvaFJl5QMM/Rly3Mmgc4UIvUhjfcKniq3Oecguacb3T3gvfawUDPFqWLn9cn68dUx/c8z/JbQ+LTFw5JsIXdjZTvw6ja79PvZWqOyI4L0aYk7SbTixHzXeqelrsvTNjYNYpBd2Sbvaw6oRnfYYtAz8PjI4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883589; c=relaxed/simple; bh=13OK0ly+Y9D7D0IsatLoyzRKM7fn6t6uu4z+wld9J4M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WCYRhapmJSXDQFipTNxX9FbUmfWPaRGDINeaX0qP89EvEKeC+uIvQmTjz3txFzKMG4q2ZcfJ7gQUP4fFkedvf0+k/DhjC07GDf2Kta6PF9h+vypytkOQfOjUo4NAzhapHvsAnU3RZbSiLHbRG3OAhYW9qYOGSuVy9bY5Pif75uY= 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=GZUYwJ3+; arc=none smtp.client-ip=18.169.211.239 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="GZUYwJ3+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883575; bh=A+GxPdGU6RxcKTKTUjnNUysJyqMdd00HP+fC5NjA62U=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=GZUYwJ3+bXdfxtq0uJgjZLIOlHmk1KmGfAu7iS079B/3NS4rerTpgEOh1jYXtS5kf Jhb6ajRPLmnZ77orbIKOIK8urS5/DIntl9x5A9cBWk8dCKLOUoWYc/MVqq53+ukicm MJuIfDBsH+UGIg72FResiDnNskNeGyYfrnJ2C3Yw= X-QQ-mid: bizesmtpip3t1739883526tocs40p X-QQ-Originating-IP: zfAGLJ/ZbWNea6zi7EMvGF1miZNnL7+mFFbIV8HnI1I= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 20:58:45 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 16123507562462357034 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com Subject: [PATCH 5/7] MIPS: dec: Remove dec_irq_dispatch() Date: Tue, 18 Feb 2025 20:58:42 +0800 Message-ID: <222468E85948B141+20250218125842.667798-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: N8VH26L7kmdizyDMymZ7/E9YiRux5mfMF0iOMYTYHBk8AJ5PyxtC/GFY n27MRIUVmQ2G1DdJQtsjsjCbq8iwtNwdPgO8NnopwXIJQA6OXma4bwyKfSvByTon72KrYJa xrSNFAfE4fkZn6TRkszyPG14oSZG8fRMPvK8A5f3nb4CPLzeXoCDjrA3E+7Ibo42aBxtkAj iZOlYFIy2K83ZPhC3NDtuh2LOF8IE+ssAFhN/gJ4L41jNQu+5NkfGsginvYf8riI48rF1iJ u66atdkWGq/SO6vlt866QH2VwY/RDLyaTteR8GvcGuszDz46sWoi1roHSYHKXIJrv7VBUzi KDagpm1JZJUPvN4eKKzSGgsMeg+d16tWXwvC3LuXPFOmf+rpQ4rcqCUSEm38gNtq+NK3Ybg 4n0Yoc62BqaUCQ8ZU86XhJmxOeU79d6PeVy2ftBzi5tkQD6fuQMToEGLjZEBhoaRoeQiWpq aLiyhdkAXD7xaUZrxTOyN7IyIKZPqQ5vaj+g0Mqh06dck6GoEbzpgLeE5N1CSIEZ43lwtT/ Ny1qvX6cW1urdTSPbvJR1gmLcPp+5Es4v6hkQmFCC4kgGs2EgyLQxoVb4oXoAqUe0Mjda8h Uq4Zh5y2/UhKEdo5RT4SgZbbi1tn8uZbdKw3Mu8tx2ihvx1Qlvk8Hg1bl49pB/cNvGYCyyY zYwrIXFhTeuUkA90ItXgNbvoQMi8gsHRdhgsV/vkS/+LdlaMl05U+ADwo9xQsQVYQrugd7F OUwbp2Uj4jT29u8DvooOdJg1UdxQ+I3U9C6PmDrVFgq5IYoAt/+EsTvG2cySzoMAPK+nkdr QAevBg6mbcHuPke9C+u3Hju18A6bwXf8ITB95gerRClayl1BN5hr4/vyFO5jqYHoZ2xi6jg 4PMOfaA23/N3E6wKgtFFA1MvRHaz1NudISPjhuAwWksNP71rtypyRiYgvug8NbW2oAgKEoH bn72DVRxmKyJLMz+GGt+Gon8gozAw2WAtLnieHnTfpmA0PmjqTZln1Ec4LEbJjGMws3nluK EGwFJ/pEEaCDbM5SUMbESv593Qllw2Rb7L3B5cK+IVWX0wOssHZekqpVKEY4rd7Kic3vXDi dXgiSg3T/DncSz82xaq5qE= X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= X-QQ-RECHKSPAM: 0 Currently, dec_irq_dispatch() is exclusively invoked by int-handler.S. Inline the do_IRQ call into int-handler.S to silence the compiler warning. Fix follow error with gcc-14 when -Werror: arch/mips/dec/setup.c:780:25: error: no previous prototype for ‘dec_irq_dispatch’ [-Werror=missing-prototypes] 780 | asmlinkage unsigned int dec_irq_dispatch(unsigned int irq) | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:207: arch/mips/dec/setup.o] Error 1 make[6]: *** [scripts/Makefile.build:465: arch/mips/dec] Error 2 make[5]: *** [scripts/Makefile.build:465: arch/mips] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [Makefile:1992: .] Error 2 make[3]: *** [debian/rules:74: build-arch] Error 2 dpkg-buildpackage: error: make -f debian/rules binary subprocess returned exit status 2 make[2]: *** [scripts/Makefile.package:126: bindeb-pkg] Error 2 make[1]: *** [/mnt/83364c87-f5ee-4ae8-b862-930f1bd74feb/Projects/CommitUpstream/LinuxKernel/Temp/linux/Makefile:1625: bindeb-pkg] Error 2 make: *** [Makefile:251: __sub-make] Error 2 Signed-off-by: WangYuli --- arch/mips/dec/int-handler.S | 2 +- arch/mips/dec/setup.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/mips/dec/int-handler.S b/arch/mips/dec/int-handler.S index 011d1d678840..a0b439c90488 100644 --- a/arch/mips/dec/int-handler.S +++ b/arch/mips/dec/int-handler.S @@ -277,7 +277,7 @@ srlv t3,t1,t2 handle_it: - j dec_irq_dispatch + j do_IRQ nop #if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c index 56a7ecf06b7b..6ba4c4973c9a 100644 --- a/arch/mips/dec/setup.c +++ b/arch/mips/dec/setup.c @@ -771,9 +771,3 @@ void __init arch_init_irq(void) pr_err("Failed to register halt interrupt\n"); } } - -asmlinkage unsigned int dec_irq_dispatch(unsigned int irq) -{ - do_IRQ(irq); - return 0; -} From patchwork Tue Feb 18 13:00:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979782 Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (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 040DE2253A5; Tue, 18 Feb 2025 13:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883673; cv=none; b=qGr2grirnQ1lxSwZReyDoHdyBj1wlU8nFH+m2HbymZkX0X58kQNvXw14n/QsOYmj0qFylqi49Ge0QuR2BUXIXZPr3puCijj41oPA9SZ77YRS+E1yq4JTjfhwCNSX264Bk8Blf165mmD4Kf4hwwNVYPUKPEWEMvxqDOV8c/YodyQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883673; c=relaxed/simple; bh=6oqF+bCib8jf2lrqQ8/zJqdQhhDGEGbmmLqkfrsSLwU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jIvzeASip1XfZIYICKEc8NsXN686zDY+W2kp2+E+A42nJ7zB0XZknu1BnY9AHfgPwL7I8s74HQb5qUwzJJtdtCBnGSi09zbrnUXEISkxgbA4xrGvhl8tnUNwIqJEGxIhiYfVYi4CeHu8NVE4ecZZD79/MQNkQf2K5ceehA3LZPM= 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=fzy9j2gS; arc=none smtp.client-ip=54.92.39.34 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="fzy9j2gS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883632; bh=FVTQvr+bap4HyVov/2H0FaSNFcTDofmgSdWA3HYCwqg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=fzy9j2gSxMl0gK3VAvx9OV+RY5I/KIUfMQ09/1kHtqkoaxs1gSbURlkWJrOMOTwMY VO+sJ/wSkrTEca5rxMQIion7lVqyma4CHstkJT0uUtNiUJHPVuWnXT6xTua27xITKd Ggn6Qqg9DmExd5cxq4lD19hn5YUh9f/Tngz7WH2o= X-QQ-mid: bizesmtpip4t1739883620tb3evc5 X-QQ-Originating-IP: X8Fb7ROc3JbjtPvGkKmQ0fYqstYop3KbEVdlmrLr8V0= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 21:00:18 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 7438870900586338920 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com, geert@linux-m68k.org, herbert@gondor.apana.org.au, ebiggers@google.com, ardb@kernel.org Subject: [PATCH 6/7] MIPS: decstation_64_defconfig: Update configs dependencies Date: Tue, 18 Feb 2025 21:00:14 +0800 Message-ID: <5375F1C4E430D0ED+20250218130015.668651-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: MfVCm2vBFdjBln10IsKUr57RzD7KcXxpg3/i0OlNnK7AiV0Td0sDdJtT C4L5C0vOQZC7tc8HYLfKxzVaEQVC7lwEZRDMoT/5ikkBOGfBx4wkIV5fcEX094cms5iiWRu J15h2+FnaNTY9mJK335tMf/FgO0VVP/T93kjTqdOHEWB32okSEeXESKUNqBGRZzJm3qKyBa f3cJrTq7eAX/cuEz6whUI6fPOeCKLIuovmoW5Esr1lY4HaGdmtxI+ZorfjFgksQ/yXomdYx kMAJ1fnQu+dlCPWYNQsAGFIgocGzEtI1hhyNjFUozFRgo7ydTefNdC8J02xxyddV2wrKNl6 EkYSg8Q/N4y7WXvaPO3wrkpXuWvrMChicYy+r28bUElJERh2VK22KqzaVrT/9M4C59Z64fp e/XZozedWqb62d44bSnzOc0L7QLPHcTAEJjZ5ai5CbTecPkLKlsLs46J8yVkCzKlyemBLCP bdj8QSk+bkvVgVARJ5v6M8AR2JfQZwdwdq2mf055R1FspGd7Egju/918sBYXAtz4xiIfokR xi2ULW0h7h+Rq/o/HM4rEPKGnihpvHaaSM8a+rm3ZDb2xlvjXpafKIznIE8/02hfX7oYjrh THwag0Sf6tHJQS9xKBBD8/ZBInl9cfKHFiRNTV0s6uYG8yelE4PObztRjwKgu9pABjj19m8 GcB/wXqZRey/zN4QKXZj1zr1imQ6TDGx0ihrjkKVuAByhGFeHmuPeLijqoosRd0RM3lRs16 k5GDSaNXhVfNPOC33vh5WJAMFVTO/EyLoB0VTV65ybDAFi87cO4fY1phTMP+vNpf5zLyMfv UzMfse092QjITgvkJhF2AQmmGgK/YRbzmvfngA0rYERewo6IsamLgGlcl9O8NhVZnc7H75A i7VhaV63FDOpk+zP+KKxLCc0gI14hkN4JTqIedVmiUDtR67wDdJyyxJSwvH+0bZqJbYjOrS iCFk40eweK5Ogpy5yqwPPEFGirHpd6X/12cir3Zznq3pzxV1hUjOxlxorKyH3lf/LfKbD9D tUQis1xowGhP9HvNA+mti2jIQ2ChW+epea08TJyzf6BiWtrzy9 X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= X-QQ-RECHKSPAM: 0 Due to long-term changes in kernel build configurations, run 'make savedefconfig' to update the build configuration dependencies. This commit does not affect the actual .config file content, in preparation for future modifications to decstation_64_defconfig. Signed-off-by: WangYuli --- arch/mips/configs/decstation_64_defconfig | 44 +++++++++-------------- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/arch/mips/configs/decstation_64_defconfig b/arch/mips/configs/decstation_64_defconfig index da51b9731db0..cf8e72164e40 100644 --- a/arch/mips/configs/decstation_64_defconfig +++ b/arch/mips/configs/decstation_64_defconfig @@ -1,27 +1,27 @@ CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_BPF_SYSCALL=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y CONFIG_LOG_BUF_SHIFT=15 CONFIG_EXPERT=y # CONFIG_SGETMASK_SYSCALL is not set # CONFIG_SYSFS_SYSCALL is not set -CONFIG_BPF_SYSCALL=y -# CONFIG_COMPAT_BRK is not set CONFIG_MACH_DECSTATION=y CONFIG_64BIT=y -CONFIG_PAGE_SIZE_16KB=y CONFIG_TC=y CONFIG_MIPS32_O32=y CONFIG_MIPS32_N32=y # CONFIG_SUSPEND is not set +CONFIG_PAGE_SIZE_16KB=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_SRCVERSION_ALL=y CONFIG_PARTITION_ADVANCED=y CONFIG_OSF_PARTITION=y # CONFIG_EFI_PARTITION is not set +# CONFIG_COMPAT_BRK is not set CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_NET=y CONFIG_PACKET=y @@ -49,7 +49,6 @@ CONFIG_NETWORK_SECMARK=y CONFIG_IP_SCTP=m CONFIG_VLAN_8021Q=m # CONFIG_WIRELESS is not set -# CONFIG_UEVENT_HELPER is not set # CONFIG_FW_LOADER is not set # CONFIG_ALLOW_DEV_COREDUMP is not set CONFIG_MTD=m @@ -83,9 +82,9 @@ CONFIG_DECLANCE=y # CONFIG_NET_VENDOR_MICREL is not set # CONFIG_NET_VENDOR_MICROCHIP is not set # CONFIG_NET_VENDOR_MICROSEMI is not set +# CONFIG_NET_VENDOR_NI is not set # CONFIG_NET_VENDOR_NATSEMI is not set # CONFIG_NET_VENDOR_NETRONOME is not set -# CONFIG_NET_VENDOR_NI is not set # CONFIG_NET_VENDOR_QUALCOMM is not set # CONFIG_NET_VENDOR_RENESAS is not set # CONFIG_NET_VENDOR_ROCKER is not set @@ -114,7 +113,6 @@ CONFIG_FB_TGA=y CONFIG_FB_PMAG_AA=y CONFIG_FB_PMAG_BA=y CONFIG_FB_PMAGB_B=y -# CONFIG_VGA_CONSOLE is not set CONFIG_DUMMY_CONSOLE_COLUMNS=160 CONFIG_DUMMY_CONSOLE_ROWS=64 CONFIG_FRAMEBUFFER_CONSOLE=y @@ -167,37 +165,29 @@ CONFIG_NLS_ISO8859_13=m CONFIG_NLS_ISO8859_14=m CONFIG_NLS_ISO8859_15=m CONFIG_NLS_UTF8=m -CONFIG_CRYPTO_RSA=m CONFIG_CRYPTO_MANAGER=y -CONFIG_CRYPTO_CCM=m -CONFIG_CRYPTO_GCM=m -CONFIG_CRYPTO_CHACHA20POLY1305=m +CONFIG_CRYPTO_RSA=m +CONFIG_CRYPTO_BLOWFISH=m +CONFIG_CRYPTO_CAMELLIA=m +CONFIG_CRYPTO_CAST5=m +CONFIG_CRYPTO_CAST6=m +CONFIG_CRYPTO_FCRYPT=m +CONFIG_CRYPTO_SERPENT=m +CONFIG_CRYPTO_TWOFISH=m CONFIG_CRYPTO_CTS=m CONFIG_CRYPTO_LRW=m -CONFIG_CRYPTO_OFB=m CONFIG_CRYPTO_PCBC=m CONFIG_CRYPTO_XTS=m +CONFIG_CRYPTO_CHACHA20POLY1305=m +CONFIG_CRYPTO_CCM=m CONFIG_CRYPTO_CMAC=m -CONFIG_CRYPTO_XCBC=m -CONFIG_CRYPTO_CRC32=m -CONFIG_CRYPTO_CRCT10DIF=m CONFIG_CRYPTO_MD4=m CONFIG_CRYPTO_MICHAEL_MIC=m CONFIG_CRYPTO_RMD160=m -CONFIG_CRYPTO_SHA512=m CONFIG_CRYPTO_WP512=m -CONFIG_CRYPTO_ANUBIS=m -CONFIG_CRYPTO_ARC4=m -CONFIG_CRYPTO_BLOWFISH=m -CONFIG_CRYPTO_CAMELLIA=m -CONFIG_CRYPTO_CAST5=m -CONFIG_CRYPTO_CAST6=m -CONFIG_CRYPTO_FCRYPT=m -CONFIG_CRYPTO_KHAZAD=m -CONFIG_CRYPTO_SEED=m -CONFIG_CRYPTO_SERPENT=m -CONFIG_CRYPTO_TEA=m -CONFIG_CRYPTO_TWOFISH=m +CONFIG_CRYPTO_XCBC=m +CONFIG_CRYPTO_CRC32=m +CONFIG_CRYPTO_CRCT10DIF=m CONFIG_CRYPTO_LZO=m CONFIG_CRYPTO_842=m CONFIG_CRYPTO_LZ4=m From patchwork Tue Feb 18 13:00:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13979783 Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) (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 682BA2475E3; Tue, 18 Feb 2025 13:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.206.34.216 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883684; cv=none; b=hwNmSnPS/YnLadeRqcMcv1JrRaXPH7xwq0tZpckq15HJslVkSW1WD6ElGKPJvXLEjlPSdlKMZvyJSmO1k8KGQ7SBvRboayRPiNm2dKpHcFYfFN80XRlrUc7i8aFF82jv0dMbwZ5yxb7LzjysYRM5GuXuAC3md2sZrFNQJWWEF/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739883684; c=relaxed/simple; bh=REMDhOVh7pJ5KFuQlenUTEO944Cb9VC/25T5owjMRlw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bTMFNwJc34yV1TD7sUlaqkvA9oG9h8MPhi+Pu+IagFlBMi5cIGY6ZZVcSBG3YDh3Hx56QiVK6MeyKDCVi3RZleU/Od6XSviMAJKKLfGV1wTO+xw7/hi3haxP75WXaFjDHgFNusW7W/B9BkyfGtWsreRtprIMSw7aDtIVIpu7FTA= 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=VQzKTkTZ; arc=none smtp.client-ip=54.206.34.216 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="VQzKTkTZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1739883638; bh=vu9AhJ+sH4SiA9VYYHMJNNq3mIbaKW1m2kie1eFfosk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=VQzKTkTZtAF89B1DWJjhgmqKu+3UVYMKg8dJLKnoFvxxwn+jUflmN5kPSW6Du83Nk ZNCnBjj06tV91TrNnRsO2bQktndPzdCxJ2gd8QVzAmQPcaPuJpHloC2F/7PpOERbxe 6YYrOYvbZN4HAO/s5hVBZczx0PDZBtLpgqaMWz84= X-QQ-mid: bizesmtpip4t1739883626tcxbnq6 X-QQ-Originating-IP: kYssLISZAcBG86zvva6DvONeMTAgztYYkGvTh2hosiU= Received: from localhost.localdomain ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 18 Feb 2025 21:00:24 +0800 (CST) X-QQ-SSF: 0002000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 14385670806022170288 From: WangYuli To: wangyuli@uniontech.com Cc: chenlinxuan@uniontech.com, guanwentao@uniontech.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, macro@orcam.me.uk, niecheng1@uniontech.com, tsbogend@alpha.franken.de, zhanjun@uniontech.com, geert@linux-m68k.org, herbert@gondor.apana.org.au, ebiggers@google.com, ardb@kernel.org Subject: [PATCH 7/7] MIPS: decstation_64_defconfig: Compile the kernel with warnings as errors Date: Tue, 18 Feb 2025 21:00:15 +0800 Message-ID: <5CD9CFC46F6AC7FE+20250218130015.668651-2-wangyuli@uniontech.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> References: <487CE8AA937621E2+20250218125101.663980-1-wangyuli@uniontech.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: NikuFQrTsu3BJQDMA2+Etm1PHjFA8b62Q2dOGzF7I/DYNyRmYBQ2dLpu hKQ0LpY6WYFbPrzVxcgZIcUceQnVS5IlyavqmVw8pLP4eooQzm/9GoY8jIMycNhF//Wb6ch X2B0pr1SeSKUi9p0ODmu/LpLcJU6sGyemThoaSXjHidnnwYmvG2b0u4tdiMz3paEK5oCEEO boUM36TnGeliw7lwvCEhe7JQWIuG+d+QDrFagSp7HcruHCUu1hYsaKtgqlhJbraC8Tf7n2m Y+rPMkNPvg3KYHmxFaRunWsfd8ZcXtwVMxZmEywCY3rr3cDkXMvwrHe5xzObuKCXJENstz/ N+rld3HnYsIv9eFe90KprARbfTkuY62fnkjp8d3g69LlnUErt9LMkUQaMtOIctTm28/cyPu rYOv2BiTNlW7SWcWxxx2epiPcpa/VfkIlvkktm6G76ajly1Znvh/GiXiEHQr2LZXatupFi/ h2SaA5QXXnctgfuokqvI/idsEOphtQ1b0kfwFXc7ELY/KIWd1IqJbbH05sjVeyFv3fZi7jw F+CNTIg5jELuMqUhbz50FtpWpnqvHAZ5Fb2UQXyI+IbpbbVeFCRKwAgfspioYtmpwCpIWGi 73A1zU4LiEdMOvNTwU35YNYIqfxW79cCizjYkGk5bLQYWSMbL9GL5kZYls+T7tLvWNmuCx5 ApePES6NzGcauRXIZ+xX+9inGAf6n0yTJce5khahpPjKZyGTmAaQKMTf9QxVzIFSB0WHx6W iQH1bIHwO+SJk35GMMrIcfC7iw5ajidDBA06GpDViZXNzgtSADvCqPJL1RqJFlQK9uVYw+/ MkRQYiMsJFMvyQS19GkcO3kqsKD4i72qM45ITvQHB3TH3Bgs2aaBR+PgqnLbAcoc+GRkyLA XLZQ5mWukHyTIzwN9jxvVBAIcQe0T1mLAO+5ikybOyVgF9SoFSTlX6UXPMq74pN3CMY+hyU nM38aQeE9AjgsQ47FjOnXLkxviTMpwAtNU2IjGseKY8ojZqSyrknjyVsANSP+j9rfL/0mgS Wlkvx4/ZeIslGxu1mJIs7oN0HCmn9tPul/GJGRddIdHUTuiT5unagylYnQXv7ykr1Z1DIs4 AdptKaASB6lgpPQ48s67nlL91ZXZxTD8mZV13ajwJfnvwb5qxvhquSOKFiEjuiXJknImn8e XPzH X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= X-QQ-RECHKSPAM: 0 All compilation issues under decstation_64_defconfig have been resolved, and it is now safe to enable CONFIG_WERROR now. Signed-off-by: WangYuli --- arch/mips/configs/decstation_64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/configs/decstation_64_defconfig b/arch/mips/configs/decstation_64_defconfig index cf8e72164e40..66bf399bbd66 100644 --- a/arch/mips/configs/decstation_64_defconfig +++ b/arch/mips/configs/decstation_64_defconfig @@ -1,3 +1,4 @@ +CONFIG_WERROR=y CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_HIGH_RES_TIMERS=y