From patchwork Mon May 13 13:20:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13663448 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84F4F1514E5 for ; Mon, 13 May 2024 13:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606466; cv=none; b=SNxydYrEtJAFzTMzdf2RXV1PrgwoM6rwk5tv+AqINqFaSFEAV4uoWbFG3ddVoi5lQb1gSRzuVufNAOgEoAWkLUB18WqPh0laUQKVWZvQkqvuCCy+kGt+ei88JFZanNEnfSBI5Y3PxUJ4vq9I35OJb/ocIv/HOEIUkVN5thWt6/4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606466; c=relaxed/simple; bh=RJCXdkLFskpSIxdK08El8C87yvPHTIuYVmWle4eyCy8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gGCr6c4aSM/wxfxZGrUROqvLnl70JjQADDD1uHSVDW5xyYjl4Qhd3bsjEmxAuWF+3OGjRfBzYk0nOm/rJdY3NuBliuyPAIL3wpl+A0TG6vPu3YoRQIDSTEl2tOb4O4UwLKsFoqJIenQdJzHShvv87UOidFc9nQTUdvxh/FmgZ+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:c85e:4b6d:1f91:1410]) by laurent.telenet-ops.be with bizsmtp id NdM02C0055V4kqY01dM0ZC; Mon, 13 May 2024 15:21:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1s6Vb7-00399i-RK; Mon, 13 May 2024 15:21:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1s6Vbv-008tqR-VC; Mon, 13 May 2024 15:20:59 +0200 From: Geert Uytterhoeven To: Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Arnd Bergmann Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/3] sh: of-generic: Add missing #include Date: Mon, 13 May 2024 15:20:53 +0200 Message-Id: <942621553ed82e3331e2e91485b643892d2d08bc.1715606232.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-sh@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 arch/sh/boards/of-generic.c:146:20: warning: no previous prototype for 'arch_init_clk_ops' [-Wmissing-prototypes] Signed-off-by: Geert Uytterhoeven --- arch/sh/boards/of-generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index f7f3e618e85b6a52..cc88cb8908cc1d2e 100644 --- a/arch/sh/boards/of-generic.c +++ b/arch/sh/boards/of-generic.c @@ -10,6 +10,8 @@ #include #include #include + +#include #include #include From patchwork Mon May 13 13:20:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13663447 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84FE815217E for ; Mon, 13 May 2024 13:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606465; cv=none; b=TygYjl15oIIhSjZ2U6mV/O03bKmsBUQdgZk8x7gr+PaSpAHp9LZPJCWzWM+4mfBjbMzKybylfw6qlFaPdZtMN/IN22Y7x/IuL/zlcHY01KQWETl7LJqNHCBKU9CQeWW1Vdksa+k0HvpBEsl39VWcEr+iQaT+2bb10+KZSXu+c3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606465; c=relaxed/simple; bh=pc/VJ1lCqkuIAuXgBQOqD4NDNJ806OYBSWFMiP8vFMo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oqHHdkPAekwJ7r6UApVKi8eEvDB+kgZg89mmxIhZaryRt0G7mEjCb1dVZn6LhQTQLoOUUypL52qpDxOu20oI0OAq0VAsQBiCZqaGNWxNp/TE05JUuM9qwFUVTG/3wdQGkzsqO/iacZdCLHcLeYHwiMMZE6o28IF5uEOcLq7yD+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:c85e:4b6d:1f91:1410]) by laurent.telenet-ops.be with bizsmtp id NdM02C0065V4kqY01dM0ZD; Mon, 13 May 2024 15:21:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1s6Vb7-00399m-Ry; Mon, 13 May 2024 15:21:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1s6Vbv-008tqU-Vr; Mon, 13 May 2024 15:20:59 +0200 From: Geert Uytterhoeven To: Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Arnd Bergmann Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] sh: smp: Protect setup_profiling_timer() by CONFIG_PROFILING Date: Mon, 13 May 2024 15:20:54 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-sh@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 arch/sh/kernel/smp.c:326:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes] The function is unconditionally defined in smp.c, but conditionally declared in . Signed-off-by: Geert Uytterhoeven --- arch/sh/kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index b3ea50aabba3d7f2..108d808767fa9984 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -322,11 +322,13 @@ void smp_message_recv(unsigned int msg) } } +#ifdef CONFIG_PROFILING /* Not really SMP stuff ... */ int setup_profiling_timer(unsigned int multiplier) { return 0; } +#endif #ifdef CONFIG_MMU From patchwork Mon May 13 13:20:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13663446 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85027152182 for ; Mon, 13 May 2024 13:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606464; cv=none; b=Ypp7Fg7/lIK7/j8fBBT4B1rBnHNzg9BBMGZfFscC6i/lNpb+8mkSPHJO35HvMXReiQxHVkaPbnlOyKyxzWyTkTnzP57uy9SKJROg4IYRwdm9Nqn9bU8ACVRmPb4SmqY9izi0AonIC34Nu9mbjQ9EiuHEgOxSzerA1h3T+QsypAs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715606464; c=relaxed/simple; bh=t+9d5z/RIWVL4mfXlBPmUVnjbCVQGratb2WunXgnKGA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pwMHpqHSh1F6tkAhuoDlDcGaAJh0uIsQZnp4w9/Bt2A6sKIFambc7BYI3ds4f1YIM3yZo0CL5YBR3yV8a0FRoCY5Ad6H1hOq9GG8P5PF5HjSu9xzrPK0QZA1nNApe3yDm17KOAuVvb2n+d67xrfENw5TAQgE1c9jP0CF2JLaryo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:c85e:4b6d:1f91:1410]) by laurent.telenet-ops.be with bizsmtp id NdM02C0075V4kqY01dM0ZE; Mon, 13 May 2024 15:21:00 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1s6Vb7-00399r-Si; Mon, 13 May 2024 15:21:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1s6Vbw-008tqZ-1D; Mon, 13 May 2024 15:21:00 +0200 From: Geert Uytterhoeven To: Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Arnd Bergmann Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] sh: setup: Add missing forward declaration for sh_fdt_init() Date: Mon, 13 May 2024 15:20:55 +0200 Message-Id: <7e3ea09e706a075bceb6bfd172990676e79be1c2.1715606232.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-sh@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 arch/sh/kernel/setup.c:244:12: warning: no previous prototype for 'sh_fdt_init' [-Wmissing-prototypes] Signed-off-by: Geert Uytterhoeven --- arch/sh/include/asm/setup.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/include/asm/setup.h b/arch/sh/include/asm/setup.h index fc807011187fa1c0..84bb23a771f3538b 100644 --- a/arch/sh/include/asm/setup.h +++ b/arch/sh/include/asm/setup.h @@ -21,5 +21,6 @@ void sh_mv_setup(void); void check_for_initrd(void); void per_cpu_trap_init(void); +void sh_fdt_init(phys_addr_t dt_phys); #endif /* _SH_SETUP_H */