From patchwork Tue Jan 7 10:54:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13928686 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 E21EE1DF25C for ; Tue, 7 Jan 2025 10:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736247274; cv=none; b=km8CGSLD0DDZNPgRv6lw5dTgjmI2t4r31h65NBoJ86xpJ+jPAqaz0uCMam08iDIkYREa+yP0P1VaS2UDpGUlH5jEQqmlcLQTbHWi7aL8wJviQKpx/pg2KX0uXPYXCXVPLAgbMG9Bpsxx1vuM9mCjo5b47RPX7+xK8hrKtYidXlg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736247274; c=relaxed/simple; bh=oPbo5iSEga4/BG+zLOFbURr9nXVRkuc0PzBC/3/+c0s=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=IvNSOOFCr6u2AZgzxjIxJyXC/EWXLhU4hs9I172ctgAfbhBtP7pEJjSvWnGteIhiMoMW23anAxKygxhMeHhPgpyrTcS/svtxwN/nBdmjEukvZDGtPOe9tFfAE2mE/kEhD3iqhuijsor0phqyEJd817fuOTGcEfsaOvZJG5MQcy8= 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=N9VcBerJ; arc=none smtp.client-ip=209.85.222.175 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="N9VcBerJ" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-7b7041273ddso1070602185a.3 for ; Tue, 07 Jan 2025 02:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1736247270; x=1736852070; 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=Cugiw2K+eF/ufpIfLajaiEhdPCPGT9dQBiwxkoPulAc=; b=N9VcBerJ05hVokwZHGCoRwMZyG0nVdDhDP1MtTljm3SJDSKV2zYt9/xL/ulElAKdZw ielyqbPkTsuevKJYBQF378P+lIIFqNPIN42rX4wzJ4nsD5RsY8kefzn7wYWzRftdHbKV gv9FOi3DlhR218lcXPNOUmhdPY2rSckkyzCvA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736247270; x=1736852070; 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=Cugiw2K+eF/ufpIfLajaiEhdPCPGT9dQBiwxkoPulAc=; b=Yle51l6fLB0jqjHaAznqyVbCXZgnV4r9m59RyDsqXslpG6t9pkjxcgMpgSfkAAcisF g0y/8av7mPKV6paRWPebenrZd9YHZbVf5QnumYno98mjAaLAXUE7e1pHdSfeKv8ngZ2W qWs6MIND4dGIo9OFsZXo7WTD7vrrg7pr6ak4meGgqE+FaVA79sZB65RjkhjymJh9eaMq 21T9gvujZl4hiihnv3jk/HSSHYR8kvjOsU+WsyfoCWXvrYun4T+L5OolQGwNQdpsFDL0 vLNpNV2cPfULcWZDd5emW92dW8pGvIMolvMxXoiSbH64RmhFwVkE52w59sU1y/Hso/SB 61sg== X-Forwarded-Encrypted: i=1; AJvYcCVgKoxCzzsDNIxx+Gz2HiDSAKMZIgHFgUUF059snlKwD/HLyUsK//0tFisMI1+AX251frGxUjC6F/c3m7lO@vger.kernel.org X-Gm-Message-State: AOJu0YyJ+TwqGvAu8cNc8aZXXUPq7pAFb3D36bk7IgHZbgbg+X4sc5la PgznnLiN3KOqO+vzAmUPch0veXNbwE/z5JwGxOAQibzdjvpLfSZz8C5Fx66Qig== X-Gm-Gg: ASbGncs5yO0M1tL6rw59NFI9wbHeeo6yHk5N2LlCJskFELAbwqPSBZ1hZc4sW03IkfE kKTCJCSy0VEU7KYQSMWnpkBIuUPpg46UrMRqTfzbzArtPeo96D75/3gJ0h57sreJRRfI0nF2fr8 rw4eT1GkSgrdC4Ig69sdYixvDGCI4bWHql0PUadZP1uV8yUd2UC2EO/LgAUhA/SlRz1RAycHjD5 TfFvmDxrpa6sMGh9z+ZRAjtz7RiTdAG0w9qHUa6kjQeG/N6BWhgY15M78rxj+Ie3PcNwPI4rcRy WflUw198BUDIur6UrkZ2Sg/6y1iwH5rbHq2y X-Google-Smtp-Source: AGHT+IFn3KaEX7wOHj6iR2f6n64iWUMYQKzTgEsF8/KhmJ09OttsXZX3jE7Rk+s41Gt7VQC/L1jApQ== X-Received: by 2002:ac8:7d4a:0:b0:466:9861:3e9c with SMTP id d75a77b69052e-46a4a8e8230mr872602421cf.31.1736247269619; Tue, 07 Jan 2025 02:54:29 -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 d75a77b69052e-46a3eb30b97sm185094401cf.86.2025.01.07.02.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 02:54:28 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH v5 0/6] media: Fix coccinelle warning/errors Date: Tue, 07 Jan 2025 10:54:25 +0000 Message-Id: <20250107-fix-cocci-v5-0-b26da641f730@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=H4sIAOEHfWcC/23M0Q6CIBiG4VtxHEeDHxDpqPtoHQCCcmA0KFdz3 nvo1mbNww/+551Qdim4jE7VhJIbQw7xVoY4VMj2+tY5HNqyERDghFOBfXhhG60NGFrPnAfQtZe o3N+TK59r63Ituw/5EdN7TY90ed2rjBQTzKXU3gCT0Jiz7VMcwnM4xtShJTTCFqsthoKBUuVqB Ywou4PZBsMPZgUzy5taeKG5ITuYf7EglNRbzFfcOKOkUsLoPzzP8wdGJgo/XAEAAA== 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, 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 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 --- 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 | 4 +++- 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, 27 insertions(+), 28 deletions(-) --- base-commit: 4db312bbce420e3f874302549db072211e03c569 change-id: 20240415-fix-cocci-2df3ef22a6f7 Best regards,