Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D604847F for ; Fri, 10 Mar 2023 13:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678455981; x=1709991981; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bRieUvM7mwqpEqyRNij92CPtcQ20rS/UHWcE93X/HzI=; b=bzFR3Sfgl8v+ER/8roMsxPE5WaXZnbPvZGC9MKzTCaIJj5nq34EKZ6RO F6VnhIwNOnJg9RfFExYaI3oqi6QmKaWxPFPOgNxoAL6NopbH/vq/ZKvUA zJxVp9mVtEtH2MSi7ugvGYqZQKmyXnFd1NKLQYh17S7Nr01DOGqlCVzOS m+RyegZoNMcJ2B91pegaKZnCjXIY/sn3qbehisYNJMB2Roc1gnYi+GL5x ypldTtZeQf29g6YteTnJfSVzt+qIYyTONpGkyRMMstTIxzeigIcJhfUYx SAQosFlHB3VctHAV/tTh2LvzKcgnD8iK0Z8CWTSBfhPdUMoTgEbHdNjHp g==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="335426024" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="335426024" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2023 05:46:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="741981046" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="741981046" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP; 10 Mar 2023 05:46:16 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pad4Y-000tiL-1B; Fri, 10 Mar 2023 15:46:14 +0200 Date: Fri, 10 Mar 2023 15:46:14 +0200 From: Andy Shevchenko To: Tony Lindgren Cc: kernel test robot , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Jiri Slaby , oe-kbuild-all@lists.linux.dev, Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v6 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: References: <20230309085713.57700-1-tony@atomide.com> <202303100516.22vtkWv4-lkp@intel.com> <20230310065238.GJ7501@atomide.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230310065238.GJ7501@atomide.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Mar 10, 2023 at 08:52:38AM +0200, Tony Lindgren wrote: > * kernel test robot [230309 21:31]: > > >> drivers/tty/serial/serial_ctrl.c:17:34: warning: 'serial_ctrl_pm' defined but not used [-Wunused-const-variable=] > > 17 | static DEFINE_RUNTIME_DEV_PM_OPS(serial_ctrl_pm, NULL, NULL, NULL); > > | ^~~~~~~~~~~~~~ > > Thanks I'll tag it with __maybe_unused. It requires to use pm_ptr() macro, it was designed exactly to *not* spread __maybe_unused. -- With Best Regards, Andy Shevchenko