[staging:staging-testing 1167/1169] drivers/staging/lustre/lustre/obdclass/genops.c:1107:14: warning: 'obd_export_nid2str' defined but not used

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   fa9df8e31addd4ae26d8317f166bc09921b3629d
commit: 63e9a7485d7a7d7a216f32f9db0b4cc444decab4 [1167/1169] Staging: lustre: obdclass: genops: Declare as static
config: i386-randconfig-n0-201540 (attached as .config)
reproduce:
        git checkout 63e9a7485d7a7d7a216f32f9db0b4cc444decab4
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

>> drivers/staging/lustre/lustre/obdclass/genops.c:1107:14: warning: 'obd_export_nid2str' defined but not used [-Wunused-function]
    static char *obd_export_nid2str(struct obd_export *exp)
                 ^

vim +/obd_export_nid2str +1107 drivers/staging/lustre/lustre/obdclass/genops.c

  1091		class_export_get(exp);
  1092	
  1093		/* Most callers into obd_disconnect are removing their own reference
  1094		 * (request, for example) in addition to the one from the hash table.
  1095		 * We don't have such a reference here, so make one. */
  1096		class_export_get(exp);
  1097		rc = obd_disconnect(exp);
  1098		if (rc)
  1099			CERROR("disconnecting export %p failed: %d\n", exp, rc);
  1100		else
  1101			CDEBUG(D_HA, "disconnected export %p/%s\n",
  1102			       exp, exp->exp_client_uuid.uuid);
  1103		class_export_put(exp);
  1104	}
  1105	EXPORT_SYMBOL(class_fail_export);
  1106	
> 1107	static char *obd_export_nid2str(struct obd_export *exp)
  1108	{
  1109		if (exp->exp_connection != NULL)
  1110			return libcfs_nid2str(exp->exp_connection->c_peer.nid);
  1111	
  1112		return "(no nid)";
  1113	}
  1114	
  1115	#if LUSTRE_TRACKS_LOCK_EXP_REFS

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

Attachment: .config.gz
Description: Binary data

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux