All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 2/13] mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used
@ 2021-06-03  1:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-03  1:05 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   25a0835d5ec1cc4462d853326945cd4dfec4fe17
commit: ddc4a48797352076586ef3ab79c6bfaba08fd06e [2/13] ANDROID: mm: page_pinner: introduce failure_tracking feature
config: i386-randconfig-r003-20210603 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout ddc4a48797352076586ef3ab79c6bfaba08fd06e
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   mm/page_pinner.c: In function '__page_pinner_migration_failed':
>> mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used [-Wunused-but-set-variable]
     304 |  struct page_pinner *page_pinner;
         |                      ^~~~~~~~~~~


vim +/page_pinner +304 mm/page_pinner.c

   300	
   301	void __page_pinner_migration_failed(struct page *page)
   302	{
   303		struct page_ext *page_ext = lookup_page_ext(page);
 > 304		struct page_pinner *page_pinner;
   305		depot_stack_handle_t handle;
   306		unsigned long flags;
   307		unsigned int idx;
   308	
   309		if (unlikely(!page_ext))
   310			return;
   311	
   312		page_pinner = get_page_pinner(page_ext);
   313		if (!test_bit(PAGE_EXT_PINNER_MIGRATION_FAILED, &page_ext->flags))
   314			return;
   315	
   316		handle = save_stack(GFP_NOWAIT|__GFP_NOWARN);
   317	
   318		spin_lock_irqsave(&acf_pinner.lock, flags);
   319		idx = acf_pinner.index++;
   320		acf_pinner.index %= LONTERM_PIN_BUCKETS;
   321	
   322		acf_pinner.pinner[idx].handle = handle;
   323		acf_pinner.pinner[idx].ts_usec = ktime_to_us(ktime_get_boottime());
   324		acf_pinner.pinner[idx].page_flags = page->flags;
   325		acf_pinner.pinner[idx].page_mt = get_pageblock_migratetype(page);
   326		acf_pinner.pinner[idx].pfn = page_to_pfn(page);
   327		spin_unlock_irqrestore(&acf_pinner.lock, flags);
   328	}
   329	EXPORT_SYMBOL(__page_pinner_migration_failed);
   330	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30011 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [android-common:android12-5.10 2/13] mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used
@ 2021-08-19  6:04 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-19  6:04 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   25a0835d5ec1cc4462d853326945cd4dfec4fe17
commit: ddc4a48797352076586ef3ab79c6bfaba08fd06e [2/13] ANDROID: mm: page_pinner: introduce failure_tracking feature
config: x86_64-buildonly-randconfig-r002-20210819 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d2b574a4dea5b718e4386bf2e26af0126e5978ce)
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
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout ddc4a48797352076586ef3ab79c6bfaba08fd06e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used [-Wunused-but-set-variable]
           struct page_pinner *page_pinner;
                               ^
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_VMASTER
   Depends on SOUND && !UML && SND
   Selected by
   - GKI_HIDDEN_SND_CONFIGS
   WARNING: unmet direct dependencies detected for SND_PCM_IEC958
   Depends on SOUND && !UML && SND
   Selected by
   - GKI_HIDDEN_SND_SOC_CONFIGS
   WARNING: unmet direct dependencies detected for SND_JACK
   Depends on SOUND && !UML && SND
   Selected by
   - GKI_HIDDEN_SND_CONFIGS
   WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
   Depends on SOUND && !UML && SND && SND_JACK
   Selected by
   - GKI_HIDDEN_SND_CONFIGS
   WARNING: unmet direct dependencies detected for SND_PCM_ELD
   Depends on SOUND && !UML && SND
   Selected by
   - GKI_HIDDEN_SND_CONFIGS
   WARNING: unmet direct dependencies detected for HVC_DRIVER
   Depends on TTY
   Selected by
   - GKI_HIDDEN_VIRTUAL_CONFIGS


vim +/page_pinner +304 mm/page_pinner.c

   300	
   301	void __page_pinner_migration_failed(struct page *page)
   302	{
   303		struct page_ext *page_ext = lookup_page_ext(page);
 > 304		struct page_pinner *page_pinner;
   305		depot_stack_handle_t handle;
   306		unsigned long flags;
   307		unsigned int idx;
   308	
   309		if (unlikely(!page_ext))
   310			return;
   311	
   312		page_pinner = get_page_pinner(page_ext);
   313		if (!test_bit(PAGE_EXT_PINNER_MIGRATION_FAILED, &page_ext->flags))
   314			return;
   315	
   316		handle = save_stack(GFP_NOWAIT|__GFP_NOWARN);
   317	
   318		spin_lock_irqsave(&acf_pinner.lock, flags);
   319		idx = acf_pinner.index++;
   320		acf_pinner.index %= LONTERM_PIN_BUCKETS;
   321	
   322		acf_pinner.pinner[idx].handle = handle;
   323		acf_pinner.pinner[idx].ts_usec = ktime_to_us(ktime_get_boottime());
   324		acf_pinner.pinner[idx].page_flags = page->flags;
   325		acf_pinner.pinner[idx].page_mt = get_pageblock_migratetype(page);
   326		acf_pinner.pinner[idx].pfn = page_to_pfn(page);
   327		spin_unlock_irqrestore(&acf_pinner.lock, flags);
   328	}
   329	EXPORT_SYMBOL(__page_pinner_migration_failed);
   330	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34498 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-19  6:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03  1:05 [android-common:android12-5.10 2/13] mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used kernel test robot
2021-08-19  6:04 kernel test robot

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.