Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1921166rbb; Tue, 27 Feb 2024 05:39:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1jS4rOofK+O5tAePSF0gdSPbE/degJQPS9mVKsbdRRtZK7VNz3rn13XmbFcYv7TyUDOKrIWeck4ZDHWYpoloPwySN8f9Takq3RbtqpA== X-Google-Smtp-Source: AGHT+IG7MyE1Stpc0oBPrWyOBPXYJQhH9oTXiWsacIMZjvXpLlVr2Lw9KLlL+l72F5HELbHlqknQ X-Received: by 2002:a05:6a21:3993:b0:1a0:6c04:4bba with SMTP id ad19-20020a056a21399300b001a06c044bbamr3066441pzc.11.1709041170893; Tue, 27 Feb 2024 05:39:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709041170; cv=pass; d=google.com; s=arc-20160816; b=hvmhb0ed0GlCnHlN3s9AWUAeJJdvPvyTMykcLNFS9I7pujgKSvGukT/kefn50y+WRv 2Z8zZcQt1Di4ivVw9dKk+ntONIIhi70DMci5INhlPThJD/jomrHIukSqkdN+V8llQtEe sRGymiPcoVaedCbiY3LqVTProXxpBQptge/BdftUjT0IhG8E/OiERE6abBaI6+OTCNM5 00mcS79FlH2MEmt+eWrjne+DQkPE2U9C9CMPWMT95oH8sPMpr6Jjq4S6pegSv+D3BYzA ROTsgxWs8393bV/ez7gh15SPiIuKAFka8ARYYAb/HYuCpgQz/DZoMT020w+aX0MvMVIs pACg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=qPhWauWFG9Eq5yPAsXD3zB/CxlDkLHGeIaX5cUViM3k=; fh=pvkiJhJD+/1g1HNoDI79SDFzs3aGJmhQaePFK7xMphM=; b=wK10siAV8YJi7U1guEV8g6rqi4b2lh9bmw4TEmmpUIm+5OQ4pRGG0+KdESe5mBQuoq JIRV/Y6e9nuuPbe0lh8iZENn80F+zF+ZNzgyOjHNSBpF4doEblYzFs3EgPubsSdWZSD8 l32gweRF18fHd7O5vjN4yLIQm+hxfSZTHN61Vn/MuGjAxtWXgb7A4JDvnTk1xJfaRYZ/ B3fYz5uh0C4GR0FV+sjLqCQekQs327CUDrMdFxT6V9Z0rKD6ayUGJ/OCk9nYBL94v/WE 9lNSC45itzPLPl+x2LTO6z2K7MV0bWckaXTCKZcoWnO4F7shYliV/wh6YH5QtFfMAS13 vx4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=doMEcxip; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=iJjpvobV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-83275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id im22-20020a170902bb1600b001d5457db81dsi1335295plb.649.2024.02.27.05.39.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 05:39:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=doMEcxip; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=iJjpvobV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-83275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8892FB2A1F4 for ; Tue, 27 Feb 2024 13:00:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1DEF1EA7A; Tue, 27 Feb 2024 13:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="doMEcxip"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="iJjpvobV" Received: from flow3-smtp.messagingengine.com (flow3-smtp.messagingengine.com [103.168.172.138]) (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 05FA81E867; Tue, 27 Feb 2024 13:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709038824; cv=none; b=floBqBEwV/4D3sYFi7OOXuwVO5S9Mx/HODW03CckAv9nbdQYAha79iHDYy8IJaBupXUqLWpVMJqY6qxcT8qIp3y5MudwQQqnDO/9arqcIwL0DIGV0AKMtqxGKgOke4P6Jd0Ob+PYlEa0GXJNpGvq5N4+vMQAj9QrpipHcGlK8+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709038824; c=relaxed/simple; bh=48fVYdZIAfrNMXN/Ees34xjBvsXwLRNhCIA/vmywld4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=k6VPBsQM0TOjPVnS9HuyEC/yOAx3uxC6+7oYjQGV7AAGoV+TW/c2vPspEXPvkk1C3SX0V+9sNQGC+3GgvB8jAGGLSoNZbT+SHia7U7vQWwXO47nWwTboCGKbdlcAeVquSD+pPi1565LZXEX3zykWJTEjq5pjrbRcIAWgCnGu0uM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=doMEcxip; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=iJjpvobV; arc=none smtp.client-ip=103.168.172.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailflow.nyi.internal (Postfix) with ESMTP id E922820017E; Tue, 27 Feb 2024 08:00:21 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 27 Feb 2024 08:00:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc: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=1709038821; x=1709046021; bh=qPhWauWFG9 Eq5yPAsXD3zB/CxlDkLHGeIaX5cUViM3k=; b=doMEcxipmJOZYakN3E69jPQTdJ 35sJW+eMxDEU8wKW5gL+aFVD9Lr2+/edhVCxEueBE4SjPQOOss9i9kkMWRN8dYRs 0cHV1uSXJYAAVbYRiGTlv5y2d1eXgfQkS91+dtyGHqyfZajToxSHp5gJGx4NU/cw 9Pjc1gWLfwK3f32OZwnzMAv5Y4kiAxJvPqbJvqJ5St9yq9p8Od3wmm+ZnmOXrZ2n /Dfr6WSnp4B0ELzxOcQBhJnu7CO1t0Bmf/SZIojeTgenD+MPZl3P3xlv1Ajwu5qC HucusYS22u1ijyfs8TDmYhuB/7drh5dT8Sf2P6Gc3IbZx259GkWereX/KiYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1709038821; x=1709046021; bh=qPhWauWFG9Eq5yPAsXD3zB/CxlDk LHGeIaX5cUViM3k=; b=iJjpvobV8lNMXdJ3c9X5ZoAAm/tB04RwJ+tFspixbk+l hz3A64T3SgGeYuk55UvKXWvbIKHLgmy0TG3nY3NQz+m6bxzoKx/2HPz9ihZrkCno jADwgmVs0EptdeWMszSZvRVT4CySjCnvCVU2Siw4tNNrNWCGvGlOnNdI5B8VCa22 otMigDXjT17c5/6vcf6B+tuoh+MaMCpLqriInSba2m0fOuHXAzr5a7Qz2mPTA2V4 EDlo+WH2ug6p4Yx9jIAo6bHwYGKKVYDt54ZNLyUkqeyMkGP1KCzP1HK/L7NaPJES QCcr4Lc1WL2dYkWeNgepRALAxeizpyhylJ/nShJOtg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgeehgddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeeiteejheekhfdttefhieffjefgvdelhfelueffueffveehfeelleelffeuvedt teenucffohhmrghinheplhhinhhugihtvhdrohhrghdpkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegr rhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 84657B6008D; Tue, 27 Feb 2024 08:00:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <8e3e7d82-a9e7-4697-8147-d3800f0307db@app.fastmail.com> In-Reply-To: References: <20240226-fix-clang-warnings-v2-0-fa1bc931d17e@chromium.org> <20240226-fix-clang-warnings-v2-3-fa1bc931d17e@chromium.org> Date: Tue, 27 Feb 2024 13:59:59 +0100 From: "Arnd Bergmann" To: "Ricardo Ribalda" , "Hans Verkuil" Cc: "Mauro Carvalho Chehab" , "Nathan Chancellor" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Mike Isely at pobox" , "Tiffany Lin" , "Andrew-CT Chen" , "Yunfei Dong" , "Matthias Brugger" , "AngeloGioacchino Del Regno" , "Bjorn Andersson" , "Mathieu Poirier" , "Sebastian Fricke" , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-remoteproc@vger.kernel.org Subject: Re: [PATCH v2 3/3] media: mediatek: vcodedc: Fix Wcast-function-type-strict warnings Content-Type: text/plain On Tue, Feb 27, 2024, at 12:35, Ricardo Ribalda wrote: > On Tue, 27 Feb 2024 at 12:17, Hans Verkuil wrote: >> >> Ricardo, >> >> First of all, note the typo in theo subject line: vcodedc -> vcodec. >> >> There is also a similar (but not identical!) patch from Arnd: >> >> https://patchwork.linuxtv.org/project/linux-media/patch/20240224121059.1806691-1-arnd@kernel.org/ >> >> That patch and yours share the change to common/mtk_vcodec_fw_vpu.c but otherwise >> they are different, which is a bit odd. >> >> Can you take a look at Arnd's patch and see if you need to incorporate his changes >> into your patch? > > We went separate paths :), I tried to make everything const (and > therefore the remoteproc changes) and he removed the const. I had the same patch 3 originally but there was still a warning or a cast from const to non-const pointer, so I went with the simpler approach that I posted. Without that regression, your patch would be nicer, but I think the version you sent has the same regression that I ran into. > His patch looks good to me. Shall I resend the series without this > patch or you can ignore 3/3 and take 1 and 2? I also sent your patches 1 and 2 with minor differences in whitespace. Both of these are already in linux-next, so I think you don't have to resend anything here. I sent a whole lot of -Wcast-function-type-strict warning fixes to address all randconfig builds on arm64, arm and x86, all but three are now merged. Aside from the mediatek vcodec, the only missing ones are https://lore.kernel.org/all/20240213095631.454543-1-arnd@kernel.org/ https://lore.kernel.org/all/20240213100238.456912-1-arnd@kernel.org/ I also had one patch for s390 but none of the other architectures. I think once Hans applies the vcodec patch, I'll resend the last two patches together with a patch to enable the warning by default. Arnd