From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DC87E3FB3B; Thu, 13 Feb 2025 14:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739458389; cv=none; b=k5pRLxpvHeoKZZOVHA03QXZw4RYeY08azikcJ08luAWXjiEWs67bFHbnzne+NMJfnD62zEQDpja81dFC0nXuYKOWEq7q5KlfHAX4P38LSs+y7WuoInSXRkmkCDRQTvFzniue2UmkWxval8ZyhdPuPEdg/ljKVlB/Nlf3cJRyBsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739458389; c=relaxed/simple; bh=hcFLfJhs+f7hmQVLuSTP+LfZiknVs1qQSLolJ+27Fuo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hbAUBfivVY59aSdBPxQ9UF/fl70savxhIGuosxjY4MUlnsGVb7YqKqIA4BZ/8ouTRVQp7BBvcfkwZRLK1Dj7xo+5XijU6kjlBaHugB9chyoM0vIOeUlPOAfwqrtEX2juEPqel2Z8DOffn68Por9rE+wPMjy3xEP+sbOKvFz/wmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W34dgGtk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="W34dgGtk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C567C4CED1; Thu, 13 Feb 2025 14:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739458388; bh=hcFLfJhs+f7hmQVLuSTP+LfZiknVs1qQSLolJ+27Fuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W34dgGtkmm7+Bp8E1Qjo0H1r8VBYo8UBuZBnRsS7Auy1aK7oHsgdXX0UNUMLQRgYL 3Zmt4vrDm9Mm8VEOyJXbRLgizITtqD3Q+gShulm7n4Dvg1OPCc5o7w5IS4tf33AfYc 7sGSeF+4d8CvnA9v1MM8xU+A38PtjOVnt/Uo83J4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Uros Bizjak , Michal Simek , Tanmay Shah , Jassi Brar Subject: [PATCH 6.12 368/422] mailbox: zynqmp: Remove invalid __percpu annotation in zynqmp_ipi_probe() Date: Thu, 13 Feb 2025 15:28:37 +0100 Message-ID: <20250213142450.749529546@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250213142436.408121546@linuxfoundation.org> References: <20250213142436.408121546@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Uros Bizjak commit 170a264d2611a0bfa96b7818730473db5e7546fc upstream. struct zynqmp_ipi_pdata __percpu *pdata is not a per-cpu variable, so it should not be annotated with __percpu annotation. Remove invalid __percpu annotation to fix several zynqmp-ipi-mailbox.c:920:15: warning: incorrect type in assignment (different address spaces) zynqmp-ipi-mailbox.c:920:15: expected struct zynqmp_ipi_pdata [noderef] __percpu *pdata zynqmp-ipi-mailbox.c:920:15: got void * zynqmp-ipi-mailbox.c:927:56: warning: incorrect type in argument 3 (different address spaces) zynqmp-ipi-mailbox.c:927:56: expected unsigned int [usertype] *out_value zynqmp-ipi-mailbox.c:927:56: got unsigned int [noderef] __percpu * ... and several drivers/mailbox/zynqmp-ipi-mailbox.c:924:9: warning: dereference of noderef expression ... sparse warnings. There were no changes in the resulting object file. Cc: stable@vger.kernel.org Fixes: 6ffb1635341b ("mailbox: zynqmp: handle SGI for shared IPI") Signed-off-by: Uros Bizjak Reviewed-by: Michal Simek Reviewed-by: Tanmay Shah Signed-off-by: Jassi Brar Signed-off-by: Greg Kroah-Hartman --- drivers/mailbox/zynqmp-ipi-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mailbox/zynqmp-ipi-mailbox.c +++ b/drivers/mailbox/zynqmp-ipi-mailbox.c @@ -905,7 +905,7 @@ static int zynqmp_ipi_probe(struct platf { struct device *dev = &pdev->dev; struct device_node *nc, *np = pdev->dev.of_node; - struct zynqmp_ipi_pdata __percpu *pdata; + struct zynqmp_ipi_pdata *pdata; struct of_phandle_args out_irq; struct zynqmp_ipi_mbox *mbox; int num_mboxes, ret = -EINVAL;