<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi All,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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.<BR>&nbsp;<BR>static ssize_t show_host_device_version(struct device *ddev, char *buf)<BR>{<BR>&nbsp;&nbsp;&nbsp; struct&nbsp;HOST *dev = ddev-&gt;driver_data;<BR><BR>&nbsp;&nbsp;&nbsp; return print_dev_t(buf, dev-&gt;cdev.dev);<BR>}<BR><BR>static DEVICE_ATTR(host_device_version,S_IRUGO,show_host_device_version,NULL);<BR>&nbsp;<BR>device_create_file(&amp;dev-&gt;host.dev, &amp;dev_attr_host_device_version);<BR>&nbsp;<BR>&nbsp;<BR>Regards<BR><br /><hr />Post free auto ads on Yello Classifieds now!  <a href='http://ss1.richmedia.in/recurl.asp?pid=255' target='_new'>Try it now!</a></body>
</html>