linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Shukun Tan <tanshukun1@huawei.com>
Cc: kbuild-all@lists.01.org, linux-crypto@vger.kernel.org,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Zhou Wang <wangzhou1@hisilicon.com>,
	Zaibo Xu <xuzaibo@huawei.com>
Subject: [cryptodev:master 12/24] drivers/crypto/hisilicon/qm.c:2810:7: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'?
Date: Thu, 16 Apr 2020 22:09:05 +0800	[thread overview]
Message-ID: <202004162201.zYB1WQo6%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3485 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head:   0a8f5989e03476cfb2a7756e33fa4d0163cb4375
commit: 6c6dd5802c2d6769fa589c0e8de54299def199a7 [12/24] crypto: hisilicon/qm - add controller reset interface
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6c6dd5802c2d6769fa589c0e8de54299def199a7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/crypto/hisilicon/qm.c: In function 'qm_soft_reset':
>> drivers/crypto/hisilicon/qm.c:2810:7: error: implicit declaration of function 'acpi_evaluate_integer'; did you mean 'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
    2810 |   s = acpi_evaluate_integer(ACPI_HANDLE(&pdev->dev),
         |       ^~~~~~~~~~~~~~~~~~~~~
         |       acpi_evaluate_object
   cc1: some warnings being treated as errors

vim +2810 drivers/crypto/hisilicon/qm.c

  2757	
  2758	static int qm_soft_reset(struct hisi_qm *qm)
  2759	{
  2760		struct pci_dev *pdev = qm->pdev;
  2761		int ret;
  2762		u32 val;
  2763	
  2764		/* Ensure all doorbells and mailboxes received by QM */
  2765		ret = qm_check_req_recv(qm);
  2766		if (ret)
  2767			return ret;
  2768	
  2769		if (qm->vfs_num) {
  2770			ret = qm_set_vf_mse(qm, false);
  2771			if (ret) {
  2772				pci_err(pdev, "Fails to disable vf MSE bit.\n");
  2773				return ret;
  2774			}
  2775		}
  2776	
  2777		ret = qm_set_msi(qm, false);
  2778		if (ret) {
  2779			pci_err(pdev, "Fails to disable PEH MSI bit.\n");
  2780			return ret;
  2781		}
  2782	
  2783		qm_dev_ecc_mbit_handle(qm);
  2784	
  2785		/* OOO register set and check */
  2786		writel(ACC_MASTER_GLOBAL_CTRL_SHUTDOWN,
  2787		       qm->io_base + ACC_MASTER_GLOBAL_CTRL);
  2788	
  2789		/* If bus lock, reset chip */
  2790		ret = readl_relaxed_poll_timeout(qm->io_base + ACC_MASTER_TRANS_RETURN,
  2791						 val,
  2792						 (val == ACC_MASTER_TRANS_RETURN_RW),
  2793						 POLL_PERIOD, POLL_TIMEOUT);
  2794		if (ret) {
  2795			pci_emerg(pdev, "Bus lock! Please reset system.\n");
  2796			return ret;
  2797		}
  2798	
  2799		ret = qm_set_pf_mse(qm, false);
  2800		if (ret) {
  2801			pci_err(pdev, "Fails to disable pf MSE bit.\n");
  2802			return ret;
  2803		}
  2804	
  2805		/* The reset related sub-control registers are not in PCI BAR */
  2806		if (ACPI_HANDLE(&pdev->dev)) {
  2807			unsigned long long value = 0;
  2808			acpi_status s;
  2809	
> 2810			s = acpi_evaluate_integer(ACPI_HANDLE(&pdev->dev),
  2811						  qm->err_ini->err_info.acpi_rst,
  2812						  NULL, &value);
  2813			if (ACPI_FAILURE(s)) {
  2814				pci_err(pdev, "NO controller reset method!\n");
  2815				return -EIO;
  2816			}
  2817	
  2818			if (value) {
  2819				pci_err(pdev, "Reset step %llu failed!\n", value);
  2820				return -EIO;
  2821			}
  2822		} else {
  2823			pci_err(pdev, "No reset method!\n");
  2824			return -EINVAL;
  2825		}
  2826	
  2827		return 0;
  2828	}
  2829	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 62431 bytes --]

                 reply	other threads:[~2020-04-16 14:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202004162201.zYB1WQo6%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=tanshukun1@huawei.com \
    --cc=wangzhou1@hisilicon.com \
    --cc=xuzaibo@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).