Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp29980rwn; Wed, 7 Sep 2022 11:59:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR7NWC3oUxOjIN58obtowYFV1NiEN5GJFBVFCW8gbnjtQ1S1PbjOcw2ommU3+0AGyMw90xJL X-Received: by 2002:a05:6a00:13a7:b0:538:39fc:ddc0 with SMTP id t39-20020a056a0013a700b0053839fcddc0mr5189812pfg.8.1662577171843; Wed, 07 Sep 2022 11:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662577171; cv=none; d=google.com; s=arc-20160816; b=UJM7H4iIw8/cExUV6R9B5oIDltRdU034tBSPb5JZmc9QEzMrvuglhcMAxJY8FAHkSY x96r9yknBpbuXuS58VMSgOaXLrTrdrK+pO+87d7aTe7PwdAYlbIQOnjjIKaYV7YOueMQ yH4Rnh3eWqY0tNRmt5Hz1AjluEhaT+h9yqP2j3srgP4FljhnPdAxH9MuCIbqXTMB8Qui 7csqFHJJQnrq1Xygckp/m3d+YwREyUXRbbFpliorxz2CXUTPdaFxH2o7/88Xzo6I4VYW 2/f696S0Cae3w+1q+E2s9OU+Q8x1ClsCvXQB4zdcL8FvrNbLwNHP+zSNn//+zwEUkKf8 CccQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z9P17Yt0yBVUVeFH8T9sgH+GY3z+6mIu/hWAbTLi3gE=; b=aSOh7AJ1ZgS8gIh5P1ZM2td7N6Ryp15qlr2IUov/35XVAIsQPJEY2Z9WDvIua0IKmK kKdyMpNKnEUjiVcFpcUBHwf5BRZnvzEOKQe+K/Yftyc92beCZocXq2BC2gAdY5kUM8ai QHQ8d8VJL4ZgKohvW/pdUZpgs0nUEEJeGvVzMRJ94bZDm9KPq32DQ9mGdUaSuadwG8vY H4lI6aEQsHrDz/Q2NXnNxKnK0guHPse6RYhgTZSIuiIKbUR0U96VjVM4hPO9lA/LCoMp xcxqThDr203i6mLmBC+Em1zLJsiaXJIpAHaETIgu3vcPcooh6Bhe/MAgD42waHJehrDi 92FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bSBq6TrQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170903124600b00172de894f52si15750174plh.396.2022.09.07.11.59.19; Wed, 07 Sep 2022 11:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bSBq6TrQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbiIGS0L (ORCPT + 99 others); Wed, 7 Sep 2022 14:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbiIGS0H (ORCPT ); Wed, 7 Sep 2022 14:26:07 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E99DBCC1F; Wed, 7 Sep 2022 11:26:02 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id z20so16986861ljq.3; Wed, 07 Sep 2022 11:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=Z9P17Yt0yBVUVeFH8T9sgH+GY3z+6mIu/hWAbTLi3gE=; b=bSBq6TrQEMMHQceNOwc7Uc3PucEeV7/m1nPzeUW8yOGLZNY+O3AMad8w93hHNktZr+ 7OFC0TAqOj3LanMxXMVzvbX9bca+jx8gsewboM9qLs8yLoty7khzGREqn6DR9vfyzNRQ tCuKV3S4qTixrgPar/hItGWEYMu8o3U166vRTALg83Jwk8QXg5ZODmWjswhzwFmZGssN Bi4Snob/0nesX+GoQA5PFNCvNia7V+v3Nmvw9BcdH6RDbhKBHxaCoILQLLHxbrp4kJN1 BSXtGZfjDz/Be5gefJwsFaXAHZwXuwRsA1AQ2rkLURe0lLUEKe22kYlrhrHz5jzrUdwG +RDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=Z9P17Yt0yBVUVeFH8T9sgH+GY3z+6mIu/hWAbTLi3gE=; b=yKoiG74mHUk26xCrXhH61e/yixEMPQ8sBpX/Ue7b5Yfsh2eLV03evOCZVvqN/a08ua oIE+yVAtg5stYIs4sMbTFOH6e2DuOTn49DZpLnTInDoD46RYWUdWWR1GiLAEdwXm3GGD UWFpa3Q2k9S054D/lDkzAo7IehVhqKxGjJKzZHJaCQAnZuDLkmDHgxJWbHJIhGY7UJFl czIWer2aosyqZipkd+0nO3PT4M90d+W8OR0b9Mf+YLbIJCs0pmQEgRnm/7PPr27b2INo 1M4wuWmzqXWlf5Ns/yD3du81f8mqIlEtBOgmQvfmsPevvmGteECbK3c+nd/rhGttM2WA TryQ== X-Gm-Message-State: ACgBeo0oai563s5JQbTKA6QSfA+chW+Xqw1TwSu3uUmLyLjpALJhN9zV L7nPYk5/rxsQx5Zl/Fu0GFC0RCaHlYGU4A== X-Received: by 2002:a2e:940d:0:b0:261:c5c8:3403 with SMTP id i13-20020a2e940d000000b00261c5c83403mr1488589ljh.86.1662575160567; Wed, 07 Sep 2022 11:26:00 -0700 (PDT) Received: from mobilestation (89-109-51-230.dynamic.mts-nn.ru. [89.109.51.230]) by smtp.gmail.com with ESMTPSA id 5-20020a2eb945000000b00267232d0652sm2817728ljs.46.2022.09.07.11.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 11:25:59 -0700 (PDT) Date: Wed, 7 Sep 2022 21:25:56 +0300 From: Serge Semin To: kernel test robot Cc: Serge Semin , Damien Le Moal , Hans de Goede , Jens Axboe , Hannes Reinecke , kbuild-all@lists.01.org, Alexey Malahov , Pavel Parkhomenko , Rob Herring , Krzysztof Kozlowski , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v7 19/23] ata: ahci: Add DWC AHCI SATA controller support Message-ID: <20220907182556.em57cl4g5nk2i4sc@mobilestation> References: <20220822183728.24434-20-Sergey.Semin@baikalelectronics.ru> <202209040834.w5y0s1NR-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202209040834.w5y0s1NR-lkp@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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