All of lore.kernel.org
 help / color / mirror / Atom feed
* [char-misc:char-misc-next 87/87] net/qrtr/mhi.c:105:41: error: use of undeclared identifier 'MHI_CH_INBOUND_ALLOC_BUFS'
@ 2021-08-28 10:49 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-28 10:49 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: llvm, kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [char-misc:char-misc-next 87/87] net/qrtr/mhi.c:105:41: error: use of undeclared identifier 'MHI_CH_INBOUND_ALLOC_BUFS'
@ 2021-08-28 10:49 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-28 10:49 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4964 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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-28 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 10:49 [char-misc:char-misc-next 87/87] net/qrtr/mhi.c:105:41: error: use of undeclared identifier 'MHI_CH_INBOUND_ALLOC_BUFS' kernel test robot
2021-08-28 10:49 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.