From patchwork Sat Jan 11 09:55:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 856587 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.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 0D9CF18BBAE for ; Sat, 11 Jan 2025 09:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736589324; cv=none; b=Aea87hIKj9I7+1s/hlu8ukZCS+DO2vO6vnYPsSd+dhOfU+4/HDMpTNYci6/nY0py2gwMLK1EZbmqYkOtYjPBRdibtaRZpG6GyniGGEZSghAZsNs/jfMLf+G83oxEALfrFmoFixVPB9cWhh7PEPqiruKIqYdUxuVyuVJTD7Yit3A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736589324; c=relaxed/simple; bh=mqBLITwRqHabzhqwgeNzb6sX2viwetgL9Fl6dN8xdtU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=UoK7x4mlU+B780KZYqdOXQeYnbWoNxPSZkibu1wu9DQ2YP2kN6C7R2mNQtfETiZyUDsa5n3lno/GJSd0M4gOFjeF5vzlUijcd3UBn+Ve1xnN0P+tlET6CIw45V2NjkT5h7IGKHn08kd3WMvez0611iYOJ1+bAaGdcbvaA8gqGWY= 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=Kk3KDQs5; arc=none smtp.client-ip=209.85.222.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Kk3KDQs5" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7bcf33f698dso47544385a.2 for ; Sat, 11 Jan 2025 01:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1736589322; x=1737194122; 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=s+vbEX6dfGe0lD4UnGFC7FwoZxd2lnIOxAQuHSPlTbc=; b=Kk3KDQs5EXXShZ6Vw3eO/Mg+cvev+TwoLyZjjn27ypqi4KUngTPQeYLM5INYai0aea IZ5LIZq7qOLzcX2rJewWjDMmeuDCpsPaQBhDxRPKFtDYvv1FW6l9xcxdeWp/hAn4x6wi RMgBDJ94wDe3tL7zzk5ERG+QnAWGgtmQ/Lar0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736589322; x=1737194122; 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=s+vbEX6dfGe0lD4UnGFC7FwoZxd2lnIOxAQuHSPlTbc=; b=W1I9hhAlBd7tkg3fpGeCn4/YHbhzCX6pvjBggQpehl/4akO4Gk5b1vB87JjSeym8qX gE8EMrkYWDN+rsoqdnG+clyNFFwO7FDdaQrUA7rDJo78fF5Kj0V5fPGNznJo3EMxNCKc pmReB2+htWcoZn74gCLJ5rswO7IOJW/gbxdFMjHGY7VWNxTPpuiCRFbSpeLxCqYNp9Bi y719AjQzM/GlvEdMEazaIjtrefW/TyG+LQ5ZlM31VoqdhJ48iSvQ/O2wNIQuP5AI4Keo w6j4wmzYNIaddAPcdqcP6PAjMyfYsAAGOkZcVByJMLStcJdk07Nuyy77Me7E2IUPk+hr VpgA== X-Forwarded-Encrypted: i=1; AJvYcCVkANHmhyyLbb/wLHfhcn2mGqtIxhrpn57wjzQCGyGro7/9GeWAaLaDCGpZrRqp7EVw56076f4kB79Bd+oN@vger.kernel.org X-Gm-Message-State: AOJu0YwiCgMGeZt5Vyciiqb0bCE2LVXHjGVLCSUhMcfwCorPd5iJhjyi DB2c71xaeY4Poi3d+k2kMtZwBOCblnLAkxrpQVrVHtX6ISYoBByVGxxsj1FgvQ== X-Gm-Gg: ASbGnculN8CrSq58CXs5RFuymPE6yk5R2yN1w0zuhla4OebsTohENjfFG4yfcRQmGdk ++Ej0N1zkzFp0Js1OTtED7VnDAXStuKzi2v6bJNPSY16aUmknC4hJbwejy663xlyg8Xq/SkFEjq 4TclcXx/u0wE676cTDjmhkYzXQ5SYdXx3TIhjEgFGjj1F1jW2u8PVmylFPpjAzpPVIRGiRfDuzO soM4Fyg5aeS4O9RIdANPne8tIlNDauDP/ZRQ0rSz4X9Qv++czxEKurCbY8um5D1PVtqEABMfn5G kPjiq2wcB0GX5QE/M3UJtoHShWGl9h4p/qqY X-Google-Smtp-Source: AGHT+IEloxD4snD00AcEnnZVYP7Za55BIhAKgAM3bM3EjRchyG6kGxhTMIw9bXO1O1cJeLQHeAtleg== X-Received: by 2002:a05:620a:2a10:b0:7b1:45ac:86b7 with SMTP id af79cd13be357-7bcd970d3e9mr2026266385a.17.1736589321956; Sat, 11 Jan 2025 01:55:21 -0800 (PST) Received: from denia.c.googlers.com (172.174.245.35.bc.googleusercontent.com. [35.245.174.172]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7bce327b8besm267096785a.59.2025.01.11.01.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2025 01:55:20 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH v6 0/6] media: Fix coccinelle warning/errors Date: Sat, 11 Jan 2025 09:55:13 +0000 Message-Id: <20250111-fix-cocci-v6-0-1aa7842006cc@chromium.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAFAgmcC/23NTQ7CIBAF4Ks0rMXA8FdceQ/jAihYFoqh2mia3 l3axARNl29mvjcTGnyOfkCHZkLZj3GI6VaC3DXI9eZ28Th2JSMgwAmnAof4wi45FzF0gfkAYGR QqNzfsy/Ltet0LrmPwyPl91o90mW61TJSTDBXygQLTEFrj67P6Rqf133KF7QUjVBjXWMoGCjVX mpgRLsNzCoMP5gVzBxvpQjCcEs2MP9iQSiRNeYrbr3VSmthzQYWNVY1FgVbkJ2RnAbF/j/P8/w B1YNPPJkBAAA= To: Mauro Carvalho Chehab , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Kosta Stefanov , Ricardo Ribalda X-Mailer: b4 0.13.0 These is the last set of patches to fix all the relevant patchwork warnings (TM). --- --- Changes in v6: - Improve comments for tda10048, thanks Kosta. - Link to v5: https://lore.kernel.org/r/20250107-fix-cocci-v5-0-b26da641f730@chromium.org Changes in v5: - venus: Ignore fps > 240 - venus: Clamp invalid fps instead of -EINVAL - Link to v4: https://lore.kernel.org/r/20250106-fix-cocci-v4-0-3c8eb97995ba@chromium.org Changes in v4: - Remove all merged patches - Improve commit messages. - media: Remove timeperframe from inst - Ignore 0 fps (Thanks Hans) - Link to v3: https://lore.kernel.org/r/20240429-fix-cocci-v3-0-3c4865f5a4b0@chromium.org Changes in v3: Thanks Bryan, Dan, Markus, Sakary and Hans - Improve commit messages. - Use div64_u64 when possible - Link to v2: https://lore.kernel.org/r/20240419-fix-cocci-v2-0-2119e692309c@chromium.org Changes in v2: - Remove all the min() retval, and send a patch for cocci: https://lore.kernel.org/lkml/20240415-minimax-v1-1-5feb20d66a79@chromium.org/T/#u - platform_get_irq() cannot return 0, fix that (Thanks Dan). - Fix stb0800 patch. chip_id can be 0 (Thanks Dan). - Use runtime (IS_ENABLED), code looks nicer. (Thanks Dan). - Do not replace do_div for venus (Thanks Dan). - Do not replace do_div for tda10048 (Thanks Dan). - Link to v1: https://lore.kernel.org/r/20240415-fix-cocci-v1-0-477afb23728b@chromium.org To: Mauro Carvalho Chehab To: Stanimir Varbanov To: Vikash Garodia To: Bryan O'Donoghue To: Hans Verkuil Cc: linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org --- Ricardo Ribalda (6): media: dvb-frontends: tda10048: Make the range of z explicit. media: venus: vdec: Clamp parm smaller than 1fps and bigger than 240. media: venus: venc: Clamp parm smaller than 1fps and bigger than 240 media: venus: Remove timeperframe from inst media: venus: venc: Make the range of us_per_frame explicit media: venus: vdec: Make the range of us_per_frame explicit drivers/media/dvb-frontends/tda10048.c | 8 +++++++- drivers/media/platform/qcom/venus/core.h | 4 ++-- drivers/media/platform/qcom/venus/vdec.c | 23 +++++++++++------------ drivers/media/platform/qcom/venus/venc.c | 24 +++++++++++------------- 4 files changed, 31 insertions(+), 28 deletions(-) --- base-commit: 4db312bbce420e3f874302549db072211e03c569 change-id: 20240415-fix-cocci-2df3ef22a6f7 Best regards,