From patchwork Fri Aug 16 12:31:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13766041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9C45C531DC for ; Fri, 16 Aug 2024 12:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CCFoApgC3NvMeXYvVFjfg1wg+6p9sI3vxSueR9OSw4I=; b=ACZz7vQdInK3tu aEd8BV65JC1SAlUtp9w0fdWvYKgC/z8jH+gk59Uh0ActZpLoNqcT1KlgA/43/fmO31c52wCtEKgVh pQyjnxI+76fh6LxowJOGMTZgeEUCFG080e5ylVqp6MXNh0TCvJkt/sy0afoR/GNo2+UNt5+B7Bqaa jPGl93KAQlRpjfg6BM9dFa1JcnquXBQl2zajNAVMbiEkZWEyeXIEYkounRWy3RR9YhUgZIRVaABRP 7/781ZCUeagb8hZKXC3AuQvlLHnBA82YfxTAKo1SSUtoUuE/ayfP0Bxu0VTOUCqu4DjAIRKWWzCzo +2h8IvikrNplWyVq51OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sew8O-0000000Cssd-1lwH; Fri, 16 Aug 2024 12:32:48 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sew7h-0000000CsdA-1aLL for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 12:32:07 +0000 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-6bf84c3d043so1123446d6.3 for ; Fri, 16 Aug 2024 05:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1723811523; x=1724416323; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=CCFoApgC3NvMeXYvVFjfg1wg+6p9sI3vxSueR9OSw4I=; b=B9O59yiKGKfDVyALyYH+SAUIr3MIeTJxxPjvuwJgKqXVmrqE6ZS/GQ7cmaBCayhHBe JKAOeELW/YQzBx8eOqwaFMCmBAFVqOm8yCkEf9HxW+J8oVhx6yMqaDBglK5gsBU3OBr+ cAgqe7nSD6hGBnJGvqY/+PxULYc+xgAbHzMXU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723811523; x=1724416323; 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=CCFoApgC3NvMeXYvVFjfg1wg+6p9sI3vxSueR9OSw4I=; b=VwZy0Ax+HjvcXU+pacL8yFxCYHEr3T9gZqNIPr992Ru0xfmYr3xPUwNZBAaFVaA/ns 7qZrNWK5IJPWDrxVwMfM47IohmdkQMr4OSBNzr21OS1RE4GR4KgMNdp3XHfbp/CzWGpZ CH5HAEg4ODhICCoW6WGV2kz6947/lv1WPGskECZsR/XzFVWNnjceUEGsIDx8oUYdkqNI bzlGikfY12RhRL+7ufHrV+rnsotki9bdiPb65LWAT0LhNipfRurjupucvfyb+A8VWTm7 s9M/R2bnBXpmVb/yj+e+DhF29GS1P28nZg0D2S8xNDohMIOSbxdrgvVX+8Ju/eKqUo25 47+Q== X-Forwarded-Encrypted: i=1; AJvYcCUvAkhOLYD5U2/jWDLKglC/BmtkYmnnLLNyH2Fx4dV0FCJwwZs6K1Sw50TLaMIUooOrStPXxA1FoUQWotMPaJLsmE5H2bXi8c2TYk3kCREDE3bsS2Y= X-Gm-Message-State: AOJu0Yw1CWpHaaqAjWLUZ8L3GOdNLfQb4M4BQdHqlMbCgU4xqIo4R1pJ enfB2YDmnNNPlEKhc2Afo32GsAkeGwqIG3aW0UZyWlrkyjXO/pJ9+VBt+0WgJg== X-Google-Smtp-Source: AGHT+IFoKdLi76sGKTYFPYZCioyONlAB3ifLSzlc/E/kHAkYIvV8qgOxuFvA3vnNFKsn84Rla7Ntqg== X-Received: by 2002:a05:6214:4a93:b0:6bf:75f8:250b with SMTP id 6a1803df08f44-6bf7cd799b3mr33366816d6.10.1723811522620; Fri, 16 Aug 2024 05:32:02 -0700 (PDT) Received: from denia.c.googlers.com (123.178.145.34.bc.googleusercontent.com. [34.145.178.123]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bf6fef3107sm16881426d6.121.2024.08.16.05.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 05:32:02 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH v2 0/6] media: Fix last smatch warnings Date: Fri, 16 Aug 2024 12:31:58 +0000 Message-Id: <20240816-smatch-clock-v2-0-c63105db07e8@chromium.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAL9Gv2YC/3XMQQ7CIBCF4as0sxYDlLboynuYLuhIy0RbDFSia bi72L3L/yXv2yDaQDbCudog2ESR/FJCHipAZ5bJMrqVBsml4lrULM5mRcfw4fHO5GjqQYhO6aa DcnkGO9J75659aUdx9eGz60n81j9QEoyztlWolTw1g8ALuuBnes1HHyboc85fp/U9f6sAAAA= To: Sakari Ailus , =?utf-8?q?Krzysztof_Ha?= =?utf-8?q?=C5=82asa?= , Mauro Carvalho Chehab , Sylwester Nawrocki , Andrzej Hajda , Neil Armstrong , Greg Kroah-Hartman , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Ricardo Ribalda X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_053205_460804_88B0F7AA X-CRM114-Status: UNSURE ( 7.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series completes the smatch warning cleanout. Signed-off-by: Ricardo Ribalda --- Changes in v2: - Fix double free in ar0251 patch. Thanks Dan! - Link to v1: https://lore.kernel.org/r/20240813-smatch-clock-v1-0-664c84295b1c@chromium.org --- Ricardo Ribalda (6): media: ar0521: Refactor ar0521_power_off() media: i2c: ov5645: Refactor ov5645_set_power_off() media: i2c: s5c73m3: Move clk_prepare to its own function media: tc358746: Move clk_prepare to its own function media: meson: vdec_1: Refactor vdec_1_stop() media: meson: vdec: hevc: Refactor vdec_hevc_start and vdec_hevc_stop drivers/media/i2c/ar0521.c | 17 ++++++++--- drivers/media/i2c/ov5645.c | 15 ++++++++-- drivers/media/i2c/s5c73m3/s5c73m3-core.c | 13 ++++++++- drivers/media/i2c/tc358746.c | 12 +++++++- drivers/staging/media/meson/vdec/vdec_1.c | 16 ++++++++--- drivers/staging/media/meson/vdec/vdec_hevc.c | 43 +++++++++++++++++++++------- 6 files changed, 92 insertions(+), 24 deletions(-) --- base-commit: c80bfa4f9e0ebfce6ac909488d412347acbcb4f9 change-id: 20240813-smatch-clock-2fa3b1174857 Best regards,