class_device_create(st_sysfs_class, 
class_device_create(st_sysfs_class, NULL, 
static void do_create_class_files(struct scsi_tape *STp, int dev_num, int mode){	int i, rew, error;	char name[10];	struct class_device *st_class_member;	if (!st_sysfs_class)		return;	for (rew=0; rew < 2; rew++) {		/* Make sure that the minor numbers corresponding to the four		   first modes always get the same names */		i = mode << (4 - ST_NBR_MODE_BITS);		snprintf(name, 10, "%s%s%s", rew ? "n" : "",			 STp->disk->disk_name, st_formats[i]);		st_class_member =			class_device_create(st_sysfs_class,					    MKDEV(SCSI_TAPE_MAJOR,						  TAPE_MINOR(dev_num, mode, rew)),					    &STp->device->sdev_gendev, "%s", name);		if (IS_ERR(st_class_member)) {			printk(KERN_WARNING "st%d: class_device_create failed\n",			       dev_num);			goto out;		}		class_set_devdata(st_class_member, &STp->modes[mode]);		class_device_create_file(st_class_member,					 &class_device_attr_defined);		class_device_create_file(st_class_member,					 &class_device_attr_default_blksize);		class_device_create_file(st_class_member,					 &class_device_attr_default_density);		class_device_create_file(st_class_member,					 &class_device_attr_default_compression);		if (mode == 0 && rew == 0) {			error = sysfs_create_link(&STp->device->sdev_gendev.kobj,						  &st_class_member->kobj,						  "tape");			if (error) {				printk(KERN_ERR				       "st%d: Can't create sysfs link from SCSI device.\n",				       dev_num);			}		}	} out:	return;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/st.c/buggy/drivers/scsi/st.c