From mboxrd@z Thu Jan 1 00:00:00 1970 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 45399C5478C for ; Tue, 27 Feb 2024 12:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qqBbSmicccEaZRWFjxZw2zuynONkC517ooPIyNNTL0M=; b=CEvQtLnA9YfHjBhjTJPWZ5sBUm jvZQH4+KQwwrPIY3N+Yt85KLbYKrQOvUhVn6XrzXC/GXRJDvsyXTirZ6gJ1+cOEo1KoIrUufuhmE9 RhsRcGFUy0y8bwnoWdJ9Ev6P7kr7viQ4O22WyoyoVbtz/Wf6FAn2BCqJa/prNqSx0U8RdL1A3Ieir obNsXg250XoBEN/Nham2JgKyJNBODfjBusu9K85XT3GH6DUL8k4VLhfEH3T+/IlW93wNum0Y2xo/n /+gjIJVr2JodfnxQgq9DlTr/EnkpKcGSS8X2EhB/HiPRMDfmnhHHOzOb1Supaow5hU2FfmlBp0yCU XMhlD0SA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rewbW-00000005CFA-3FO6; Tue, 27 Feb 2024 12:30:38 +0000 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rewbS-00000005CBe-04Tj; Tue, 27 Feb 2024 12:30:36 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id E68EE11400A9; Tue, 27 Feb 2024 07:30:29 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 27 Feb 2024 07:30:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1709037029; x=1709123429; bh=qqBbSmicccEaZRWFjxZw2zuynONkC517ooPIyNNTL0M=; b= X1WNMj8wIOYFRikCCsz3IU1UGw2DKfQ0DJPDKbnHZlK5tHnX8qbCozMmTIJs+aXu Am/BlxIaJbJJ0LDhF2rYv5UogVyhUmh9CC7NJl8ZnfkfLxVM5+nKn55vp9lTzW+T qmlMOHCMWvmgkk0MB2Iae0noHgw1SqAiWqHY8OON3oEcpEwrKZJKMx39mwSx9M9L D11SMOPR0vtLGq9TPdeLynMlBAGwEx/KyWb5s9x9Ye7Ad+IwE/ZUibJPHVhJ7C0j +z1mQ9BgUmAGQvjJ1oB53TZ52jlo2mU90ucSjsDPTuQKBHh3qs7W2a15IOfMCDtl s95KgLaozxSrul1wqQUsLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1709037029; x= 1709123429; bh=qqBbSmicccEaZRWFjxZw2zuynONkC517ooPIyNNTL0M=; b=o srzw/mX7WXnjAgKeNzPP433kfhGPkXCmwFf2I73FKKK3iJGK7lXHwYX6yHnXnD8P jcBtj25AcerNoFqgemRYfYqkPxVh30F0SJmvETrvzULtn9p5T1o7y5MIyyP/Jlxz kJ23iZUJeUQK3I+4z8VzqNnN4p71m/vslr+DiOMpArU7owtGyq57THJ/2MU+TSU4 HSwcy8ePAh6SGxHNUMzpeRd1/fSKNE3ubYwq5YhMoKgrkusoeJ3iOl3FMyuctKa8 3TQatt8xjdAwEsCLTpzc036rjH2AVJgk12MJhKxNch61cgwSEeChbhg0Dy/AUVvg 0kXcIPQ4JQ9dDeXnDC2HA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgeehgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepfeevgfdtueetuddugfeuiedvtddtvdefhedtgffgteektdevkeeljeekhedu feeunecuffhomhgrihhnpehlihhnuhigthhvrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7BD38B6008F; Tue, 27 Feb 2024 07:30:28 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 MIME-Version: 1.0 Message-Id: <54dcfb0c-9861-4abb-8a1f-83b5d1722ca8@app.fastmail.com> In-Reply-To: References: <20240224121059.1806691-1-arnd@kernel.org> Date: Tue, 27 Feb 2024 13:30:07 +0100 From: "Arnd Bergmann" To: "Ricardo Ribalda Delgado" , "Arnd Bergmann" Cc: "Minghsiu Tsai" , "Houlong Wei" , "Andrew-CT Chen" , "Mauro Carvalho Chehab" , "Matthias Brugger" , "AngeloGioacchino Del Regno" , "Tiffany Lin" , "Yunfei Dong" , "Hans Verkuil" , "Nicolas Dufresne" , "Alexandre Courbot" , "Pi-Hsun Shih" , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] media: mediatek: vcodec: avoid -Wcast-function-type-strict warning Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_043034_346662_6EFF1E31 X-CRM114-Status: GOOD ( 10.99 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Tue, Feb 27, 2024, at 12:38, Ricardo Ribalda Delgado wrote: > On Sat, Feb 24, 2024 at 1:11=E2=80=AFPM Arnd Bergmann wrote: >> >> From: Arnd Bergmann >> >> The ipi handler here tries hard to maintain const-ness of its argumen= t, >> but by doing that causes a warning about function type casts: > > I worked on the same issue, but in instead of removing the const, I > tried to constify everything: > https://patchwork.linuxtv.org/project/linux-media/patch/20240226-fix-c= lang-warnings-v2-3-fa1bc931d17e@chromium.org/ I had almost the same patch originally but ended up not sending it because I could not figure out what to do about typedef int (*rpmsg_rx_cb_t)(struct rpmsg_device *, void *, int, void *,= u32); which is a generic part of rpmsg that takes a non-const pointer and gets called by mtk_rpmsg_ipi_handler(), which would now get a const pointer. Arnd