From: kernel test robot <lkp@intel.com>
To: Hui Su <sh_def@163.com>,
hughd@google.com, akpm@linux-foundation.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, sh_def@163.com
Subject: Re: [PATCH] mm/shmem.c: make shmem_mapping() inline
Date: Sat, 14 Nov 2020 00:54:47 +0800 [thread overview]
Message-ID: <202011140010.ETcSkyze-lkp@intel.com> (raw)
In-Reply-To: <20201113135427.GA167783@rlk>
[-- Attachment #1: Type: text/plain, Size: 3797 bytes --]
Hi Hui,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mmotm/master]
url: https://github.com/0day-ci/linux/commits/Hui-Su/mm-shmem-c-make-shmem_mapping-inline/20201113-215549
base: git://git.cmpxchg.org/linux-mmotm.git master
config: arm-randconfig-s032-20201113 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://github.com/0day-ci/linux/commit/0434762d5523a3d702cd589a7f8e3771fee7b3b2
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hui-Su/mm-shmem-c-make-shmem_mapping-inline/20201113-215549
git checkout 0434762d5523a3d702cd589a7f8e3771fee7b3b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
mm/filemap.c: note: in included file:
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
--
mm/truncate.c: note: in included file:
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
--
mm/memfd.c: note: in included file:
>> include/linux/shmem_fs.h:66:33: sparse: sparse: marked inline, but without a definition
vim +66 include/linux/shmem_fs.h
48
49 /*
50 * Functions in mm/shmem.c called directly from elsewhere:
51 */
52 extern const struct fs_parameter_description shmem_fs_parameters;
53 extern int shmem_init(void);
54 extern int shmem_init_fs_context(struct fs_context *fc);
55 extern struct file *shmem_file_setup(const char *name,
56 loff_t size, unsigned long flags);
57 extern struct file *shmem_kernel_file_setup(const char *name, loff_t size,
58 unsigned long flags);
59 extern struct file *shmem_file_setup_with_mnt(struct vfsmount *mnt,
60 const char *name, loff_t size, unsigned long flags);
61 extern int shmem_zero_setup(struct vm_area_struct *);
62 extern unsigned long shmem_get_unmapped_area(struct file *, unsigned long addr,
63 unsigned long len, unsigned long pgoff, unsigned long flags);
64 extern int shmem_lock(struct file *file, int lock, struct user_struct *user);
65 #ifdef CONFIG_SHMEM
> 66 extern inline bool shmem_mapping(struct address_space *mapping);
67 #else
68 static inline bool shmem_mapping(struct address_space *mapping)
69 {
70 return false;
71 }
72 #endif /* CONFIG_SHMEM */
73 extern void shmem_unlock_mapping(struct address_space *mapping);
74 extern struct page *shmem_read_mapping_page_gfp(struct address_space *mapping,
75 pgoff_t index, gfp_t gfp_mask);
76 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end);
77 extern int shmem_unuse(unsigned int type, bool frontswap,
78 unsigned long *fs_pages_to_unuse);
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 20182 bytes --]
next prev parent reply other threads:[~2020-11-13 16:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-13 13:54 [PATCH] mm/shmem.c: make shmem_mapping() inline Hui Su
2020-11-13 15:14 ` Pankaj Gupta
2020-11-13 16:54 ` kernel test robot [this message]
2020-11-14 5:47 ` Hui Su
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=202011140010.ETcSkyze-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hughd@google.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=sh_def@163.com \
/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;
as well as URLs for NNTP newsgroup(s).