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 5D308C6FD1C for ; Tue, 14 Mar 2023 07:06:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbjCNHGa (ORCPT ); Tue, 14 Mar 2023 03:06:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbjCNHG1 (ORCPT ); Tue, 14 Mar 2023 03:06:27 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78F5F74A6E; Tue, 14 Mar 2023 00:06:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id E46C380C1; Tue, 14 Mar 2023 07:06:23 +0000 (UTC) Date: Tue, 14 Mar 2023 09:06:22 +0200 From: Tony Lindgren To: Andy Shevchenko Cc: kernel test robot , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Jiri Slaby , oe-kbuild-all@lists.linux.dev, Ilpo =?utf-8?B?SsOkcnZpbmVu?= , 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: <20230314070622.GL7501@atomide.com> 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Andy Shevchenko [230310 13:46]: > 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. Heh yeah.. Turns out the issue here is that the serial_ctrl_pm ops is not used at all for serial_ctrl.c and can be just dropped. Regards, Tony