From patchwork Fri Nov 4 15:41:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 13032224 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77D9BC433FE for ; Fri, 4 Nov 2022 15:43:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=IVxL8Za1wikE9VmYlDQqupIHP5HL3S1mUpHBvSjeMYY=; b=ntR5TBSItDXvPF Ai5hvW8LSJiJs76z7zX4rKpcCNPTyYvLGQiyDerXxQmHU0GJ4vvy7NnOQ4Ya2AeKCOiVPimHTm37O qMcgX/eb+NzSKS0+ePkMJR4fk0Q0/k0y5esrM8JZIw2q8VYWiKLPgGbIEAQe+Owtn53iFNQrATCyc cpxMk2Ku05JCuU1xgAAnNtc+69Md5DYemeX+OmPQJEkvJOG2OhjlS7mfB4xFgfi8uVqtJ9vuImNJm RGZF4pjCi0PIr9ih8Vk5+R+59bDeSMnJzEwTDtjyvU36g5mqDrYLOw0Oo5ZBxaAFORUktc6hKzuAE 9YTBkLNaBu7jDmqhs5PA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqypb-004IWQ-2A; Fri, 04 Nov 2022 15:42:08 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqypV-004IUN-Cn for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 15:42:04 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9FAB55C0075; Fri, 4 Nov 2022 11:42:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 04 Nov 2022 11:42:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1667576520; x=1667662920; bh=K/Jy/ap7eS 35A75a4wuv/qSzMWMS57fbfihQm65uJFk=; b=gSVRsc6gTJel/XjnIYYG6Ppafn SRUXo1y/EgGMn6qvDPFrE8QMKvueUOCk2laIrbwLxj45K8OicwINlEhoYgjBeuhb HKq4jM582NDRcKsS2KCf8b3y6h0OCAm3fS4iXGl11crEhPx/gC01VJdRlwcSD9Nt HFEI1F4wi8IfhRY7Ge0wyyDi4hjZ71xbp/A57aygls/kUiVNUa0jicoDAzwfTOkP DrtQXUTEiFCLH7DEuq08XrfwAEGn5BfSYW1Sdq2Mo8/vTwrNXyksCvK40+56Ipf0 IBikYnxT7FcK/c5R099s6mP0FO5a0Z41qje7sQsrqmvoHK8a4D0qXsxURaZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1667576520; x=1667662920; bh=K/Jy/ap7eS35A75a4wuv/qSzMWMS57fbfih Qm65uJFk=; b=BP5OIs+31Q2jEpyxftz4NKi25JYuYkihFe1ohPfu8+sleOuVjIH MmxDoqp6nrrQH1lFCNBNGr+GWRC8mJj2PGO2+cr3RrijsjpAIvIkwzSBKJ6iPwSf B3+JCKC41Q7PhnhrzFarYKddGJ128SoGMpF0UAx5z4OlbL4QKGHK05X/MJ+aXxAH bfMTghDiakCznI9+lF/doUfcwqN4V63LhVp+V0wZAT6u1icyFQWOX/LKK/2Vq9IH 0wrvUkjHhiG0nrQDsqtWJR9Oc5bKtsluxU0xj/sxnl9NeAmYMEG66ESqLknmT+H8 3IG7f6LSH8symcWYUlWxxQk0HIn8vw066vQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvddugdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epleduffeiheeuvedtffevtdeuleeljeduudfgtedtvefhfeffvdfghfejhefgleelnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnse hsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Nov 2022 11:41:56 -0400 (EDT) From: Sven Peter To: Arnd Bergmann Cc: Sven Peter , Hector Martin , Alyssa Rosenzweig , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] soc: apple: rtkit: Stop casting function pointer signatures Date: Fri, 4 Nov 2022 16:41:53 +0100 Message-Id: <20221104154153.79373-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_084201_575963_4FB98611 X-CRM114-Status: UNSURE ( 8.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes: 9bd1d9a0d8bb ("soc: apple: Add RTKit IPC library") Reported-by: kernel test robot Signed-off-by: Sven Peter --- drivers/soc/apple/rtkit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/soc/apple/rtkit.c b/drivers/soc/apple/rtkit.c index ecc1a818b23d..fa3cda831d2b 100644 --- a/drivers/soc/apple/rtkit.c +++ b/drivers/soc/apple/rtkit.c @@ -922,8 +922,10 @@ int apple_rtkit_wake(struct apple_rtkit *rtk) } EXPORT_SYMBOL_GPL(apple_rtkit_wake); -static void apple_rtkit_free(struct apple_rtkit *rtk) +static void apple_rtkit_free(void *data) { + struct apple_rtkit *rtk = data; + mbox_free_channel(rtk->mbox_chan); destroy_workqueue(rtk->wq); @@ -946,8 +948,7 @@ struct apple_rtkit *devm_apple_rtkit_init(struct device *dev, void *cookie, if (IS_ERR(rtk)) return rtk; - ret = devm_add_action_or_reset(dev, (void (*)(void *))apple_rtkit_free, - rtk); + ret = devm_add_action_or_reset(dev, apple_rtkit_free, rtk); if (ret) return ERR_PTR(ret);