From patchwork Wed May 1 13:08:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13650748 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 16DBEC4345F for ; Wed, 1 May 2024 13:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XJLLMMDxZbXDnRDtLYdjWi11nUHQP9oQ7E2pZj0GXRY=; b=YmdOuF/E+MpKgi AZmKgI+/nArlNOt5jTOuwuo+xnEgAYMTFvBRaIRVUteD9VychJeBKeY1moHSTQjVhuO1gj4MXfqGJ 5QVi8go5/keif38serBN+ach/oDTPwS/ttL+QFtNlLoyagEf92hG+7oOf/zdgd6umiCxPSyy/68vr SGywCkfolA0NVArSPVmgPZ+iUbUJwGKWBXYf7sYWQjwX2YNM5pmIRxDUoAG5lpkLeBiGIye80N47J cvoCpSSdo/heZmxOVu/KnCdIiYyNxjPWwW531RFHhDdcqVDYwM0z/qq/++AVSvoLuKZktIhd75G8s JQ1VZ/TVXconuFF7xNZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s29hD-00000009dkd-3DlK; Wed, 01 May 2024 13:08:27 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s29h6-00000009deE-00Sa for linux-arm-kernel@lists.infradead.org; Wed, 01 May 2024 13:08:22 +0000 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-6a0d1032362so12388496d6.3 for ; Wed, 01 May 2024 06:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714568897; x=1715173697; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MGnbq45Q3aIVVsIxi/7+e6D9e9h4LgaesLx5MBsPbWY=; b=fQ3rwup5kAK2//O1dtan6peohExP1RSdvPmguKLpwLBnkIWlhCP3Y078pD6jUZ7Jvh tjYZUzoPCEq/0z8zB5b55D6TsNQ01oGo5PlzzQGoMCobNlhLSN/FTSux3R5IzP1eX1DT JCB5ynGuUaEsb0nq/ofeOlyvXxBmfe61AloZg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714568897; x=1715173697; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MGnbq45Q3aIVVsIxi/7+e6D9e9h4LgaesLx5MBsPbWY=; b=o0glBECJosrTEeBTTxWnLRorKUubOVxEF73Z0JGFrBQzLcomw9i11W7UI/p04XcX63 +h8U/+s6NRDyTt0/YehzSansajEYFbOzXgrllDVYqxAZZ82xrr2TtlZ/OnFbWPZ5yhEW 5sbarfXlMJuy2XhCUkXtxIgEtuhU6b1nt+NkkKpq5n/4WDx9T9aeTIUsA7a6SbQVPJK9 2lljG1KDAIsLReZ/DjihuXPkNJ4S4goDGoP+gksh3TAoQfx9RvV0XceXuw9OV31GnQf4 5Fxax/VzQ6l5MDhOmnijpGoEqjzB25yyM1SqTl42mF037kWOIFmv/FXLX7zyLuumEpG4 boCQ== X-Forwarded-Encrypted: i=1; AJvYcCVbGtqz+GWvIKYEfZe6FNdTLoJSIdlkQxnCcEAN6qkHB6NVcdG8MR9DelZQwAu+xK5JEo5KNAVtgNgDjmxTzr64oHe+GjHd5agnb9fiGPdBWGhI1pI= X-Gm-Message-State: AOJu0YxuP+6xJub/zTZ3njHPeV+3FcvSo+5HCMX0e1HchzlY3KezRKEX IpS5/jbAXI9MSafl5bIYrOhRzO00Lls+eh95+9YVc90G2lFP+cWZmBRI3YF7Hw== X-Google-Smtp-Source: AGHT+IGUk7F34auoiq/zONzAUqrqK5yTPvc/Cyz94Sk8XJVQJ4h13ALDlS5aFFnC8XNMPBZjW49Tng== X-Received: by 2002:a05:6214:258b:b0:6a0:9361:f988 with SMTP id fq11-20020a056214258b00b006a09361f988mr2350953qvb.30.1714568897459; Wed, 01 May 2024 06:08:17 -0700 (PDT) Received: from denia.c.googlers.com (114.152.245.35.bc.googleusercontent.com. [35.245.152.114]) by smtp.gmail.com with ESMTPSA id l26-20020a0c979a000000b0069b10d78445sm12430971qvd.142.2024.05.01.06.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:08:16 -0700 (PDT) From: Ricardo Ribalda Date: Wed, 01 May 2024 13:08:11 +0000 Subject: [PATCH v2 3/5] media: intel/ipu6: Switch to RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS MIME-Version: 1.0 Message-Id: <20240501-fix-ipu6-v2-3-a5629a37a0fb@chromium.org> References: <20240501-fix-ipu6-v2-0-a5629a37a0fb@chromium.org> In-Reply-To: <20240501-fix-ipu6-v2-0-a5629a37a0fb@chromium.org> To: Mauro Carvalho Chehab , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Sakari Ailus , Bingbu Cao , Tianshu Qiu Cc: linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hans Verkuil , Ricardo Ribalda X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240501_060820_324884_2E965038 X-CRM114-Status: GOOD ( 14.15 ) 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 Replace the old helpers with its modern alternative. Now we do not need to set '__maybe_unused' annotations when we are not enabling the PM configurations. Fixes: drivers/media/pci/intel/ipu6/ipu6.c:841:12: warning: ‘ipu6_runtime_resume’ defined but not used [-Wunused-function] drivers/media/pci/intel/ipu6/ipu6.c:806:12: warning: ‘ipu6_resume’ defined but not used [-Wunused-function] drivers/media/pci/intel/ipu6/ipu6.c:801:12: warning: ‘ipu6_suspend’ defined but not used [-Wunused-function] Signed-off-by: Ricardo Ribalda --- drivers/media/pci/intel/ipu6/ipu6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/intel/ipu6/ipu6.c b/drivers/media/pci/intel/ipu6/ipu6.c index 4b1f69d14d71..7bcd9c5a381a 100644 --- a/drivers/media/pci/intel/ipu6/ipu6.c +++ b/drivers/media/pci/intel/ipu6/ipu6.c @@ -860,8 +860,8 @@ static int ipu6_runtime_resume(struct device *dev) } static const struct dev_pm_ops ipu6_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(&ipu6_suspend, &ipu6_resume) - SET_RUNTIME_PM_OPS(&ipu6_suspend, &ipu6_runtime_resume, NULL) + SYSTEM_SLEEP_PM_OPS(&ipu6_suspend, &ipu6_resume) + RUNTIME_PM_OPS(&ipu6_suspend, &ipu6_runtime_resume, NULL) }; MODULE_DEVICE_TABLE(pci, ipu6_pci_tbl);