From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android12-5.10 16/22] mm/swapfile.c:102:26: warning: no previous prototype for function 'swap_type_to_swap_info'
Date: Sat, 4 Nov 2023 04:46:20 +0800 [thread overview]
Message-ID: <202311040403.Vs8dXP6G-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 422887ef073ab9748ddbdf4ffe3009e040f93c4c
commit: 4506bcbba5ec78d8d694fbb43e964cfefe900887 [16/22] ANDROID: mm: export swap_type_to_swap_info
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231104/202311040403.Vs8dXP6G-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311040403.Vs8dXP6G-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311040403.Vs8dXP6G-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/swapfile.c:102:26: warning: no previous prototype for function 'swap_type_to_swap_info' [-Wmissing-prototypes]
struct swap_info_struct *swap_type_to_swap_info(int type)
^
mm/swapfile.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct swap_info_struct *swap_type_to_swap_info(int type)
^
static
1 warning generated.
vim +/swap_type_to_swap_info +102 mm/swapfile.c
101
> 102 struct swap_info_struct *swap_type_to_swap_info(int type)
103 {
104 if (type >= READ_ONCE(nr_swapfiles))
105 return NULL;
106
107 smp_rmb(); /* Pairs with smp_wmb in alloc_swap_info. */
108 return READ_ONCE(swap_info[type]);
109 }
110 EXPORT_SYMBOL_GPL(swap_type_to_swap_info);
111
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-11-03 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 20:46 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-30 16:47 [android-common:android12-5.10 16/22] mm/swapfile.c:102:26: warning: no previous prototype for function 'swap_type_to_swap_info' kernel test robot
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=202311040403.Vs8dXP6G-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--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 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.