Re: [PATCH v3] mm: page_alloc: Add debug log in free_reserved_area for static memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Faiyaz,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v5.15-rc5]
[cannot apply to hnaz-mm/master next-20211013]
[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/Faiyaz-Mohammed/mm-page_alloc-Add-debug-log-in-free_reserved_area-for-static-memory/20211014-151427
base:    64570fbc14f8d7cb3fe3995f20e26bc25ce4b2cc
config: hexagon-randconfig-r004-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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
        # https://github.com/0day-ci/linux/commit/009729e4f858e64537a4a144369b155f8d69d62f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Faiyaz-Mohammed/mm-page_alloc-Add-debug-log-in-free_reserved_area-for-static-memory/20211014-151427
        git checkout 009729e4f858e64537a4a144369b155f8d69d62f
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   mm/page_alloc.c:3810: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:3810: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 
>> mm/page_alloc.c:8134:12: error: use of undeclared identifier '__RET_IP_'
                           (void *)__RET_IP_);
                                   ^
   1 warning and 1 error generated.


vim +/__RET_IP_ +8134 mm/page_alloc.c

  8097	
  8098	unsigned long free_reserved_area(void *start, void *end, int poison, const char *s)
  8099	{
  8100		const phys_addr_t pstart = __pa(start);
  8101		const phys_addr_t pend = __pa(end);
  8102		void *pos;
  8103		unsigned long pages = 0;
  8104	
  8105		start = (void *)PAGE_ALIGN((unsigned long)start);
  8106		end = (void *)((unsigned long)end & PAGE_MASK);
  8107		for (pos = start; pos < end; pos += PAGE_SIZE, pages++) {
  8108			struct page *page = virt_to_page(pos);
  8109			void *direct_map_addr;
  8110	
  8111			/*
  8112			 * 'direct_map_addr' might be different from 'pos'
  8113			 * because some architectures' virt_to_page()
  8114			 * work with aliases.  Getting the direct map
  8115			 * address ensures that we get a _writeable_
  8116			 * alias for the memset().
  8117			 */
  8118			direct_map_addr = page_address(page);
  8119			/*
  8120			 * Perform a kasan-unchecked memset() since this memory
  8121			 * has not been initialized.
  8122			 */
  8123			direct_map_addr = kasan_reset_tag(direct_map_addr);
  8124			if ((unsigned int)poison <= 0xFF)
  8125				memset(direct_map_addr, poison, PAGE_SIZE);
  8126	
  8127			free_reserved_page(page);
  8128		}
  8129	
  8130		if (pages && s) {
  8131			pr_info("Freeing %s memory: %ldK\n",
  8132				s, pages << (PAGE_SHIFT - 10));
  8133			pr_debug("[%pa-%pa] %pS\n", &pstart, &pend,
> 8134				(void *)__RET_IP_);
  8135		}
  8136	
  8137		return pages;
  8138	}
  8139	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux