From patchwork Mon Feb 26 17:32:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13572571 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 E1E1612EBE8 for ; Mon, 26 Feb 2024 17:32:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708968772; cv=none; b=DQzJmgLMmaJQPYhdm9Msd87pUd/cdx/kM+ER6Pk9GgTUXAXkdVTEX65QUk1gC3ZUF3peGWkvViDz436v3zfUYP7DlbKoqfxSPrRoao3qG41/F3YQWmnsWavsDnV8tSeOVZ8fhB5hNnO+vyMh17lTVAYxi9Xx3CksC5TxPYuEKB4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708968772; c=relaxed/simple; bh=w2ALZt/64adjKX506ThshIXHvJN/vMxdfdgFwiM9u6U=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=QaVx3umS/Fd1DeBRU8hNlPOJ1RxUUWhNXhc9kvaD16ek8CPJvA517g9pJVGzEk2WkJC1g6prv4jBBBtYiD+HpSC4qY86BzhodZuS4KULd7FYDLS1IUOKaglS0sb7mbbrYfSSfg5M/H9qwye4/DTbdsoiMKvNPizqyOw21Sa+5cs= 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=QKy55Zx2; arc=none smtp.client-ip=209.85.222.170 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="QKy55Zx2" Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-781753f52afso214388285a.2 for ; Mon, 26 Feb 2024 09:32:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708968769; x=1709573569; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=NPhOUUbGfyPt95d+thIFpKzftMVi7roAfhqv80cpO4Q=; b=QKy55Zx2thuva1klKLSMjiuFdWsKldSwcrH3NaWJN08GmrnRUbZN8FimyqZ85WTBY/ KwE1gYSkxNcwzHSoCiEl6EnpoY4mZuj7jCCicsSx1c13ttz3x+5/YO94t4wXqpfLp8JV I9Ag3nD+bK+e4oZeszIpcD2+0eOFY0uTs7pW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708968769; x=1709573569; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NPhOUUbGfyPt95d+thIFpKzftMVi7roAfhqv80cpO4Q=; b=D2PsAcJ+J3N0kYHqeL6Ig0LYOf0RBopjJ6F6SNQXTgeK/fYSEKBTNAfa6KqjgT+SC4 kPIokw2CypYhFqIx3Bbol5+QOZnMTodJCowTzOvDIOYQAE9v7yvr3Q3fu4ndwwUtW9Dw +iyvxzdrTB/QteNKOsY/fbMNm1e2CklnKt+HWKFhEBIDfEXFB6eMU1krBLKL8bk3V5xQ oDGG0wsyvCKwcXW1MwkCWVaufX2kLQ/kXn6xCa+Ej1pKyuAnQ5pyXhsG6SLeK3temLjE uPIjyhjqDKZeszQP3ZSg2th8gWktTdd+8wPb01ffNM49EIj2ga2YI3cUsKauIRn6zp8x MoaA== X-Forwarded-Encrypted: i=1; AJvYcCXvvjUtZSbgqeZgWlPEwV9cT8IpTUqFooKb7nCkugQ4DklKj/9u8JDtGTyV/KBKusYlpCzcEahdFINsdGIkmAkcc8vWRHTvptxYh49jkDxd3g== X-Gm-Message-State: AOJu0Yx+W6p7aYKoUjpFN1AB4IOpiG/+lJkH07FU0O/EnwMNGd4U0DYu zpsrNYL6E3j8OCv5WMI5OPi32xtkUJvKd2aqHCXB05fl6I1gIis7zgi3RX7l7Q== X-Google-Smtp-Source: AGHT+IHvLZz0JMsMLxrxZ5LeCz16I0q4crWk7ffwcs10kKwH096y5KdYOmJIsU/8SW+PQA+90LYoog== X-Received: by 2002:a37:e113:0:b0:785:c9d1:8636 with SMTP id c19-20020a37e113000000b00785c9d18636mr6773215qkm.59.1708968768956; Mon, 26 Feb 2024 09:32:48 -0800 (PST) Received: from denia.c.googlers.com (115.25.199.35.bc.googleusercontent.com. [35.199.25.115]) by smtp.gmail.com with ESMTPSA id b11-20020a05620a04eb00b0078725d0345dsm2672669qkh.2.2024.02.26.09.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:32:48 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH v2 0/3] media: Fix warnings building with LLVM=1 Date: Mon, 26 Feb 2024 17:32:43 +0000 Message-Id: <20240226-fix-clang-warnings-v2-0-fa1bc931d17e@chromium.org> Precedence: bulk X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIADvL3GUC/32NSw6CMBCGr0Jm7ZjO2KC48h6GRS0VJpHWTBU1h LtbOYDL73/OkINKyHCsZtAwSZYUC/CmAj+42AeUrjCwYWuID3iVN/pbcfDlNErsM9aeuGFj672 /QCneNZTUOnpuCw+SH0k/68dEP/Xv3ERokLrG1oZ2zjKd/KBplOe4TdpDuyzLF1e5fQq3AAAA 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 , Bjorn Andersson , Mathieu Poirier 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, linux-remoteproc@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 LLVM does check -Wcast-function-type-sctrict, which is triggered in a couple of places in the media subsystem. Signed-off-by: Ricardo Ribalda --- Changes in v2: - Refactor media: mediatek patchset - sta2x11: Fix Christmas tree order - Link to v1: https://lore.kernel.org/r/20240128-fix-clang-warnings-v1-0-1d946013a421@chromium.org --- Ricardo Ribalda (3): media: pci: sta2x11: Fix Wcast-function-type-strict warnings media: usb: pvrusb2: Fix Wcast-function-type-strict warnings media: mediatek: vcodedc: Fix Wcast-function-type-strict warnings drivers/media/pci/sta2x11/sta2x11_vip.c | 5 +++-- drivers/media/platform/mediatek/mdp3/mtk-mdp3-vpu.c | 12 ++++++------ .../media/platform/mediatek/vcodec/common/mtk_vcodec_fw.h | 2 +- .../platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c | 10 +--------- drivers/media/platform/mediatek/vcodec/decoder/vdec_vpu_if.c | 2 +- drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c | 2 +- drivers/media/usb/pvrusb2/pvrusb2-context.c | 5 +++-- drivers/media/usb/pvrusb2/pvrusb2-dvb.c | 7 ++++--- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 7 ++++--- drivers/remoteproc/mtk_scp.c | 4 ++-- include/linux/remoteproc/mtk_scp.h | 2 +- include/linux/rpmsg/mtk_rpmsg.h | 2 +- 12 files changed, 28 insertions(+), 32 deletions(-) --- base-commit: d206a76d7d2726f3b096037f2079ce0bd3ba329b change-id: 20240128-fix-clang-warnings-6c12920467cb Best regards,