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>] [day] [month] [year] [list]
Message-ID: <202108281824.D3cFcJ3z-lkp@intel.com>
Date:   Sat, 28 Aug 2021 18:49:32 +0800
From:   kernel test robot <lkp@...el.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.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'

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@...el.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@...emloft.net>
:::::: CC: David S. Miller <davem@...emloft.net>

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

Download attachment ".config.gz" of type "application/gzip" (30929 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ