Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp349513lqm; Wed, 1 May 2024 02:29:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUa4q9O6Di4m94J8TT85F/evytt/sZUPoQVsaHdtYcQfTJUzfZiUP/YFDw1lBltFHMVp0w6kTEO6wxPnEFNzsfthW3Bl2o+yJ1luhDG9g== X-Google-Smtp-Source: AGHT+IFsFGwubwAYgYWqZzYEIhPNfWut6OsLRpBoqACd09guxwmmgtCb9wDwz2ryiwYzQexKisIG X-Received: by 2002:a17:902:e546:b0:1ec:3227:94ea with SMTP id n6-20020a170902e54600b001ec322794eamr1893967plf.67.1714555791826; Wed, 01 May 2024 02:29:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714555791; cv=pass; d=google.com; s=arc-20160816; b=0nwYXs2aw1pDSAzI3t1lMi6LkNSuNOC9b2L7IDP+KTM/gqesU5bE4m3Nyid388KKVh /7HnNy9PGagi6mV1HSAm4lT4oghGYVvm91fJ/6QipIQVJv4hF7+BfHezVsmC9KdVFli/ wMd4NKxH4O039qov+mCKllqB2f9BIeNg1yFA1sDgo7qXdY9qiFGULPPql93A2LIIN496 m9PWRDEbQFzTMgOvXyMHBnjyJ0kwadI8FPMAzIdyJE8GfufOLbKu3sh4+IwEDeeQExFl Q3Kwa5cYxCXWgax3NznlUuux7EZqkCtmZN/DTqMgJ+dIfrjy7L4ZhKXHaL8syYKs2zmM 9n5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hBRFnyQ/MHghSNLsgG37WUgrQtBEqXPI6JDu9bkHFOE=; fh=sTktzWSKzb8W5K0veZQTsRCIRmDPZ1dr8l/g3O/lPaA=; b=qQ5/pvSnoeBI+P1zsn3k7qIj5oO+qMkvSwTlFONEqxKAY6yyG89/htxs2RxoY/qpKO iUZyA6rvzqkoCTOET9VvPRtm/i+VmPYuLTCmXTp+yrQr/Bm7OSz/iHZcBHaH5ipcY4Ni 4nbz1nr11rPE6f8ZgNwD0K8N2ZxxG3cnOnROg5YAYUahlbUob353IhrFAffl7Pmqxc4k 5BRx2MMNoKjEDkaNVNhxW9LP4v3pyxNz091giAJUA+50XKOYMBfK3YNH2ImmRg/k6kgu Ek37T1CM08T4yMZISupRPi0AVLAJiXcFs2JylEovAS/oHq/FJSioHOhB9nRUBfV+y1vj A/sA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gmcAosuQ; 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-165085-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165085-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. [139.178.88.99]) by mx.google.com with ESMTPS id e4-20020a170902ef4400b001eb6c07f80esi7701040plx.643.2024.05.01.02.29.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165085-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gmcAosuQ; 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-165085-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165085-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 699D32871B9 for ; Wed, 1 May 2024 09:21:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67A6953802; Wed, 1 May 2024 09:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="gmcAosuQ" Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.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 153D3502BB for ; Wed, 1 May 2024 09:20:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714555217; cv=none; b=NbaY748UeQpTOr/Al9ufJmSp3/D7x12FyyFe4SsysGu6ykvWMjqkfMAQnEnmouEX7lJg+bL/lNylBHghnTk8+Z+NXb1o8yZ4GpuYDzv3PGOTI1N4lFwOtGECwpGWRFAFl2oZx3uqVbvbXl8RBE/mJr/o2K3k7WtnZOaeul8s8iY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714555217; c=relaxed/simple; bh=JES2V+o9lOG9nehMlWomz2LhbnbqipCEb9t4IBCDUcc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UzYCryWyLilp1s0/A8xeCT2Hr1MFEXP8k/JuvypxeTLRPj87JClomxM1thHTrJsvqLtNGvtY1vLYcHtNFnyDRM1yfHDekmzW2LaJ2eZDFlWQV5ncBknsi050Mc0ul1dc9mEUnJMPh4L81OpOI/++MoANh/LPH0RHL6YfB8OaWU0= 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=gmcAosuQ; arc=none smtp.client-ip=209.85.215.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 Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-6082fd3e96eso4752527a12.1 for ; Wed, 01 May 2024 02:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714555215; x=1715160015; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=hBRFnyQ/MHghSNLsgG37WUgrQtBEqXPI6JDu9bkHFOE=; b=gmcAosuQdfBsx7VSOPrRf23otBiO6z0PPJ1D7lM6rBoMVnmIouZ65UPWQ3KKTX8ycS k0OerwSR35Sp+fBlZzcW8bC/yl67y/JiUhu3mf2EMjI52Mx3Epal9vsxQr78H8O8yFlo Anp07QCbk9L3S7wxAiO4gMj3imNcxYx5u4b1Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714555215; x=1715160015; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hBRFnyQ/MHghSNLsgG37WUgrQtBEqXPI6JDu9bkHFOE=; b=E+coRGb3NVILJB6YSz4qtYuPXwioWmML76GjewtsczBs7GbZymXbUrNf6ciNDRhjdW n7PILlC0kalJZdJsrmYN09CySA7MAU6EF8yefrrCkqkKz74v/nBhZM5Ri5lvLaoflPxe WFj58GVNxAHnXbUcgQEUW6uQp7vcvAaOpR7xdA9J9/ddu0B0LJvcwwyTxHXBB+W28Zhh fXgreAkpYdFEV4hVx8i37dN7EKa3TX9oPQa0RTj76YW8dqx8bb7IowfdaHqREP95z7WC 05gr4PHzIc0WSuUW2+uzDq1YMXJ6axqSLe2FIfKr1GJPn48AtMGbRMUALOJrcwZBUspj odcQ== X-Forwarded-Encrypted: i=1; AJvYcCXj7WZC33KuXvjPTW66HOAdnhvvdufWd1SExHDYesG8Qc4/CAjJttElwP5WsFTbNFRC9u0Bjh6OgMXT9b38p6lZgeIkHFzZJYSQXnwT X-Gm-Message-State: AOJu0YzoUsgUKODPifhMCQypEQ/z/DfkUm6zQnBxpO0DdiwZej+q8Rx0 EF99zezQwILjjxLgmymMr/SuStmhwCnW+/H8/VGi/ttRM8EwlrmYQajAy7/WRQ== X-Received: by 2002:a05:6a21:3994:b0:1af:6697:2512 with SMTP id ad20-20020a056a21399400b001af66972512mr2666075pzc.22.1714555215252; Wed, 01 May 2024 02:20:15 -0700 (PDT) Received: from localhost ([2401:fa00:8f:203:eea3:591:a74c:b230]) by smtp.gmail.com with ESMTPSA id se6-20020a17090b518600b002b08e6d885asm958562pjb.3.2024.05.01.02.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 02:20:14 -0700 (PDT) Date: Wed, 1 May 2024 18:20:12 +0900 From: Hidenori Kobayashi To: Ricardo Ribalda Cc: Mauro Carvalho Chehab , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Sakari Ailus , Bingbu Cao , Tianshu Qiu , linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hans Verkuil Subject: Re: [PATCH 2/4] media: intel/ipu6: Switch to RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS Message-ID: <42svo2ykapj3atpds3dedqzybp4vh7vcvje622n4cxz6geaw2w@mfazrgyw6653> References: <20240430-fix-ipu6-v1-0-9b31fbbce6e4@chromium.org> <20240430-fix-ipu6-v1-2-9b31fbbce6e4@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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240430-fix-ipu6-v1-2-9b31fbbce6e4@chromium.org> On Tue, Apr 30, 2024 at 12:55:34PM +0000, Ricardo Ribalda wrote: > 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 | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/pci/intel/ipu6/ipu6.c b/drivers/media/pci/intel/ipu6/ipu6.c > index 4b1f69d14d71..ff5ca0c52781 100644 > --- a/drivers/media/pci/intel/ipu6/ipu6.c > +++ b/drivers/media/pci/intel/ipu6/ipu6.c > @@ -803,7 +803,7 @@ static int ipu6_suspend(struct device *dev) > return 0; > } > > -static int ipu6_resume(struct device *dev) > +static int __maybe_unused ipu6_resume(struct device *dev) Doesn't this contradict your commit message? > { > struct pci_dev *pdev = to_pci_dev(dev); > struct ipu6_device *isp = pci_get_drvdata(pdev); > @@ -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); > > -- > 2.44.0.769.g3c40516874-goog > >