Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4411612rwr; Mon, 8 May 2023 07:21:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Qtrt4KAqtqPo/fUVsFb6UOOA/c2EK8BJimFYs133GL/8gtHJVCc+asrE3YE7HcvyDYFjf X-Received: by 2002:a05:6a20:7484:b0:f8:a493:5290 with SMTP id p4-20020a056a20748400b000f8a4935290mr13857850pzd.20.1683555670297; Mon, 08 May 2023 07:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683555670; cv=none; d=google.com; s=arc-20160816; b=HKS2hF0Sr9Bbqhge5cwUgzaQWMy0Nrr47ETF36ofIo9YX95T7iaTO1YiTEZAE2hf5o W7tUkwI9W9sa90RCu3JiNSvHc3ZieicVL9Dt32t5azngM/itFp/F21Clks3fkxhfzpZn yTspwbLO3SjfXoxBKQ3SFjEPze7Uu0lYB+6TAn5wvaZ3MNSSAa21mvXi7qzW5ce6h9v1 cUPH0YWj/luuDfv9INgJTHKjEZSS+i2fhhlWYsVDyZXV1vPxU57PNDObvyl0NdkqezsT /KKyT7vuLVpLgtja7tfdD2kH5c38Ds9Rn3B+wdoNWlKNViKK6uIRGbCtkc/ZPq/eyJzy cFsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gz91ck8k1cbM1eeHLFMcJqFaz5Xb8PKRSwIEEgNJl+c=; b=JxKZe8suPAxC4V+xMAN3JOUHlULU/xQeb4oqsNB41ExyONO8ku7AU1J2KlI5pkAkhL Qm+mOklRlVakyb3L7RGfHEe/OAsn6k+BP0OpEeJmifNn827db/8OuVJUAJx3MYEwPBlq U1wZ4MfUXzjZ8St1ISefT0xI/ndpAYyk1iDxkIt10yr6iPIm7iPkQM3w8TF0VM9/2FIj 3Rc49tVMqpbQBKJ7lAaKa5cwNiIdCoe8Z/0gnMRqYIwUAv9jRdsNSwI6tzmZL6DGd1iE lR6k9yFHIGv4E6B+TgMgC96LKDjX6PMbpfO5eI8vZAuryDtcH/0zrk1XBv2prW2YmK+Z txYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AQBCyttR; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020aa78f2d000000b00643652c8879si2377494pfr.326.2023.05.08.07.20.54; Mon, 08 May 2023 07:21:10 -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=@kernel.org header.s=k20201202 header.b=AQBCyttR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234331AbjEHNpo (ORCPT + 99 others); Mon, 8 May 2023 09:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234314AbjEHNpl (ORCPT ); Mon, 8 May 2023 09:45:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0503335B0B for ; Mon, 8 May 2023 06:45:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 38A3B62481 for ; Mon, 8 May 2023 13:45:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5928C433EF; Mon, 8 May 2023 13:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683553537; bh=Qu9Rl94bP0g+nhL6tXXSt0OxbS7NzYjh13hkmP95BH8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AQBCyttRFuLCiwy/rIAkzhHqSCqIsv/5tdR8PgqEDLUffIbFMAafyCFsfAAJwW4wI 0j6ABrQKivthcpQQqN9YA52XZZp0lGZJe8xp7wf1otHPkpqj0XYFa2eLO3LrDAMPxc 644fbgz6xoNmi9geJROfFORL9+v7Y8wlqN81E/Ovp/ud3z4D20xWv55XHJfDzpQSxT /PA7ImPXgtyueHtO8IqFumjXrwzNLKtJ6gD6xqqlIg9igrsRVcnKS2jkhCFWxTyRn6 u5iHdu2h43+GCkkdhA3frL73Xzq3w7mtuPSPgEVkTSo4s0BxxepDfycyv6ohuTF4lX vRkxiqD7rmLTg== Date: Mon, 8 May 2023 15:45:33 +0200 From: Simon Horman To: Md Danish Anwar Cc: Nishanth Menon , Santosh Shilimkar , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH] soc: ti: pruss: Avoid cast to incompatible function type Message-ID: References: <20230418-pruss-clk-cb-v1-1-549a7e7febe4@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Apr 20, 2023 at 11:19:59AM +0530, Md Danish Anwar wrote: > On 18/04/23 17:11, Simon Horman wrote: ... > > Rather than casting clk_unregister_mux to an incompatible function > > type provide a trivial wrapper with the correct signature for the > > use-case. > > > > Reported by clang-16 with W=1: > > > > drivers/soc/ti/pruss.c:158:38: error: cast from 'void (*)(struct clk *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict] > > ret = devm_add_action_or_reset(dev, (void(*)(void *))clk_unregister_mux, > > > > No functional change intended. > > Compile tested only. > > > > Signed-off-by: Simon Horman > > Reviewed-by: MD Danish Anwar Hi, I'm wondering what the path of this patch to Linus's tree might be. Perhaps naively, I expected it to show up in v6.4-rc1.