Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp519186rdb; Sat, 27 Jan 2024 18:12:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUCxs++SJ8tuvGMO8EWnSRDGr/nvU2NMQtHIWjSMDyHDtUB7i9CIonAtkELxCm67zNj86I X-Received: by 2002:a17:906:7c4d:b0:a31:64d2:7c1e with SMTP id g13-20020a1709067c4d00b00a3164d27c1emr2312828ejp.11.1706407965724; Sat, 27 Jan 2024 18:12:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706407965; cv=pass; d=google.com; s=arc-20160816; b=pUJ252Q/DRcOhMG6P6U+NCVHBpdQ4CXY9icv6CfYf5l4DTTmQ3PA2dyofZbvhrPiEE bPnVxGoZCZ7RS43lMnR/AKgYNkQSwZb4JfvmuTmhqNM5H33tMM/Yeqx0713ShG1bCrjR 6b2xqfjAgr1pbBww15Cz9QkrdD0NdvQ7xN85DvLY2A7y96fU4rFXQTw+aFslbPgrHsVt GHSEHLVZ8QPTsmrhs6iNhxb8zPU2yoTIlD6vfYKk3sPcrHXGDwKDWxXfy3aIuIB8hnlw 80/YaXQ4XydnfzwwZgWXqn/4QAo5qiCHNoiIKacbXvOC2I4eXiastJ90yC3R7oF70HSY 4l9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=JJ/tXyO7amkyPth0LbHgT/YZ0y8KfOoM1IDJtLvky2Q=; fh=gnL8uShfXrBm11n/oB2cBj/6LDJpR2x+b96Zpkf7O6U=; b=h6vx6KXbyCG8Hvz1p842cGMAGsTeRcOlOvbdj2YFoyu7oyt6ontaLj3/KMOCPB8x/0 Fo3z9Uy+0WJ/K5bUN3U1lT45MoNjX43yVRKEL/xyJl8zkE/cRqf9kgRhGdEmRU5cHibM zMKdDG3IjHzcjaFT5aVQMInkEu0IszZyhXREJSntEvWxiuhGRkUigWTkHUIZ3FZmuMIG ca/w3ITHtBaaofC20qFyR0ETLiGDerGlF3CHuCwmuDcZPWJrivsfn5+hRlbOaf6f7fO0 r4h488/o7RDsU5KLaDuAFuncwcJk+zepA/44YjfRWAKEwaDJDVnz5vrIh3DGQBZdiUSP jYTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gBOPEVmy; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-41497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j22-20020a170906051600b00a3189ddd839si2115581eja.92.2024.01.27.18.12.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 18:12:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gBOPEVmy; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-41497-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41497-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7B8631F226D4 for ; Sun, 28 Jan 2024 02:12:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED56A4C6B; Sun, 28 Jan 2024 02:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="gBOPEVmy" Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 9902A17C9 for ; Sun, 28 Jan 2024 02:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706407945; cv=none; b=KLV0To42Bgxef5FyAyWi3grf68m+62OgxgfONvTa+//0/bsgcIerMWP38rdIARNUaZtigPDRCtK5mSmjie/VYZJtBT4knOxIiMK7/2qXTHkpCV06HQuspv3Jf6ejzJSXI6/r/yz0rsb9ILprOWBcmV3A1wg/j+lXhx7rZv0JHBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706407945; c=relaxed/simple; bh=Nh29uFhKJi602G3prs8tELRuSaiBp8xa7lI2rXd2Wvk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iTb2PIF7hCxnUOIUTXQAr72spFW7b/pBp5MpVlx/VL3yosNk9e1Dow6+ZNqxC6HElZz0dGTWrPiNvEWn/RsOOfLdYWHBnVtPMcxSyVP+7ZL2AcQ1N+mtGyXF80/H40RV2I2AJl7yH3a6WpmEM6p5xgr34b97y9yRefWmO9EWyaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=gBOPEVmy; arc=none smtp.client-ip=209.85.160.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-42a032cf012so17548431cf.1 for ; Sat, 27 Jan 2024 18:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706407942; x=1707012742; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JJ/tXyO7amkyPth0LbHgT/YZ0y8KfOoM1IDJtLvky2Q=; b=gBOPEVmyjaXkTxEgfMbxFFUjQaKuhD4isds40+acoBqC7SPRB1DO0aJ2GZ7bhpnEyH EooYm6VU8gcx7Tic8G60asyR0LCtbk4S3zpCJpH82rikHnCdfnRD2L3+BSIL8CBKrCj+ XDgOgIgkTGG9KtO7k9uQs3RCtZwRidsEA95EE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706407942; x=1707012742; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JJ/tXyO7amkyPth0LbHgT/YZ0y8KfOoM1IDJtLvky2Q=; b=wsPUXTnGE1ge4pApXM1SjDBx1UmE1K2rda8Xxci3TfXqA/GzPc10/XM2qIvKt77mpy /R7EBt2YS2IS5+elpU+XCgAeGOz7EQTod+GNVx7dY0l8pmJL+y1WMHADEgmAEYSEfjla Q94nhyQ5l5i6zoiLxGpk8woLsCS2t7cww3gQM7EyzRB2VlA9t+srlOaAF85Jvfd9pANM +A6KOONCfOO2/MI1h9buJZ8UU3VA4J941d+7QbF0nPaIgWvfy6dR+vuVHyGXvSLpqKb/ OnEq6cEYvfpv3iYPXwR49MWAs1aMHs30Hbl+J4hFn/G8gxe1k4TdpCsJfBtP3t+erkCn 3XIQ== X-Gm-Message-State: AOJu0YyGiK5Szn1BiH9djLK4IBIRUVqsU3XMNn4dB7esjW6YMvtTyZJL GxX0A6mTH26B4KgKJWUW4hfwDT7Fykvb61lBUx1Bcw/lOJaXtsC5mPLC8gZ9bw== X-Received: by 2002:a05:622a:49:b0:42a:8630:3dfd with SMTP id y9-20020a05622a004900b0042a86303dfdmr2871708qtw.87.1706407942502; Sat, 27 Jan 2024 18:12:22 -0800 (PST) Received: from denia.c.googlers.com (240.157.150.34.bc.googleusercontent.com. [34.150.157.240]) by smtp.gmail.com with ESMTPSA id ka23-20020a05622a441700b0042a98bf0117sm568061qtb.78.2024.01.27.18.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 18:12:21 -0800 (PST) From: Ricardo Ribalda Date: Sun, 28 Jan 2024 02:12:20 +0000 Subject: [PATCH 1/3] media: pci: sta2x11: Fix Wcast-function-type-strict warnings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240128-fix-clang-warnings-v1-1-1d946013a421@chromium.org> References: <20240128-fix-clang-warnings-v1-0-1d946013a421@chromium.org> In-Reply-To: <20240128-fix-clang-warnings-v1-0-1d946013a421@chromium.org> To: Mauro Carvalho Chehab , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Mike Isely , Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Matthias Brugger , AngeloGioacchino Del Regno Cc: 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, Ricardo Ribalda X-Mailer: b4 0.12.3 Building with LLVM=1 throws the following warning: drivers/media/pci/sta2x11/sta2x11_vip.c:1057:6: warning: cast from 'irqreturn_t (*)(int, struct sta2x11_vip *)' (aka 'enum irqreturn (*)(int, struct sta2x11_vip *)') to 'irq_handler_t' (aka 'enum irqreturn (*)(int, void *)') converts to incompatible function type [-Wcast-function-type-strict] Signed-off-by: Ricardo Ribalda --- drivers/media/pci/sta2x11/sta2x11_vip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/sta2x11/sta2x11_vip.c b/drivers/media/pci/sta2x11/sta2x11_vip.c index e4cf9d63e926..0a3827575753 100644 --- a/drivers/media/pci/sta2x11/sta2x11_vip.c +++ b/drivers/media/pci/sta2x11/sta2x11_vip.c @@ -757,7 +757,7 @@ static const struct video_device video_dev_template = { /** * vip_irq - interrupt routine * @irq: Number of interrupt ( not used, correct number is assumed ) - * @vip: local data structure containing all information + * @data: local data structure containing all information * * check for both frame interrupts set ( top and bottom ). * check FIFO overflow, but limit number of log messages after open. @@ -767,9 +767,10 @@ static const struct video_device video_dev_template = { * * IRQ_HANDLED, interrupt done. */ -static irqreturn_t vip_irq(int irq, struct sta2x11_vip *vip) +static irqreturn_t vip_irq(int irq, void *data) { unsigned int status; + struct sta2x11_vip *vip = data; status = reg_read(vip, DVP_ITS); -- 2.43.0.429.g432eaa2c6b-goog