Re: [PATCH] libiscsi: Remove iscsi_destroy_session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Khazhismel,

[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on v4.12 next-20170713]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Khazhismel-Kumykov/libiscsi-Remove-iscsi_destroy_session/20170713-185526
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All errors (new ones prefixed by >>):

   drivers/scsi/libiscsi.c: In function 'iscsi_session_teardown':
>> drivers/scsi/libiscsi.c:2880:2: error: implicit declaration of function 'iscsi_destroy_session' [-Werror=implicit-function-declaration]
     iscsi_destroy_session(cls_session);
     ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/iscsi_destroy_session +2880 drivers/scsi/libiscsi.c

7996a778 Mike Christie        2006-04-06  2850  
7996a778 Mike Christie        2006-04-06  2851  /**
7996a778 Mike Christie        2006-04-06  2852   * iscsi_session_teardown - destroy session, host, and cls_session
75613521 Mike Christie        2008-05-21  2853   * @cls_session: iscsi session
7996a778 Mike Christie        2006-04-06  2854   *
75613521 Mike Christie        2008-05-21  2855   * The driver must have called iscsi_remove_session before
75613521 Mike Christie        2008-05-21  2856   * calling this.
75613521 Mike Christie        2008-05-21  2857   */
7996a778 Mike Christie        2006-04-06  2858  void iscsi_session_teardown(struct iscsi_cls_session *cls_session)
7996a778 Mike Christie        2006-04-06  2859  {
75613521 Mike Christie        2008-05-21  2860  	struct iscsi_session *session = cls_session->dd_data;
63f75cc8 Mike Christie        2006-07-24  2861  	struct module *owner = cls_session->transport->owner;
e5bd7b54 Mike Christie        2008-09-24  2862  	struct Scsi_Host *shost = session->host;
7996a778 Mike Christie        2006-04-06  2863  
6320377f Olaf Kirch           2007-12-13  2864  	iscsi_pool_free(&session->cmdpool);
7996a778 Mike Christie        2006-04-06  2865  
b2c64167 Mike Christie        2007-05-30  2866  	kfree(session->password);
b2c64167 Mike Christie        2007-05-30  2867  	kfree(session->password_in);
b2c64167 Mike Christie        2007-05-30  2868  	kfree(session->username);
b2c64167 Mike Christie        2007-05-30  2869  	kfree(session->username_in);
f3ff0c36 Mike Christie        2006-07-24  2870  	kfree(session->targetname);
3c5c4801 Vikas Chaudhary      2012-01-19  2871  	kfree(session->targetalias);
88dfd340 Mike Christie        2008-05-21  2872  	kfree(session->initiatorname);
3b9373e9 Eddie Wai            2013-06-20  2873  	kfree(session->boot_root);
3b9373e9 Eddie Wai            2013-06-20  2874  	kfree(session->boot_nic);
3b9373e9 Eddie Wai            2013-06-20  2875  	kfree(session->boot_target);
88dfd340 Mike Christie        2008-05-21  2876  	kfree(session->ifacename);
f8525eb4 Adheer Chandravanshi 2013-07-01  2877  	kfree(session->portal_type);
f8525eb4 Adheer Chandravanshi 2013-07-01  2878  	kfree(session->discovery_parent_type);
f3ff0c36 Mike Christie        2006-07-24  2879  
75613521 Mike Christie        2008-05-21 @2880  	iscsi_destroy_session(cls_session);
e5bd7b54 Mike Christie        2008-09-24  2881  	iscsi_host_dec_session_cnt(shost);
63f75cc8 Mike Christie        2006-07-24  2882  	module_put(owner);
7996a778 Mike Christie        2006-04-06  2883  }
7996a778 Mike Christie        2006-04-06  2884  EXPORT_SYMBOL_GPL(iscsi_session_teardown);
7996a778 Mike Christie        2006-04-06  2885  

:::::: The code at line 2880 was first introduced by commit
:::::: 756135215ec743be6fdce2bdebe8cdb9f8a231f6 [SCSI] iscsi: remove session and host binding in libiscsi

:::::: TO: Mike Christie <michaelc@xxxxxxxxxxx>
:::::: CC: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux