linux-next: build warning after merge of the lightnvm tree

From: Stephen Rothwell
Date: Wed Sep 14 2016 - 23:42:43 EST


Hi Matias,

After merging the lightnvm tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/lightnvm/sysfs.c: In function 'nvm_sysfs_register_dev':
drivers/lightnvm/sysfs.c:184:2: warning: ignoring return value of 'device_add', declared with attribute warn_unused_result [-Wunused-result]
device_add(&dev->dev);
^

Introduced by commit

38c9e260b9f9 ("lightnvm: expose device geometry through sysfs")

--
Cheers,
Stephen Rothwell