* [PATCH] fs/dax: Fix run_dax() missing prototype
@ 2022-03-04 20:37 ira.weiny
2022-03-10 5:08 ` Dan Williams
0 siblings, 1 reply; 3+ messages in thread
From: ira.weiny @ 2022-03-04 20:37 UTC (permalink / raw)
To: Dan Williams; +Cc: Vishal Verma, Ira Weiny, nvdimm, linux-kernel
From: Ira Weiny <ira.weiny@intel.com>
The function run_dax() was missing a prototype when compiling with
warnings.
Add bus.h to fix this.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
---
drivers/dax/super.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dax/super.c b/drivers/dax/super.c
index e3029389d809..5c003cc73d04 100644
--- a/drivers/dax/super.c
+++ b/drivers/dax/super.c
@@ -14,6 +14,7 @@
#include <linux/dax.h>
#include <linux/fs.h>
#include "dax-private.h"
+#include "bus.h"
/**
* struct dax_device - anchor object for dax services
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/dax: Fix run_dax() missing prototype
2022-03-04 20:37 [PATCH] fs/dax: Fix run_dax() missing prototype ira.weiny
@ 2022-03-10 5:08 ` Dan Williams
2022-03-10 23:12 ` Ira Weiny
0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2022-03-10 5:08 UTC (permalink / raw)
To: Weiny, Ira; +Cc: Vishal Verma, Linux NVDIMM, Linux Kernel Mailing List
On Fri, Mar 4, 2022 at 12:38 PM <ira.weiny@intel.com> wrote:
>
> From: Ira Weiny <ira.weiny@intel.com>
>
> The function run_dax() was missing a prototype when compiling with
> warnings.
>
> Add bus.h to fix this.
>
Always include the warning and the compiler in the changelog. I
suspect you hit this with LLVM and not gcc?
super.c has no business including bus.h. If the bots are tripping over
this a better fix is to move it into dax-private.h.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fs/dax: Fix run_dax() missing prototype
2022-03-10 5:08 ` Dan Williams
@ 2022-03-10 23:12 ` Ira Weiny
0 siblings, 0 replies; 3+ messages in thread
From: Ira Weiny @ 2022-03-10 23:12 UTC (permalink / raw)
To: Dan Williams; +Cc: Vishal Verma, Linux NVDIMM, Linux Kernel Mailing List
On Wed, Mar 09, 2022 at 09:08:36PM -0800, Dan Williams wrote:
> On Fri, Mar 4, 2022 at 12:38 PM <ira.weiny@intel.com> wrote:
> >
> > From: Ira Weiny <ira.weiny@intel.com>
> >
> > The function run_dax() was missing a prototype when compiling with
> > warnings.
> >
> > Add bus.h to fix this.
> >
>
> Always include the warning and the compiler in the changelog.
Sorry.
> I
> suspect you hit this with LLVM and not gcc?
No this was with gcc.
gcc -Wp,-MMD,drivers/dax/.super.o.d -nostdinc -I./arch/x86/include
...
-D__KBUILD_MODNAME=kmod_dax -c -o drivers/dax/super.o drivers/dax/super.c ;
./tools/objtool/objtool orc generate --no-fp --retpoline --uaccess drivers/dax/super.o
drivers/dax/super.c:276:6: warning: no previous prototype for ‘run_dax’ [-Wmissing-prototypes]
276 | void run_dax(struct dax_device *dax_dev)
| ^~~~~~~
>
> super.c has no business including bus.h. If the bots are tripping over
> this a better fix is to move it into dax-private.h.
It was not a bot just me using W=1.
I can ignore it or move the prototype to dax-private.h.
Ira
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-10 23:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 20:37 [PATCH] fs/dax: Fix run_dax() missing prototype ira.weiny
2022-03-10 5:08 ` Dan Williams
2022-03-10 23:12 ` Ira Weiny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).