From patchwork Thu May 16 11:59:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Genjian X-Patchwork-Id: 13666043 Received: from m16.mail.126.com (m16.mail.126.com [117.135.210.9]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5396145B24; Thu, 16 May 2024 12:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715861902; cv=none; b=ebw+ozrb6KUVzKWC8oxnpFga0H6M5CO5VYhsOhZVINCnOMSmOGuSA8WW05Oi/5KJec2Nr8mbuseDs8+trjPrIfTYGmMTXKTOwLzIdH+AOh7aYCjwyc6UXa42mJ2PU/uYdJ7+2DxfoN2p2hOHalXKz77/IirxP405t//UyzwYwjM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715861902; c=relaxed/simple; bh=21bx4c1PmfkU2JPz9tYRAzj1c31ZjgcveRPXwlDx3Pg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=QTcIIykGwRh3V+j72n+v86H21dhfQiklirYhB92RBoVTw33UsN18EnSq/T0J35f2zr5v9JenjbxPbYdJ8cqOxics12Uc966WEg8r2VLjIWtbRDWPkwbMrxGlw7Qql3tpi4g4Tx8/uCGDhy1m8FjrrBWwr0HpfAwcqXTLKFNDJlo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=QaF6Wo9e; arc=none smtp.client-ip=117.135.210.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="QaF6Wo9e" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=vofaX8fsHWZZdLKjY6vYcEjUy3BVDsZa1OFGxEENHhk=; b=QaF6Wo9eWARKm6glyHkx+PiUgBnZV92PYSDX8gy3+7j80LCoa2hX4NLvmJH9Sc fGuBYfC7nNA1mPINu/KLN0qje8LqcQ6XVqDnQn0hfiMxqkMstIuZTuOvTvxKy8Fi AOEGFzxpCQowwr48HMWMsoG2w7Six5OkzHTp6n68Yoq7A= Received: from localhost.localdomain (unknown [116.128.244.171]) by gzga-smtp-mta-g1-4 (Coremail) with SMTP id _____wDHD+tp9UVmXt_9Bw--.21873S4; Thu, 16 May 2024 20:01:52 +0800 (CST) From: Genjian To: tsbogend@alpha.franken.de, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, ricardo@marliere.net Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Genjian Zhang , k2ci Subject: [PATCH 1/3] MIPS: Loongson64: include asm/bootinfo.h Date: Thu, 16 May 2024 19:59:04 +0800 Message-Id: <20240516115906.1224164-1-zhanggenjian@126.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: _____wDHD+tp9UVmXt_9Bw--.21873S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7XFWrKF47Cr4fuFWxuw4UJwb_yoW3trXEga 42y3y0grn5AF1xA34fWFn3Ar4ak348Way5uwn5Xr9Yvas8JayDCFW7Z34UtF1DWrs0yrWr Zr1rJr1kCF1fGjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjS_MPUUUUU== X-CM-SenderInfo: x2kd0wxjhqyxldq6ij2wof0z/1tbiHhTgfmV20wENggAAsa From: Genjian Zhang build-warning is printed: arch/mips/loongson64/dma.c:25:13: error: no previous prototype for ‘plat_swiotlb_setup’ [-Werror=missing-prototypes] Include the header to fix it. Reported-by: k2ci Signed-off-by: Genjian Zhang --- arch/mips/loongson64/dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/loongson64/dma.c b/arch/mips/loongson64/dma.c index 8220a1bc0db6..5c5e524b9121 100644 --- a/arch/mips/loongson64/dma.c +++ b/arch/mips/loongson64/dma.c @@ -3,6 +3,7 @@ #include #include #include +#include dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { From patchwork Thu May 16 11:59:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Genjian X-Patchwork-Id: 13666164 Received: from m16.mail.126.com (m16.mail.126.com [117.135.210.9]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60461335B5; Thu, 16 May 2024 12:48:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715863694; cv=none; b=Crxnrm/X45q/tKYWwLJe/K8ejO7W3r4WjRtt0ZTYqLooti0w8omTF5qcalnIzvW1qwHBbKsIIFzO3J9o+2GNY81jey5Xdl0vEy3tsY+9JNu4Tdf6jwEPBD/HJ8C7zU9qX3N0QOvuZB/SwnAJevc6QkhggPW0oWdYJDw7KbLxJGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715863694; c=relaxed/simple; bh=gKmc573CtTeaZFruajBi8whb3uaaHPFcFemzrj7BzCw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=dtbsVfchScDfUMjegs5etFCLLrOUAoOutkEaNzqQE9mRzMxcjKOMTDJMXo4Cqo6wWuOUefVC49cAFmTrscppdVoiUsWV5bNzSuKPI3QkF2KieowoC+L1O8BLodhZGTdNdi1OJNWAe0ghIUv/78tWDFQqpteTEUEKgnnwlt2iEsQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=OZ6a9/Sh; arc=none smtp.client-ip=117.135.210.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="OZ6a9/Sh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=p5ICnfKj+P66UxcPsMwgRbXDkcNOihM/16tMz/EFdUc=; b=OZ6a9/Sh+KMQq8I6Jn0Ok1zxjwIg2hZIKF821g6G7A1p3E2wtTShxDNb5xr1/1 TkOVoEMrG1csRt/95ugwzIlKX9M4RYve4sY2/4tz6YrjARue7GN0o3F7DFjD4Ti+ rsGp4gVf40T98458RHO5XTiT9+1G2akFPRs71BHMzQMWI= Received: from localhost.localdomain (unknown [116.128.244.171]) by gzga-smtp-mta-g1-4 (Coremail) with SMTP id _____wDHD+tp9UVmXt_9Bw--.21873S5; Thu, 16 May 2024 20:01:57 +0800 (CST) From: Genjian To: tsbogend@alpha.franken.de, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, ricardo@marliere.net Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Genjian Zhang , k2ci Subject: [PATCH 2/3] MIPS: sgi-ip22: Add prototypes for several functions to header Date: Thu, 16 May 2024 19:59:05 +0800 Message-Id: <20240516115906.1224164-2-zhanggenjian@126.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240516115906.1224164-1-zhanggenjian@126.com> References: <20240516115906.1224164-1-zhanggenjian@126.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: _____wDHD+tp9UVmXt_9Bw--.21873S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZF4kXr18Zr4UZF43Cw1Dtrb_yoW8uw4fpF WDA3Z7GrW2grWkXa4rAryUur13Z3Z8C3yFyr4Utr9FqF1xWry5JrnYqr98Xrn8WrWDZ3WF gFyruanrKr4I93DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jr9NsUUUUU= X-CM-SenderInfo: x2kd0wxjhqyxldq6ij2wof0z/1tbiHhTgfmV20wENggACsY From: Genjian Zhang This fixes the following build warning: arch/mips/sgi-ip22/ip22-time.c:119:18: error: no previous prototype for ‘indy_8254timer_irq’ [-Werror=missing-prototypes] arch/mips/sgi-ip22/ip22-berr.c:89:6: error: no previous prototype for ‘ip22_be_interrupt’ [-Werror=missing-prototypes] arch/mips/sgi-ip22/ip22-berr.c:113:13: error: no previous prototype for ‘ip22_be_init’ [-Werror=missing-prototypes] Reported-by: k2ci Signed-off-by: Genjian Zhang --- arch/mips/include/asm/sgi/ip22.h | 3 +++ arch/mips/sgi-ip22/ip22-int.c | 2 -- arch/mips/sgi-ip22/ip22-setup.c | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/mips/include/asm/sgi/ip22.h b/arch/mips/include/asm/sgi/ip22.h index 87ec9eaa04e3..57942afb5c86 100644 --- a/arch/mips/include/asm/sgi/ip22.h +++ b/arch/mips/include/asm/sgi/ip22.h @@ -76,5 +76,8 @@ extern unsigned short ip22_eeprom_read(unsigned int *ctrl, int reg); extern unsigned short ip22_nvram_read(int reg); +extern void ip22_be_interrupt(int irq); +extern void ip22_be_init(void) __init; +extern void indy_8254timer_irq(void); #endif diff --git a/arch/mips/sgi-ip22/ip22-int.c b/arch/mips/sgi-ip22/ip22-int.c index 96798a4ab2de..11f8adc98cb5 100644 --- a/arch/mips/sgi-ip22/ip22-int.c +++ b/arch/mips/sgi-ip22/ip22-int.c @@ -165,8 +165,6 @@ static void __irq_entry indy_buserror_irq(void) #define SGI_INTERRUPTS SGINT_LOCAL3 #endif -extern void indy_8254timer_irq(void); - /* * IRQs on the INDY look basically (barring software IRQs which we don't use * at all) like: diff --git a/arch/mips/sgi-ip22/ip22-setup.c b/arch/mips/sgi-ip22/ip22-setup.c index b69daa02401b..e06a818fe792 100644 --- a/arch/mips/sgi-ip22/ip22-setup.c +++ b/arch/mips/sgi-ip22/ip22-setup.c @@ -26,8 +26,6 @@ #include #include -extern void ip22_be_init(void) __init; - void __init plat_mem_setup(void) { char *ctype; From patchwork Thu May 16 11:59:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Genjian X-Patchwork-Id: 13666042 Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.9]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 687F4145B01; Thu, 16 May 2024 12:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715861899; cv=none; b=KMvoOwqP9zW1TMgsmWxeea8GQlYSFwt6u4YFalNZTLhmRam6gBTmsevklBUSwZinXoE7JQZgefR+pAfuifLfYhxZ/qLdwB6ZYunm8TQ+1gSEVS8ezQi6DGcrqcGLy4tbmJa/uISQogX0qwRB1h+EQC2U0ie59mCfC90oqILUWf4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715861899; c=relaxed/simple; bh=HFCQg3Sx4ZhEpDdFJ4Xk+JoGPY6Gfx1b4LEHhW4aXsA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=oYFOLD2DEVsknwCqwvwm579S27PyqDQRof35SXxz/5H84EEXY91xrxP1RsfwF8W3R6PEgiB8Q5lgmeSQ4ZEHx36a0yHxU1s2KdAH6APX7emE0Ms0n0P9MgLZBXlv2aVfesVm8NA3x3L9EeKzOSWVpXBRz/8eXEN57N1v4Fmv+nw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=LOffGyV7; arc=none smtp.client-ip=220.197.31.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="LOffGyV7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=c/c6UprRMJ+Pu2qhWWNi5OJ+tLUdGCPrD5YFgn6dxvw=; b=LOffGyV73othVfZ2u6U7kpHvNHb8ueEpG5nSavtgJ1IQQKabg/Mqyca701W+E8 WCtLQeJdwM6X20TjKDQhRQtUVfXJIo1gJHA4pWS/kyG3KMDyTjeOFGpIWUDsfiIZ xpzxkVKSAhzJaffaxpA/Ze+DebM2GWs94l3ha6forVCLg= Received: from localhost.localdomain (unknown [116.128.244.171]) by gzga-smtp-mta-g1-4 (Coremail) with SMTP id _____wDHD+tp9UVmXt_9Bw--.21873S6; Thu, 16 May 2024 20:01:58 +0800 (CST) From: Genjian To: tsbogend@alpha.franken.de, chenhuacai@kernel.org, jiaxun.yang@flygoat.com, ricardo@marliere.net Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Genjian Zhang , k2ci Subject: [PATCH 3/3] MIPS: ip22-gio: Make ip22_gio_set_64bit() and ip22_gio_init() static Date: Thu, 16 May 2024 19:59:06 +0800 Message-Id: <20240516115906.1224164-3-zhanggenjian@126.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240516115906.1224164-1-zhanggenjian@126.com> References: <20240516115906.1224164-1-zhanggenjian@126.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: _____wDHD+tp9UVmXt_9Bw--.21873S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZFyUAr48KrykGry8Kr1kuFg_yoW8JFy7pr W0yFnrKFWjgFWDWFs5Cry8Xr4S9wn8ArWFvF4qk34IgF1rGFy3JF4rKr98Zr1UGrWUZ3Wr XF1Fg3ZxKw4I9wUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UZAwsUUUUU= X-CM-SenderInfo: x2kd0wxjhqyxldq6ij2wof0z/1tbiHhTgfmV20wENggABsb From: Genjian Zhang These functions are used in only one file. Made them static to fix the following build error: arch/mips/sgi-ip22/ip22-gio.c:249:6: error: no previous prototype for ‘ip22_gio_set_64bit’ [-Werror=missing-prototypes] arch/mips/sgi-ip22/ip22-gio.c:398:12: error: no previous prototype for ‘ip22_gio_init’ [-Werror=missing-prototypes] Reported-by: k2ci Signed-off-by: Genjian Zhang --- arch/mips/sgi-ip22/ip22-gio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/sgi-ip22/ip22-gio.c b/arch/mips/sgi-ip22/ip22-gio.c index a3cdcb289941..2738325e98dd 100644 --- a/arch/mips/sgi-ip22/ip22-gio.c +++ b/arch/mips/sgi-ip22/ip22-gio.c @@ -246,7 +246,7 @@ void gio_set_master(struct gio_device *dev) } EXPORT_SYMBOL_GPL(gio_set_master); -void ip22_gio_set_64bit(int slotno) +static void ip22_gio_set_64bit(int slotno) { u32 tmp = sgimc->giopar; @@ -395,7 +395,7 @@ static struct resource gio_bus_resource = { .flags = IORESOURCE_MEM, }; -int __init ip22_gio_init(void) +static int __init ip22_gio_init(void) { unsigned int pbdma __maybe_unused; int ret;