lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220907182556.em57cl4g5nk2i4sc@mobilestation>
Date:   Wed, 7 Sep 2022 21:25:56 +0300
From:   Serge Semin <fancer.lancer@...il.com>
To:     kernel test robot <lkp@...el.com>
Cc:     Serge Semin <Sergey.Semin@...kalelectronics.ru>,
        Damien Le Moal <damien.lemoal@...nsource.wdc.com>,
        Hans de Goede <hdegoede@...hat.com>,
        Jens Axboe <axboe@...nel.dk>, Hannes Reinecke <hare@...e.de>,
        kbuild-all@...ts.01.org,
        Alexey Malahov <Alexey.Malahov@...kalelectronics.ru>,
        Pavel Parkhomenko <Pavel.Parkhomenko@...kalelectronics.ru>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzk@...nel.org>,
        linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org,
        devicetree@...r.kernel.org
Subject: Re: [PATCH v7 19/23] ata: ahci: Add DWC AHCI SATA controller support

On Sun, Sep 04, 2022 at 08:34:20AM +0800, kernel test robot wrote:
> Hi Serge,
> 
> I love your patch! Yet something to improve:
> 
> [auto build test ERROR on robh/for-next]
> [also build test ERROR on axboe-block/for-next linus/master v6.0-rc3 next-20220901]
> [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/Serge-Semin/ata-ahci-Add-DWC-Baikal-T1-AHCI-SATA-support/20220823-024133
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
> config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220904/202209040834.w5y0s1NR-lkp@intel.com/config)
> compiler: m68k-linux-gcc (GCC) 12.1.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://github.com/intel-lab-lkp/linux/commit/e628913a210e29775bc995d1ed3ed58ab13416b8
>         git remote add linux-review https://github.com/intel-lab-lkp/linux
>         git fetch --no-tags linux-review Serge-Semin/ata-ahci-Add-DWC-Baikal-T1-AHCI-SATA-support/20220823-024133
>         git checkout e628913a210e29775bc995d1ed3ed58ab13416b8
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/ata/
> 
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@...el.com>
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from include/linux/clk.h:13,
>                     from drivers/ata/ahci_dwc.c:11:
> >> drivers/ata/ahci_dwc.c:372:50: error: 'ahci_dwc_suspend' undeclared here (not in a function); did you mean 'ahci_dwc_probe'?
>      372 | static DEFINE_SIMPLE_DEV_PM_OPS(ahci_dwc_pm_ops, ahci_dwc_suspend,
>          |                                                  ^~~~~~~~~~~~~~~~
>    include/linux/kernel.h:57:44: note: in definition of macro 'PTR_IF'
>       57 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
>          |                                            ^~~
>    include/linux/pm.h:313:20: note: in expansion of macro 'pm_sleep_ptr'
>      313 |         .suspend = pm_sleep_ptr(suspend_fn), \
>          |                    ^~~~~~~~~~~~
>    include/linux/pm.h:373:9: note: in expansion of macro 'SYSTEM_SLEEP_PM_OPS'
>      373 |         SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn) \
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/pm.h:399:9: note: in expansion of macro '_DEFINE_DEV_PM_OPS'
>      399 |         _DEFINE_DEV_PM_OPS(name, suspend_fn, resume_fn, NULL, NULL, NULL)
>          |         ^~~~~~~~~~~~~~~~~~
>    drivers/ata/ahci_dwc.c:372:8: note: in expansion of macro 'DEFINE_SIMPLE_DEV_PM_OPS'
>      372 | static DEFINE_SIMPLE_DEV_PM_OPS(ahci_dwc_pm_ops, ahci_dwc_suspend,
>          |        ^~~~~~~~~~~~~~~~~~~~~~~~
> >> drivers/ata/ahci_dwc.c:373:33: error: 'ahci_dwc_resume' undeclared here (not in a function); did you mean 'ahci_port_resume'?
>      373 |                                 ahci_dwc_resume);
>          |                                 ^~~~~~~~~~~~~~~
>    include/linux/kernel.h:57:44: note: in definition of macro 'PTR_IF'
>       57 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
>          |                                            ^~~
>    include/linux/pm.h:314:19: note: in expansion of macro 'pm_sleep_ptr'
>      314 |         .resume = pm_sleep_ptr(resume_fn), \
>          |                   ^~~~~~~~~~~~
>    include/linux/pm.h:373:9: note: in expansion of macro 'SYSTEM_SLEEP_PM_OPS'
>      373 |         SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn) \
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/pm.h:399:9: note: in expansion of macro '_DEFINE_DEV_PM_OPS'
>      399 |         _DEFINE_DEV_PM_OPS(name, suspend_fn, resume_fn, NULL, NULL, NULL)
>          |         ^~~~~~~~~~~~~~~~~~
>    drivers/ata/ahci_dwc.c:372:8: note: in expansion of macro 'DEFINE_SIMPLE_DEV_PM_OPS'
>      372 | static DEFINE_SIMPLE_DEV_PM_OPS(ahci_dwc_pm_ops, ahci_dwc_suspend,
>          |        ^~~~~~~~~~~~~~~~~~~~~~~~
>    drivers/ata/ahci_dwc.c:267:12: warning: 'ahci_dwc_reinit_host' defined but not used [-Wunused-function]
>      267 | static int ahci_dwc_reinit_host(struct ahci_host_priv *hpriv)
>          |            ^~~~~~~~~~~~~~~~~~~~

Right. The SYSTEM_SLEEP_PM_OPS macro doesn't imply ifdef'ing the sleep
action-methods. I'll drop the conditional compilation then.

-Sergey

> 
> 
> vim +372 drivers/ata/ahci_dwc.c
> 
>    371	
>  > 372	static DEFINE_SIMPLE_DEV_PM_OPS(ahci_dwc_pm_ops, ahci_dwc_suspend,
>  > 373					ahci_dwc_resume);
>    374	
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ