How to remove this warning

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

 



Hi All,
         I am trying to make stack for my learning in which i made a bus driver and device driver when i am trying to create device sysfs file after registering it with the bus i am getting oops after some digging i found that the compiler is reporting warning for using preprocessor macro called DEV_ATT. code is as follows. can anybody help me to remove this warning.
 
static ssize_t show_host_device_version(struct device *ddev, char *buf)
{
    struct HOST *dev = ddev->driver_data;

    return print_dev_t(buf, dev->cdev.dev);
}

static DEVICE_ATTR(host_device_version,S_IRUGO,show_host_device_version,NULL);
 
device_create_file(&dev->host.dev, &dev_attr_host_device_version);
 
 
Regards


Post free auto ads on Yello Classifieds now! Try it now!
_______________________________________________
Fedora-kernel-list mailing list
Fedora-kernel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux