All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:mm_id 18/21] fs/proc/task_mmu.c:33:13: warning: '__folio_page_mapped_exclusively' defined but not used
Date: Thu, 19 Dec 2024 06:41:28 +0800	[thread overview]
Message-ID: <202412190649.8PiCAQvF-lkp@intel.com> (raw)

tree:   https://github.com/davidhildenbrand/linux mm_id
head:   e7b8c73a68a2ea10e565e103199eba2d607cb99a
commit: 73e0bb6a2659c8c77f22c342659bcf7c570127d0 [18/21] fs/proc/task_mmu: remove per-page mapcount dependency for PM_MMAP_EXCLUSIVE (CONFIG_NO_PAGE_MAPCOUNT)
config: i386-buildonly-randconfig-006-20241219 (https://download.01.org/0day-ci/archive/20241219/202412190649.8PiCAQvF-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241219/202412190649.8PiCAQvF-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/202412190649.8PiCAQvF-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/proc/task_mmu.c:33:13: warning: '__folio_page_mapped_exclusively' defined but not used [-Wunused-function]
      33 | static bool __folio_page_mapped_exclusively(struct folio *folio, struct page *page)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/__folio_page_mapped_exclusively +33 fs/proc/task_mmu.c

    31	
    32	#ifdef CONFIG_PAGE_MAPCOUNT
  > 33	static bool __folio_page_mapped_exclusively(struct folio *folio, struct page *page)
    34	{
    35		return folio_precise_page_mapcount(folio, page) == 1;
    36	}
    37	#else /* !CONFIG_PAGE_MAPCOUNT */
    38	static bool __folio_page_mapped_exclusively(struct folio *folio, struct page *page)
    39	{
    40		return !folio_likely_mapped_shared(folio);
    41	}
    42	#endif /* CONFIG_PAGE_MAPCOUNT */
    43	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-12-18 22:42 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=202412190649.8PiCAQvF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=david@redhat.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.