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: 15646 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp488532wru; Fri, 4 Nov 2022 08:55:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eH2EiFZetJYjnqvTQ70F5OzrgTXAJX6Qxf0YROO2fvj69CaHKrYE7iT40ApKPRSaagem2 X-Received: by 2002:a17:902:b945:b0:181:c6b6:abc with SMTP id h5-20020a170902b94500b00181c6b60abcmr36187322pls.75.1667577333753; Fri, 04 Nov 2022 08:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667577333; cv=none; d=google.com; s=arc-20160816; b=Wlkb5KCeOXgGkUJBf+tFaFvLWfcqfc84+NzjXCgpTRsCXBUtwaCJgthQ8+TDaw04st QZPp0IUswxnWLkcRar8mh8+28xnj8B2mPCiBYxVN4iwHIalO5l6JIQu9qECRulbStgb+ mtD+l9fd6ja+vfcS65cRLPhgp59KoUfRyFEjjGAYE3wGcGuhnTuv22fupmGMfRNwZ56n wSk3oGfWgZ173u4UGCEaNq7sQCfo1NFZd6Xew31rxNxTDDqHmSwyPgKQBi8HxwZ6ImjZ ljI85k0KzlwP6HbeldgtzstaN8WYpCTDBJKtL28ZlyosLp84J3xzBUuItkIp6cnGyiB2 jFJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=K/Jy/ap7eS35A75a4wuv/qSzMWMS57fbfihQm65uJFk=; b=Q3CCex/lEmb++RxzVSt6vjR7Gi6CcFQtEL8ommPbPK5KNJS8Z2f0eeoZhnAsVqhLSC 4XMTlUUxT9ZRux/VppwsSuLepQJc4ihMP6lnJ48h7XvcK9BL6IT7I1LONQAiL0ItvzRP PNF8Xt0jZea16tSz3DpCDMZv6XfBevOgVSI+++ZOeR/G3qGrjWMUI3AjvHSTcdRaC5Mv HDWB2lNmjnbC01FEMrBlg2qR/Xmvu3emt/Cc9/xMHZG7ei11am0pGm2suHpDB1W350FZ eUFIIeD299gOK4ZxIPJrOWtA9x1mdcY1SUxDLWJ/AXD8+9gvCEGX5cCQ5eF4VVcHxbdV BJMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=gSVRsc6g; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BP5OIs+3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u64-20020a638543000000b004370503d42dsi4779679pgd.554.2022.11.04.08.55.20; Fri, 04 Nov 2022 08:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=gSVRsc6g; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BP5OIs+3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231683AbiKDPmE (ORCPT + 99 others); Fri, 4 Nov 2022 11:42:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232173AbiKDPmC (ORCPT ); Fri, 4 Nov 2022 11:42:02 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424AF3205D for ; Fri, 4 Nov 2022 08:42:01 -0700 (PDT) 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-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748581569817065253?= X-GMAIL-MSGID: =?utf-8?q?1748581569817065253?= 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);