linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Minchan Kim <minchan@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Linux Memory Management List <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	joaodias@google.com, surenb@google.com, cgoldswo@codeaurora.org,
	willy@infradead.org, mhocko@suse.com, david@redhat.com,
	vbabka@suse.cz
Subject: Re: [PATCH 1/2] mm: disable LRU pagevec during the migration temporarily
Date: Thu, 4 Mar 2021 02:12:28 +0800	[thread overview]
Message-ID: <202103040258.DU7KSZZK-lkp@intel.com> (raw)
In-Reply-To: <20210302210949.2440120-1-minchan@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 10538 bytes --]

Hi Minchan,

I love your patch! Yet something to improve:

[auto build test ERROR on block/for-next]
[also build test ERROR on linux/master linus/master v5.12-rc1 next-20210303]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Minchan-Kim/mm-disable-LRU-pagevec-during-the-migration-temporarily/20210303-191809
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: arm-randconfig-r021-20210303 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a7cad6680b4087eff8994f1f99ac40c661a6621f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/0day-ci/linux/commit/6e669beb75caae92c613a012734b1a2dc9485524
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Minchan-Kim/mm-disable-LRU-pagevec-during-the-migration-temporarily/20210303-191809
        git checkout 6e669beb75caae92c613a012734b1a2dc9485524
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from fs/iomap/buffered-io.c:19:
>> include/linux/migrate.h:70:41: error: void function 'migrate_prep' should not return a value [-Wreturn-type]
   static inline void migrate_prep(void) { return -ENOSYS; }
                                           ^      ~~~~~~~
>> include/linux/migrate.h:71:47: error: void function 'migrate_prep_local' should not return a value [-Wreturn-type]
   static inline void migrate_prep_local(void) { return -ENOSYS; }
                                                 ^      ~~~~~~~
   2 errors generated.
--
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:40:
   In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:86:
   In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_mn.h:28:
   In file included from include/linux/hmm.h:16:
>> include/linux/migrate.h:70:41: error: void function 'migrate_prep' should not return a value [-Wreturn-type]
   static inline void migrate_prep(void) { return -ENOSYS; }
                                           ^      ~~~~~~~
>> include/linux/migrate.h:71:47: error: void function 'migrate_prep_local' should not return a value [-Wreturn-type]
   static inline void migrate_prep_local(void) { return -ENOSYS; }
                                                 ^      ~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1143:18: warning: result of comparison of constant 4294967296 with expression of type 'resource_size_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
                       res->start > 0x100000000ull)
                       ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                                                 ^~~~
   include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                                        ^~~~
   include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
           (cond) ?                                        \
            ^~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1143:18: warning: result of comparison of constant 4294967296 with expression of type 'resource_size_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
                       res->start > 0x100000000ull)
                       ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                                                 ^~~~
   include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                      ^~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1143:18: warning: result of comparison of constant 4294967296 with expression of type 'resource_size_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
                       res->start > 0x100000000ull)
                       ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                                                 ^~~~
   include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                               ^~~~
   3 warnings and 2 errors generated.
--
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:36:
   In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:86:
   In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu_mn.h:28:
   In file included from include/linux/hmm.h:16:
>> include/linux/migrate.h:70:41: error: void function 'migrate_prep' should not return a value [-Wreturn-type]
   static inline void migrate_prep(void) { return -ENOSYS; }
                                           ^      ~~~~~~~
>> include/linux/migrate.h:71:47: error: void function 'migrate_prep_local' should not return a value [-Wreturn-type]
   static inline void migrate_prep_local(void) { return -ENOSYS; }
                                                 ^      ~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:263:7: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]
                                     version_major, version_minor);
                                     ^~~~~~~~~~~~~
   include/drm/drm_print.h:498:19: note: expanded from macro 'DRM_ERROR'
           __drm_err(fmt, ##__VA_ARGS__)
                     ~~~    ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:263:22: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat]
                                     version_major, version_minor);
                                                    ^~~~~~~~~~~~~
   include/drm/drm_print.h:498:19: note: expanded from macro 'DRM_ERROR'
           __drm_err(fmt, ##__VA_ARGS__)
                     ~~~    ^~~~~~~~~~~
   2 warnings and 2 errors generated.
--
   In file included from mm/page_alloc.c:61:
>> include/linux/migrate.h:70:41: error: void function 'migrate_prep' should not return a value [-Wreturn-type]
   static inline void migrate_prep(void) { return -ENOSYS; }
                                           ^      ~~~~~~~
>> include/linux/migrate.h:71:47: error: void function 'migrate_prep_local' should not return a value [-Wreturn-type]
   static inline void migrate_prep_local(void) { return -ENOSYS; }
                                                 ^      ~~~~~~~
   mm/page_alloc.c:2621:5: warning: no previous prototype for function 'find_suitable_fallback' [-Wmissing-prototypes]
   int find_suitable_fallback(struct free_area *area, unsigned int order,
       ^
   mm/page_alloc.c:2621:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int find_suitable_fallback(struct free_area *area, unsigned int order,
   ^
   static 
   mm/page_alloc.c:3600:15: warning: no previous prototype for function 'should_fail_alloc_page' [-Wmissing-prototypes]
   noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
                 ^
   mm/page_alloc.c:3600:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
   noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
            ^
            static 
   2 warnings and 2 errors generated.
--
   In file included from kernel/sched/rt.c:6:
   In file included from kernel/sched/sched.h:53:
>> include/linux/migrate.h:70:41: error: void function 'migrate_prep' should not return a value [-Wreturn-type]
   static inline void migrate_prep(void) { return -ENOSYS; }
                                           ^      ~~~~~~~
>> include/linux/migrate.h:71:47: error: void function 'migrate_prep_local' should not return a value [-Wreturn-type]
   static inline void migrate_prep_local(void) { return -ENOSYS; }
                                                 ^      ~~~~~~~
   kernel/sched/rt.c:669:6: warning: no previous prototype for function 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
   bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
        ^
   kernel/sched/rt.c:669:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
   ^
   static 
   1 warning and 2 errors generated.


vim +/migrate_prep +70 include/linux/migrate.h

    58	
    59	static inline void putback_movable_pages(struct list_head *l) {}
    60	static inline int migrate_pages(struct list_head *l, new_page_t new,
    61			free_page_t free, unsigned long private, enum migrate_mode mode,
    62			int reason)
    63		{ return -ENOSYS; }
    64	static inline struct page *alloc_migration_target(struct page *page,
    65			unsigned long private)
    66		{ return NULL; }
    67	static inline int isolate_movable_page(struct page *page, isolate_mode_t mode)
    68		{ return -EBUSY; }
    69	
  > 70	static inline void migrate_prep(void) { return -ENOSYS; }
  > 71	static inline void migrate_prep_local(void) { return -ENOSYS; }
    72	static inline void migrate_done(void) {}
    73	

---
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: 32862 bytes --]

      parent reply	other threads:[~2021-03-03 18:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210302210949.2440120-1-minchan@kernel.org>
2021-03-03 12:49 ` [PATCH 1/2] mm: disable LRU pagevec during the migration temporarily Michal Hocko
2021-03-03 20:23   ` Minchan Kim
2021-03-04  8:07     ` David Hildenbrand
2021-03-04 15:55       ` Minchan Kim
2021-03-05 16:06     ` Michal Hocko
2021-03-05 20:26       ` Minchan Kim
2021-03-03 13:38 ` kernel test robot
2021-03-03 15:11 ` kernel test robot
2021-03-03 18:12 ` kernel test robot [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=202103040258.DU7KSZZK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=cgoldswo@codeaurora.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=david@redhat.com \
    --cc=joaodias@google.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=minchan@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@suse.cz \
    --cc=willy@infradead.org \
    /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).