Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp478324rdb; Thu, 1 Feb 2024 14:26:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEizLggegNI/3oNUuoJBwRu3fNFtm0HoCURJ7WY8wcqO1M8lP40b/mhMDa+6B9SHC5yofw5 X-Received: by 2002:a17:903:987:b0:1d9:4282:4be8 with SMTP id mb7-20020a170903098700b001d942824be8mr517111plb.25.1706826395349; Thu, 01 Feb 2024 14:26:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706826395; cv=pass; d=google.com; s=arc-20160816; b=HYx8pFf9LY00Q43ccb1XBBFw5+jSgRuRaoEwLG/oCEv8Se/hCO5lji4wzsxpH+pqtO g1DkD2KUcVZMVKctSS8/0Ru8xh7dDAbQb/9RZY1CicH2jYbPWWkopvkpu7N0JELHBlDr E2l7Ni8TL/UGoxsWWXvWghP0PmYQSTCZRB0bSxGe/bYZoXCzb4VvOsb0NHnXuuDVt+j2 yo8S68ArZiw6J+kdr167HhL6PTiHvSd/eJgn4f2cpczyYRcaNUg3kJ4nGqwGIlI1pzSc 0OQR0xYKf2nx/kCF6+hFQXifMd9KMwGPwzGfX4mLkgO6I0I6Uom5H8Gccxl9J8/O5Ig3 dPWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=g1niz+9BFP8nJJvQSZtstaXWeqGreuVXwyIK+21IaXQ=; fh=IINcdBQ4hRoVdramkprQ/89TG68o6D3JWSHlk04iQHE=; b=dUtTmsS3hBHrDpVd9UBV4F5b56e67blgGWKT5RmlVoGrCYy6qTL7BbW07mG0l7b4YY jM7pjWVjpBHiBXIebIWvQRQbxCZTF7YHlkNQE2wmf9rLUDH59Sc8+/QinemMK0OiQQby 4lXHSvD1gFUf4gdaJ519dBn4F7+EkVbtSmPc1yKHx0CtJenZFSQLYGLLHhTba/ABbdNb zU4530poXznX4HObDr3IrJpXvGw6GyROJutewxwVYuhW2HaHI3grv2gQNMF6+OIhXhbE k9MvyLgXFBURdT9PVNF13rceaeyyCdCEFBhXrHnYwsA4sOIFzRMh3waQ91r8sYrCGoV5 KY0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Y2sUzDTq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-48941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCWcGYQJ+AlGwDStLJbr4BQGOS6MKjMdqfaIOtLLRHwouU5HZky4O1OpDPq7joOelzIYQmH1mHp3/SWkUCXcDslvM9Z2MNkhT+AyEsDkmQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x11-20020a170902ea8b00b001d8a4edc2a0si532046plb.11.2024.02.01.14.26.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:26:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Y2sUzDTq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-48941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 082C128C4AF for ; Thu, 1 Feb 2024 22:26:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63EC53FE4F; Thu, 1 Feb 2024 22:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Y2sUzDTq" Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE6AB3FB38 for ; Thu, 1 Feb 2024 22:26:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826389; cv=none; b=pcnpmBupq6+xHReXqYgUwBcjTdPlbcF0ejGjoyT9JLkHX1aLx2PlCnI2OFcEVc6wO0RoHDLDWICguIARm1qFV6zzC7SJ6Fhb3jKGJ+8GQUU1cSlX1dWHvnQIHQg5c8nfBoofq5tiuKdGE23umRoS8f20+BiYVwAZfu8Qj/2CO00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706826389; c=relaxed/simple; bh=g1niz+9BFP8nJJvQSZtstaXWeqGreuVXwyIK+21IaXQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WThh3fuGrpJHMrclQ5y6H4a7VNdOrZ8y/gb0XZy9xZcV3hcXJkpKp5AQZKskYrkweEd6/OhGIEAcfQCUPs2dIRJsjcf1tMR0udLhC4332NlTjRZJRxP3bduvOW1KvdcklvHm8DNDv0LRBYR15DsOkXIQCLPpLE5D1BXaQP5m4XI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Y2sUzDTq; arc=none smtp.client-ip=209.85.217.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vs1-f44.google.com with SMTP id ada2fe7eead31-46b165745deso628704137.0 for ; Thu, 01 Feb 2024 14:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706826387; x=1707431187; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g1niz+9BFP8nJJvQSZtstaXWeqGreuVXwyIK+21IaXQ=; b=Y2sUzDTqMNuq2LzRYMJ2GlU9BO6W+f/1pmQLHYXUfbCvU7tgwRHhY9fPU9PS4ZiRR8 Cd0z4e4zrmZ//iqvBng9HRHRqgrN2atants60IeG+KzI85kYnfLPNcehqSB5ZwX2CbN7 Q15Nt+B2z878uj+vMtVJppo5mqdtoUCfADGQRqHyO1UVsXncSOHHGnL2LB/iTRl9ZbRP yiGdXnCiJqwvkFGQF5QqdWGlQlkChh/rJr8rwK7X2EHvu7YUEGhoOWYYXOuko2jQiFUK Rk1u5IbEDkWq8vLsWnvlEkOkVPmfvwBaJcKprAAkUKWCYrOQSRcVAUN7BTpK3OyaeuW+ EL6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706826387; x=1707431187; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g1niz+9BFP8nJJvQSZtstaXWeqGreuVXwyIK+21IaXQ=; b=YzdDn2EVjLJi7gaS4tyyL3x5c4oxRnXLgJZ80x/uBgPUg1QeakR9yW3oyLQEGuJQdR bZEXGGkkipnoILT3KUFOSsUt5dXxYUbuwJsW5HTuPrMNcwNKBg814qpK7ytn+1rqb/dx /IaqP7J+6qIi1xb7Pwm0xC8S8B6fmpHozIU5RzvM7iqx0zhvFg3yHhov9K+wKmWoCu2z GfyYADpPIN/8thPQa4Afnl5Am4fmtuWwdng3gzhmGPOy9zFaW1N6DW0uhT4HV24DJA5S BElvJBhGaqOtLg3ZjtSveCzwohsMP8MTvoDRDpsAniWPolVPL3fghrVV1KPt5zdR6+pl MrVg== X-Gm-Message-State: AOJu0Yxg1VnTv0l8YESJH6sIwafco0qdkP3G0cvjbxN/HptIj1M5nVHD kUJA+ET3qOnNEKwQ06IpXYyKEs8HmKTSVjOvPomoMljUsy2sJgxaR771I2fDpd7IhoZ6M5n8NbF aRfgansQmX4hf/wzZS8IzHdLqCKF4VpqfTgGZ X-Received: by 2002:a05:6102:806:b0:46a:fd91:c15b with SMTP id g6-20020a056102080600b0046afd91c15bmr339945vsb.13.1706826386679; Thu, 01 Feb 2024 14:26:26 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240128-fix-clang-warnings-v1-0-1d946013a421@chromium.org> <20240128-fix-clang-warnings-v1-3-1d946013a421@chromium.org> <20240201221654.GC2240065@dev-arch.thelio-3990X> In-Reply-To: <20240201221654.GC2240065@dev-arch.thelio-3990X> From: Sami Tolvanen Date: Thu, 1 Feb 2024 22:25:48 +0000 Message-ID: Subject: Re: [PATCH 3/3] media: mediatek: vcodedc: Fix Wcast-function-type-strict warnings To: Nathan Chancellor Cc: Ricardo Ribalda , Mauro Carvalho Chehab , Nick Desaulniers , Bill Wendling , Justin Stitt , Mike Isely , Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Matthias Brugger , AngeloGioacchino Del Regno , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024 at 10:17=E2=80=AFPM Nathan Chancellor wrote: > > On Sun, Jan 28, 2024 at 02:12:22AM +0000, Ricardo Ribalda wrote: > > Building with LLVM=3D1 throws the following warning: > > drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c:38:32= : warning: cast from 'mtk_vcodec_ipi_handler' (aka 'void (*)(void *, unsign= ed int, void *)') to 'ipi_handler_t' (aka 'void (*)(const void *, unsigned = int, void *)') converts to incompatible function type [-Wcast-function-type= -strict] > > > > Signed-off-by: Ricardo Ribalda > > I am not positive because I don't have any hardware to test this driver > but I suspect this patch is just hiding the warning without actually > addressing the issue that it is pointing out. Agreed, this won't fix the issue. The correct solution is to drop the cast and change the handler type to match the pointer type (i.e. use const void* for the first argument). Sami