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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78B87C64EC4 for ; Fri, 10 Mar 2023 13:46:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbjCJNq0 (ORCPT ); Fri, 10 Mar 2023 08:46:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjCJNqW (ORCPT ); Fri, 10 Mar 2023 08:46:22 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36F3010BA5A; Fri, 10 Mar 2023 05:46:21 -0800 (PST) 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="335426020" X-IronPort-AV: E=Sophos;i="5.98,249,1673942400"; d="scan'208";a="335426020" 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> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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