From: kernel test robot <lkp@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [char-misc:char-misc-next 87/87] net/qrtr/mhi.c:105:41: error: use of undeclared identifier 'MHI_CH_INBOUND_ALLOC_BUFS'
Date: Sat, 28 Aug 2021 18:49:32 +0800 [thread overview]
Message-ID: <202108281824.D3cFcJ3z-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4884 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-next
head: 0dc3ad3f859d3a65b335c861ec342d31d91e8bc8
commit: 0dc3ad3f859d3a65b335c861ec342d31d91e8bc8 [87/87] Revert "bus: mhi: Add inbound buffers allocation flag"
config: hexagon-randconfig-r041-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4e1a164d7bd53653f79decc121afe784d2fde0a7)
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://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/commit/?id=0dc3ad3f859d3a65b335c861ec342d31d91e8bc8
git remote add char-misc https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
git fetch --no-tags char-misc char-misc-next
git checkout 0dc3ad3f859d3a65b335c861ec342d31d91e8bc8
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash net/qrtr/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> net/qrtr/mhi.c:105:41: error: use of undeclared identifier 'MHI_CH_INBOUND_ALLOC_BUFS'
rc = mhi_prepare_for_transfer(mhi_dev, MHI_CH_INBOUND_ALLOC_BUFS);
^
1 error generated.
vim +/MHI_CH_INBOUND_ALLOC_BUFS +105 net/qrtr/mhi.c
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 79
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 80 static int qcom_mhi_qrtr_probe(struct mhi_device *mhi_dev,
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 81 const struct mhi_device_id *id)
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 82 {
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 83 struct qrtr_mhi_dev *qdev;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 84 int rc;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 85
a2e2cc0dbb1121 Loic Poulain 2020-09-28 86 /* start channels */
0dc3ad3f859d3a Greg Kroah-Hartman 2021-08-27 87 rc = mhi_prepare_for_transfer(mhi_dev);
a2e2cc0dbb1121 Loic Poulain 2020-09-28 88 if (rc)
a2e2cc0dbb1121 Loic Poulain 2020-09-28 89 return rc;
a2e2cc0dbb1121 Loic Poulain 2020-09-28 90
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 91 qdev = devm_kzalloc(&mhi_dev->dev, sizeof(*qdev), GFP_KERNEL);
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 92 if (!qdev)
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 93 return -ENOMEM;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 94
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 95 qdev->mhi_dev = mhi_dev;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 96 qdev->dev = &mhi_dev->dev;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 97 qdev->ep.xmit = qcom_mhi_qrtr_send;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 98
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 99 dev_set_drvdata(&mhi_dev->dev, qdev);
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 100 rc = qrtr_endpoint_register(&qdev->ep, QRTR_EP_NID_AUTO);
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 101 if (rc)
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 102 return rc;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 103
ce78ffa3ef1681 David S. Miller 2021-08-03 104 /* start channels */
ce78ffa3ef1681 David S. Miller 2021-08-03 @105 rc = mhi_prepare_for_transfer(mhi_dev, MHI_CH_INBOUND_ALLOC_BUFS);
ce78ffa3ef1681 David S. Miller 2021-08-03 106 if (rc) {
ce78ffa3ef1681 David S. Miller 2021-08-03 107 qrtr_endpoint_unregister(&qdev->ep);
ce78ffa3ef1681 David S. Miller 2021-08-03 108 dev_set_drvdata(&mhi_dev->dev, NULL);
ce78ffa3ef1681 David S. Miller 2021-08-03 109 return rc;
ce78ffa3ef1681 David S. Miller 2021-08-03 110 }
ce78ffa3ef1681 David S. Miller 2021-08-03 111
ce78ffa3ef1681 David S. Miller 2021-08-03 112 complete_all(&qdev->ready);
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 113 dev_dbg(qdev->dev, "Qualcomm MHI QRTR driver probed\n");
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 114
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 115 return 0;
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 116 }
6e728f321393b1 Manivannan Sadhasivam 2020-05-07 117
:::::: The code at line 105 was first introduced by commit
:::::: ce78ffa3ef1681065ba451cfd545da6126f5ca88 net: really fix the build...
:::::: TO: David S. Miller <davem@davemloft.net>
:::::: CC: David S. Miller <davem@davemloft.net>
---
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: 30929 bytes --]
reply other threads:[~2021-08-28 10:50 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=202108281824.D3cFcJ3z-lkp@intel.com \
--to=lkp@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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