Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2301472lqb; Mon, 27 May 2024 15:15:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKG3onRM+gWeaCsRe6xXG2ViCsy2gJ9VyqsoZW8z/DiJ6disKf2E2pDL4ooAkr31CQ2wkQghhDUdFyZtRNKxdkuhUUIS4k23UQh8yeIQ== X-Google-Smtp-Source: AGHT+IEFqwJZL7gkavJEpqchap99uP2azQGBCvtT82xXOztZtwkA1bcb8Dabp07mh1Xp9549Vh+x X-Received: by 2002:a05:6358:70b:b0:18a:78ad:2ee4 with SMTP id e5c5f4694b2df-197e50f5716mr554836655d.12.1716848125966; Mon, 27 May 2024 15:15:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716848125; cv=pass; d=google.com; s=arc-20160816; b=RfEsGTE2+G9+WD+03D9KZIIrSS2mvlnROghpjrOpeMdpr5qlaufhKwTd6D5nqGduzE vAL6i4WDlIaS1cmUog6pWfoAVrLiv12vXxGF+caGojN6ju10bI9AW2h+oKkEQVYVjuNP vK8NqzWZCEAsvTMTlllhJ+xguE6dQjrcdwbFAszCp0Lm1ULa6k9urinMkichKLII4JeQ xjQPLmkUvBCCnHmOdIDIjgQwDF5SCk6tL6WSblyjGRxm9ZGjrHqAVyQ5jQ4M+5uIL2Px XRgV1b+9q5kEkjH3RIbWfZWPadyLamLpVN8eAnPQkv4GHfp+B/iXZTvj2OPXud1PlvtT SMTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=8oMra6vlnGoklVAVPREy/doMlsD9Wu566bIjtVKUJEI=; fh=g9KZWofNK101em7Jt4ZHRUWxyQJkESNysmGNqxosX9o=; b=V53Nz/QL0KrvxGZVW5eokF/tlMueTxxIndBjqHthwhGhBUE4YLwFVch8bYSjDLEke0 UsGxHsy1wWo7xfkwzznPrjWFyMa8vExP0bJeVy/ZtueZAxCs4bdBI4FIYfEJKFvMM2ZU wR9otVHejYczixmsLocW9iPF2Rw8+plkR0mla6/+fNJvSJpqFtPkWdO8Vn9x90HoqJvc GhFoqt0KdFLmwk9n3Iz02bTcB+BMrzyoSP/O9LF/AN829Ge+fKfOTEDwsNcyiQvdzu/r aLH/0iDvVxwXUeQWHLumDLBNQ0DCimSKu0265xD65eAfWq41FNwoFA7XENDbhhrNFDRa mxHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IKHAXosi; 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-191480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b73d83si7022707a12.110.2024.05.27.15.15.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 15:15:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IKHAXosi; 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-191480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191480-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 90BE028324A for ; Mon, 27 May 2024 22:15:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EB93168C1E; Mon, 27 May 2024 22:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="IKHAXosi" Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 2A7E4167DB5 for ; Mon, 27 May 2024 22:14:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716848096; cv=none; b=HtT4+8Iykg2rxUOyv8jQ/3wnS9WsSh3fZlFY2msGbpg5qK0FDrZwXvUALbC8OK0TKwCGgWUsZVFLVCfkyNxLXwCmZYo1eu80yRTcCeV344zlv/qjiub8dq2SlJ6jlu+qmNzS8lIw7k6wIjjWs/MOHB9MrzPEYgZaJtc1GtRGcqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716848096; c=relaxed/simple; bh=oppOayLgT4TipjNvWZtrKvu8Y0Yu4zuAeXfakAZELQY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=KRT02WN61PEPcBoXTcm11rH4XVbKdifa06N+IHBpY8TXaIdgcwJ2lOG1tm5vewuAyXI/wqLyZU17WUPXw3uS+qbrvo4HMHexdXrabiSzF0OAVOWZKC9eBcrnTicIZrpdCm3pUHOAwfMi+YWTleobS4acoBe/tiTu5hN61H+ewCo= 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=IKHAXosi; arc=none smtp.client-ip=209.85.222.180 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-qk1-f180.google.com with SMTP id af79cd13be357-794cbdc2314so14892585a.2 for ; Mon, 27 May 2024 15:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716848093; x=1717452893; 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=8oMra6vlnGoklVAVPREy/doMlsD9Wu566bIjtVKUJEI=; b=IKHAXosigA+Yu4r81Qt+hM4rCY8aAYkDLoVpvJW6Fw5JruPpNwmoepisx/AT/sDNm1 hS2e6dxPs69PKt7vfyybGnELk15uEUo5wzoR63vxRK2jdLDuSWMsTm5fYhZDLm9iP2na noCAPjfYAa0Hq7Y+WhF8nXdv7ibKFp+T713BI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716848093; x=1717452893; 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=8oMra6vlnGoklVAVPREy/doMlsD9Wu566bIjtVKUJEI=; b=RNuEscVJUGkrxmuyyeCG2GHbAJQ+qT2eQzNhUsw0S6i4yutKGv2FvVuww/+kAuMv7m j7xC3mQpwdKKHsFJOUFLJ3JCspx/BCLC6buvCLhLYXqktqhvA+jqOuqwa7hq0lAX1BGt I1iOE/7Nnh9YxMFQ9izufn1JMrREvHkKeZi5EBtn5nlDycca5Z+MhA9+m1HbaqPa8QNI vWQi53zfrNMwEUWDf9CXV9j4U/JvIfofLyAv0OBCXdSBYWJuixniFEyn342f4AnBhcVR dGQJ8OSXKA9FPXycKmXZktCZc6TX8MI8Xzeu4Zf30b6eLt4U5vmF/SIewhrlXZUnCplJ j2EA== X-Forwarded-Encrypted: i=1; AJvYcCVSIvlo6+zjtq0k85Lq7pOrO+cKFS2GQtAbvQMiQnjFihQ7GNGFyG1zB53b4Nq1KiUkFVf59mjx8v/0k0X434dAGI50/EETKdE0Muub X-Gm-Message-State: AOJu0Yxovv9zpo9o+Zs+Fet6fNh9ySNyUEW+xR/m5uL2Jk7DG6k4i4Z9 hshyihP3+2KDmMgRsgAz2GSzMK6++YfVGIt62TgNvyMkpcZFcZfXmEMhBCRnHw== X-Received: by 2002:a05:620a:1476:b0:793:d22:4509 with SMTP id af79cd13be357-794ab09c183mr1036442285a.17.1716848092986; Mon, 27 May 2024 15:14:52 -0700 (PDT) Received: from denia.c.googlers.com (125.135.86.34.bc.googleusercontent.com. [34.86.135.125]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794abca58e6sm329740885a.18.2024.05.27.15.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 15:14:52 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH 0/3] media: ivtv: Fix smatch warnings Date: Mon, 27 May 2024 22:14:44 +0000 Message-Id: <20240527-devm-itv-v1-0-f5829b8e7674@chromium.org> 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 X-B4-Tracking: v=1; b=H4sIANQFVWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUyNz3ZTUslzdzJIyXVMzc0MLc3PDxKSUVCWg8oKi1LTMCrBR0bG1tQC /vgYiWgAAAA== To: Andy Walls , Mauro Carvalho Chehab Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 Linux v6.10r1 throws a couple of warnings, lets fix them: https://linux-media.pages.freedesktop.org/-/media-staging/-/jobs/59203691/artifacts/junit/test-smatch.err.txt And now that we are at it, replace some functions with the more modern managed versions of them. Signed-off-by: Ricardo Ribalda --- Ricardo Ribalda (3): media: pci/ivtv: Replace ioremap with devm_ variants media: pci/ivtv: Replace request_mem_region with devm_ variant media: pci/ivtv: Use managed version of pci_enable_device drivers/media/pci/ivtv/ivtv-driver.c | 93 ++++++++++-------------------------- 1 file changed, 24 insertions(+), 69 deletions(-) --- base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 change-id: 20240527-devm-itv-56718771abde Best regards, -- Ricardo Ribalda