From: Andrew Morton <akpm@linux-foundation.org>
To: kernel test robot <lkp@intel.com>
Cc: Carlos Maiolino <cem@kernel.org>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Lukas Czerner <lczerner@redhat.com>, Jan Kara <jack@suse.cz>
Subject: Re: [akpm-mm:mm-unstable 161/178] mm/shmem_quota.c:286:5: warning: no previous prototype for function 'shmem_mark_dquot_dirty'
Date: Fri, 14 Jul 2023 08:57:26 -0700 [thread overview]
Message-ID: <20230714085726.4b015152cd5b5182250b2a66@linux-foundation.org> (raw)
In-Reply-To: <202307141341.R961dyMt-lkp@intel.com>
On Fri, 14 Jul 2023 13:10:19 +0800 kernel test robot <lkp@intel.com> wrote:
> >> mm/shmem_quota.c:286:5: warning: no previous prototype for function 'shmem_mark_dquot_dirty' [-Wmissing-prototypes]
> 286 | int shmem_mark_dquot_dirty(struct dquot *dquot)
> | ^
> mm/shmem_quota.c:286:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> 286 | int shmem_mark_dquot_dirty(struct dquot *dquot)
> | ^
> | static
> >> mm/shmem_quota.c:291:5: warning: no previous prototype for function 'shmem_dquot_write_info' [-Wmissing-prototypes]
> 291 | int shmem_dquot_write_info(struct super_block *sb, int type)
> | ^
> mm/shmem_quota.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> 291 | int shmem_dquot_write_info(struct super_block *sb, int type)
Thanks.
--- a/mm/shmem_quota.c~shmem-prepare-shmem-quota-infrastructure-fix
+++ a/mm/shmem_quota.c
@@ -283,12 +283,12 @@ out_dqlock:
return 0;
}
-int shmem_mark_dquot_dirty(struct dquot *dquot)
+static int shmem_mark_dquot_dirty(struct dquot *dquot)
{
return 0;
}
-int shmem_dquot_write_info(struct super_block *sb, int type)
+static int shmem_dquot_write_info(struct super_block *sb, int type)
{
return 0;
}
_
prev parent reply other threads:[~2023-07-14 15:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 5:10 kernel test robot
2023-07-14 15:57 ` Andrew Morton [this message]
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=20230714085726.4b015152cd5b5182250b2a66@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=cem@kernel.org \
--cc=jack@suse.cz \
--cc=lczerner@redhat.com \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox