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 18425C61DA4 for ; Thu, 9 Mar 2023 21:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231462AbjCIVcN (ORCPT ); Thu, 9 Mar 2023 16:32:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbjCIVcD (ORCPT ); Thu, 9 Mar 2023 16:32:03 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 713DBFAD75; Thu, 9 Mar 2023 13:31:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678397509; x=1709933509; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xqEU/xpQmG3XBT8UvsTkfueNh2v0rzg7v9y9ON6CO28=; b=jyLZCX8jxmOVukunuLTOfqfmVOEtoKMHqi3kavhAd8cn0RbFSZH0a0cu fOC2cZZUwFk2O51B9Li/zjBQHgXEKnfXwBCN7YfkHZtlWH7490dpCDJUM YyIuRFkYpgMf4mJc8o7mzdIb0TzW4uYtBoj3IsZso1BcivMO99F+07RLm QVv26/4AETkBPHif24OeYx9qFaFsZAkB8zEGgIlhc2ll1fQl30ONnrjHA 09LCtM0uiKQWG9K7NVzvA1psAyGN3KTQJYMJjAN5yZU4EBlCSeCFb5D7Z URk9iXjjk2LJj1dOypm5d6Ub4QCLVzqoDdyZWxq0ly28PURJWn8nV6cto A==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="324924278" X-IronPort-AV: E=Sophos;i="5.98,247,1673942400"; d="scan'208";a="324924278" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 13:31:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="746474015" X-IronPort-AV: E=Sophos;i="5.98,247,1673942400"; d="scan'208";a="746474015" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 09 Mar 2023 13:31:41 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1paNrQ-0003ER-0D; Thu, 09 Mar 2023 21:31:40 +0000 Date: Fri, 10 Mar 2023 05:31:04 +0800 From: kernel test robot To: Tony Lindgren , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Jiri Slaby Cc: oe-kbuild-all@lists.linux.dev, Andy Shevchenko , 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: <202303100516.22vtkWv4-lkp@intel.com> References: <20230309085713.57700-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230309085713.57700-1-tony@atomide.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, I love your patch! Perhaps something to improve: [auto build test WARNING on tty/tty-testing] [also build test WARNING on tty/tty-next tty/tty-linus rafael-pm/linux-next usb/usb-testing usb/usb-next usb/usb-linus linus/master v6.3-rc1 next-20230309] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Tony-Lindgren/serial-core-Start-managing-serial-controllers-to-enable-runtime-PM/20230309-170149 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing patch link: https://lore.kernel.org/r/20230309085713.57700-1-tony%40atomide.com patch subject: [PATCH v6 1/1] serial: core: Start managing serial controllers to enable runtime PM config: x86_64-kexec (https://download.01.org/0day-ci/archive/20230310/202303100516.22vtkWv4-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/08f76f28e32bcd3c093e4af349b0e1b60328395e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Tony-Lindgren/serial-core-Start-managing-serial-controllers-to-enable-runtime-PM/20230309-170149 git checkout 08f76f28e32bcd3c093e4af349b0e1b60328395e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 olddefconfig make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/tty/serial/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303100516.22vtkWv4-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/device.h:25, from include/linux/pm_runtime.h:11, from drivers/tty/serial/serial_ctrl.c:12: >> 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); | ^~~~~~~~~~~~~~ include/linux/pm.h:372:25: note: in definition of macro '_DEFINE_DEV_PM_OPS' 372 | const struct dev_pm_ops name = { \ | ^~~~ drivers/tty/serial/serial_ctrl.c:17:8: note: in expansion of macro 'DEFINE_RUNTIME_DEV_PM_OPS' 17 | static DEFINE_RUNTIME_DEV_PM_OPS(serial_ctrl_pm, NULL, NULL, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/serial_ctrl_pm +17 drivers/tty/serial/serial_ctrl.c 2 3 /* 4 * Serial core controller driver 5 * 6 * This driver manages the serial core controller struct device instances. 7 * The serial core controller devices are children of the physical serial 8 * port device. 9 */ 10 11 #include > 12 #include 13 #include 14 15 #include "serial_base.h" 16 > 17 static DEFINE_RUNTIME_DEV_PM_OPS(serial_ctrl_pm, NULL, NULL, NULL); 18 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests