From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384874; b=FzSsq4JFL10X+EcQeg1tttFTEPhdSqi7O0k5s+Mqard5Gd2zYnU9trcgqw0eEV7+vp7g eVjtiYCNDm4v4IJdKNg/48fXBs0n4I0hmxJ6FHO1bmmuOVjwDmK/3QA2gfYX7h+OghwXX 1g+B1Q92GUePdMAOMmsNl1IPZ8RVtIG6v7+SNdEf0VvPUCeOJIEgT34tOW6clOOyLMV6+ NL+bp9tdEXRC/w89JgHs4veUYcFLu4PDgMenYR0uvAcMwHaw4t1+8Lp8ozV8zR3sOoAoH dXgKd7514KZPgvUz1jTsYNeWsMCiG1Lf4fTq4sg7dmo19MlFpE4LQN2FdPQ10oggyCg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384874; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=DE1+EcN1rXjAIVNGE0GfFJByS/PAwlXdvyxiHjdU7Sw=; b=mPljxbU3VAJW+QmfjL1bFhwsHlYTnnAAhGPHkYg7T54tIMfZZXTFjaBXJZVO9/LJvAEr 9V+Dj8+zE/kcJEE4pKQb8aszD6YiQ8p4WVJAb3P+DgYUrEMeiHPSY8piWE/3XeuLafiyF rk3RkZ3qgqiwDJs2EKedEs7v1NBlwOfSeCGuB+pjtVMaqETJaboJhQe+E9ts9kZBScZID FOMah+peE3jZFis3Qr2rAxTJ8Ap2cprdbSWSXUtRI4edSj4xLmMSOwfP1TtskKAH1h07A 5jw+cqHYl34B8R/wr4lP/z8CpFfKFrNPi7+7Kp4p4JDNDVthcy2X0YQzb1eFAS1BC+Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mB+wuxNm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8532F606A322 for ; Fri, 4 Dec 2026 11:47:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mB+wuxNm Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2A001F000CE; Fri, 4 Dec 2026 11:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796384873; bh=DE1+EcN1rXjAIVNGE0GfFJByS/PAwlXdvyxiHjdU7Sw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=mB+wuxNmM+3QO1GGs1rDQd5l6tOSZ54XFGouUFPMJV8O+8wjY5+5pIkfsSig54489 w1vudzv/c3Wqt8C1et7RWTjexbtYx7AKmntymhCWBzgP4gH/7dWTZi6Th52Bh/YFgn /w02bpwJ1pBjfoQDoki3/QyV/rqgM9eCbNa3zfbwjnyqM2oziQhtsxptp0F86wkFZ7 Ho3exLg6jbEjbSipJCkX7sRepohG+QVlsdAGMuZTPgM1K/gwk+CL0LKPtM0n0tXzM5 xlPiktjWEXKJ76lwp/Gz4xucMHHBvIb3b/+1w4za8Ig9T7j2uvZOuPs6FYxcdxDSzv hRNsCoDwOGNsw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 1/5] RISC-V: Move common MPXY helper routines to arch/riscv Reply-To: sashiko-reviews@lists.linux.dev To: "Anup Patel" Cc: linux-clk@vger.kernel.org In-Reply-To: <20261204111504.3362889-2-anup.patel@oss.qualcomm.com> References: <20261204111504.3362889-1-anup.patel@oss.qualcomm.com> <20261204111504.3362889-2-anup.patel@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 11:47:53 +0000 X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] riscv: incomplete sbi_mpxy_notification_data under !CONFIG_RISCV_SBI -- commit 5bd5847f95f6e9d63b1019e2427257b59d50c5e4 Author: Anup Patel RISC-V: Move common MPXY helper routines to arch/riscv This commit moves the SBI MPXY helper routines and per-CPU shared memory management from the SBI MPXY mailbox driver into arch/riscv so other in-kernel callers can use them directly. > diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h > index fd6266a7b3395..1ba1f66af02ce 100644 > --- a/arch/riscv/include/asm/sbi.h > +++ b/arch/riscv/include/asm/sbi.h > @@ -693,6 +693,37 @@ static inline int sbi_fwft_set_online_cpus(u32 featu= re, unsigned long value, > return sbi_fwft_set_cpumask(cpu_online_mask, feature, value, flags); > } > =20 > +/* SBI MPXY notification data in shared memory */ > +struct sbi_mpxy_notification_data { > + /* Remaining number of notification events */ > + __le32 remaining; > + /* Number of notification events returned */ > + __le32 returned; > + /* Number of notification events lost */ > + __le32 lost; > + /* Reserved for future use */ > + __le32 reserved; > + /* Returned channel id array */ > + u8 events_data[]; > +}; [ ... ] > @@ -754,7 +785,60 @@ int sbi_debug_console_read(char *bytes, unsigned int= num_bytes); > =20 > #else /* CONFIG_RISCV_SBI */ > static inline int sbi_remote_fence_i(const struct cpumask *cpu_mask) { r= eturn -1; } > -static inline void sbi_init(void) {} > +static inline void sbi_init(void) > +{ > +} > + > +struct sbi_mpxy_notification_data; [Severity: Low] Should struct sbi_mpxy_notification_data be defined outside CONFIG_RISCV_SBI? With only a forward declaration here, a caller of the sbi_mpxy_get_notifications() stub built with CONFIG_RISCV_SBI=3Dn that accesses its fields or takes sizeof(*notif_data) will fail to compile with an incomplete type error. Since the struct only uses __le32 and u8 from linux/types.h, moving its definition outside #ifdef CONFIG_RISCV_SBI makes the stub usable. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204111504.3362= 889-1-anup.patel@oss.qualcomm.com?part=3D1