From: Dave Jiang <dave.jiang@intel.com> To: akpm@linux-foundation.org Cc: sfr@canb.auug.org.au, mawilcox@microsoft.com, linux-nvdimm@lists.01.org, dave.hansen@linux.intel.com, linux-mm@kvack.org, kirill.shutemov@linux.intel.com, jack@suse.com, torvalds@linux-foundation.org, vbabka@suse.cz Subject: [PATCH] fs, dax: fix build warning for !CONFIG_FS_DAX_PMD case for dax_iomap_pmd_fault Date: Mon, 27 Feb 2017 09:51:32 -0700 [thread overview] Message-ID: <148821429251.38263.11870148981890888722.stgit@djiang5-desk3.ch.intel.com> (raw) Stephen reported: With just Linus' tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/dax.c: In function 'dax_iomap_fault': fs/dax.c:1462:35: warning: passing argument 2 of 'dax_iomap_pmd_fault' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return dax_iomap_pmd_fault(vmf, ops); ^ fs/dax.c:1439:12: note: expected 'struct iomap_ops *' but argument is of type 'const struct iomap_ops *' static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops) ^ Introduced by commit a2d581675d48 ("mm,fs,dax: change ->pmd_fault to ->huge_fault") which missed fixing up the !CONFIG_FS_DAX_PMD case. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Dave Jiang <dave.jiang@intel.com> --- fs/dax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/dax.c b/fs/dax.c index 5ae8b71..7436c98 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1436,7 +1436,8 @@ static int dax_iomap_pmd_fault(struct vm_fault *vmf, return result; } #else -static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops) +static int dax_iomap_pmd_fault(struct vm_fault *vmf, + const struct iomap_ops *ops) { return VM_FAULT_FALLBACK; } _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm
WARNING: multiple messages have this Message-ID (diff)
From: Dave Jiang <dave.jiang@intel.com> To: akpm@linux-foundation.org Cc: sfr@canb.auug.org.au, dave.hansen@linux.intel.com, mawilcox@microsoft.com, linux-nvdimm@lists.01.org, linux-mm@kvack.org, vbabka@suse.cz, jack@suse.com, dan.j.williams@intel.com, torvalds@linux-foundation.org, ross.zwisler@linux.intel.com, kirill.shutemov@linux.intel.com Subject: [PATCH] fs, dax: fix build warning for !CONFIG_FS_DAX_PMD case for dax_iomap_pmd_fault Date: Mon, 27 Feb 2017 09:51:32 -0700 [thread overview] Message-ID: <148821429251.38263.11870148981890888722.stgit@djiang5-desk3.ch.intel.com> (raw) Stephen reported: With just Linus' tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/dax.c: In function 'dax_iomap_fault': fs/dax.c:1462:35: warning: passing argument 2 of 'dax_iomap_pmd_fault' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return dax_iomap_pmd_fault(vmf, ops); ^ fs/dax.c:1439:12: note: expected 'struct iomap_ops *' but argument is of type 'const struct iomap_ops *' static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops) ^ Introduced by commit a2d581675d48 ("mm,fs,dax: change ->pmd_fault to ->huge_fault") which missed fixing up the !CONFIG_FS_DAX_PMD case. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Dave Jiang <dave.jiang@intel.com> --- fs/dax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/dax.c b/fs/dax.c index 5ae8b71..7436c98 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1436,7 +1436,8 @@ static int dax_iomap_pmd_fault(struct vm_fault *vmf, return result; } #else -static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops) +static int dax_iomap_pmd_fault(struct vm_fault *vmf, + const struct iomap_ops *ops) { return VM_FAULT_FALLBACK; } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2017-02-27 16:51 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-02-27 16:51 Dave Jiang [this message] 2017-02-27 16:51 ` [PATCH] fs, dax: fix build warning for !CONFIG_FS_DAX_PMD case for dax_iomap_pmd_fault Dave Jiang
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=148821429251.38263.11870148981890888722.stgit@djiang5-desk3.ch.intel.com \ --to=dave.jiang@intel.com \ --cc=akpm@linux-foundation.org \ --cc=dave.hansen@linux.intel.com \ --cc=jack@suse.com \ --cc=kirill.shutemov@linux.intel.com \ --cc=linux-mm@kvack.org \ --cc=linux-nvdimm@lists.01.org \ --cc=mawilcox@microsoft.com \ --cc=sfr@canb.auug.org.au \ --cc=torvalds@linux-foundation.org \ --cc=vbabka@suse.cz \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.