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 1/1] mm/swapfile.c:102:26: warning: no previous prototype for 'swap_type_to_swap_info'
Date: Mon, 30 Nov 2026 08:19:01 +0800 [thread overview]
Message-ID: <20261130080943.N1HaAstn-lkp@intel.com> (raw)
Hi Bing,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 4c7c54d5282535632ad82a459d9a58e130a0452c
commit: 4506bcbba5ec78d8d694fbb43e964cfefe900887 [1/1] ANDROID: mm: export swap_type_to_swap_info
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20261130/20261130080943.N1HaAstn-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130080943.N1HaAstn-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/20261130080943.N1HaAstn-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/swapfile.c:102:26: warning: no previous prototype for 'swap_type_to_swap_info' [-Wmissing-prototypes]
102 | struct swap_info_struct *swap_type_to_swap_info(int type)
| ^~~~~~~~~~~~~~~~~~~~~~
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
reply other threads:[~2026-11-30 0:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261130080943.N1HaAstn-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.