* [PATCH] nvdimm: fix inline function return type warning
@ 2015-07-28 19:27 Randy Dunlap
2015-07-31 22:37 ` Dan Williams
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2015-07-28 19:27 UTC (permalink / raw)
To: LKML; +Cc: Dan Williams, linux-nvdimm
From: Randy Dunlap <rdunlap@infradead.org>
Fix multiple build warnings when CONFIG_BTT is not enabled:
In file included from ../drivers/nvdimm/bus.c:29:0:
../drivers/nvdimm/nd.h:169:15: warning: return type defaults to 'int' [-Wreturn-type]
static inline nd_btt_probe(struct nd_namespace_common *ndns, void *drvdata)
^
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: linux-nvdimm@lists.01.org
---
drivers/nvdimm/nd.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lnx-42-rc4.orig/drivers/nvdimm/nd.h
+++ lnx-42-rc4/drivers/nvdimm/nd.h
@@ -166,7 +166,7 @@ int nd_btt_probe(struct nd_namespace_com
bool is_nd_btt(struct device *dev);
struct device *nd_btt_create(struct nd_region *nd_region);
#else
-static inline nd_btt_probe(struct nd_namespace_common *ndns, void *drvdata)
+static inline int nd_btt_probe(struct nd_namespace_common *ndns, void *drvdata)
{
return -ENODEV;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] nvdimm: fix inline function return type warning
2015-07-28 19:27 [PATCH] nvdimm: fix inline function return type warning Randy Dunlap
@ 2015-07-31 22:37 ` Dan Williams
0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2015-07-31 22:37 UTC (permalink / raw)
To: Randy Dunlap; +Cc: LKML, linux-nvdimm
On Tue, Jul 28, 2015 at 12:27 PM, Randy Dunlap <rdunlap@infradead.org> wrote:
> From: Randy Dunlap <rdunlap@infradead.org>
>
> Fix multiple build warnings when CONFIG_BTT is not enabled:
>
> In file included from ../drivers/nvdimm/bus.c:29:0:
> ../drivers/nvdimm/nd.h:169:15: warning: return type defaults to 'int' [-Wreturn-type]
> static inline nd_btt_probe(struct nd_namespace_common *ndns, void *drvdata)
> ^
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Dan Williams <dan.j.williams@intel.com>
> Cc: linux-nvdimm@lists.01.org
Applied to libnvdimm-for-next. Thanks Randy!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-31 22:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-28 19:27 [PATCH] nvdimm: fix inline function return type warning Randy Dunlap
2015-07-31 22:37 ` Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®