On 3/14/07, Dinesh <dbhat@xxxxxxxxx> wrote:
When I compile our drivers on 2.6.19, I get the following warning message. warning: ignoring return value of 'class_device_create_file', declared with attribute warn_unused_result The driver does not print any warnings on 2.6.17 and it appears that this is related to some sysfs entries.
that's because 2.6.19 was improved to print warnings when people write code that fail to properly check the results of functions
Can anyone please tell me how to get rid of these messages?
going out on a limb here, but dont ignore the result of the function (aka, the result of the function is unused) incorrect: class_device_create_file(...); correct: result = class_device_create_file(...); if (result) ... -mike -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ