Re: [PATCH v3 8/9] serial: qcom-geni: Enable PM runtime for serial driver

kernel test robot
2025-05-07T07:59:02Z

Hi Praveen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 3e039dcc9c1320c0d33ddd51c372dcc91d3ea3c7]

url: https://github.com/intel-lab-lkp/linux/commits/Praveen-Talari/opp-add-new-helper-API-dev_pm_opp_set_level/20250502-111540
base: 3e039dcc9c1320c0d33ddd51c372dcc91d3ea3c7
patch link: https://lore.kernel.org/r/20250502031018.1292-9-quic_ptalari%40quicinc.com
patch subject: [PATCH v3 8/9] serial: qcom-geni: Enable PM runtime for serial driver
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250507/202505071523.FhPMXslL-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071523.FhPMXslL-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505071523.FhPMXslL-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/tty/serial/qcom_geni_serial.c:1876:12: warning: 'qcom_geni_serial_runtime_resume' defined but not used [-Wunused-function]
1876 | static int qcom_geni_serial_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/tty/serial/qcom_geni_serial.c:1868:12: warning: 'qcom_geni_serial_runtime_suspend' defined but not used [-Wunused-function]
1868 | static int qcom_geni_serial_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/qcom_geni_serial_runtime_resume +1876 drivers/tty/serial/qcom_geni_serial.c

1867
> 1868 static int qcom_geni_serial_runtime_suspend(struct device *dev)
1869 {
1870 struct qcom_geni_serial_port *port = dev_get_drvdata(dev);
1871 struct uart_port *uport = &port->uport;
1872
1873 return geni_serial_resources_off(uport);
1874 };
1875
> 1876 static int qcom_geni_serial_runtime_resume(struct device *dev)
1877 {
1878 struct qcom_geni_serial_port *port = dev_get_drvdata(dev);
1879 struct uart_port *uport = &port->uport;
1880
1881 return geni_serial_resources_on(uport);
1882 };
1883

--
0-DAY CI Kernel Test Service