All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: arch/x86/mm/pat/set_memory.c:90:6: warning: no previous prototype for 'update_split_page_event_count'
Date: Thu, 28 Jan 2021 18:03:45 +0800	[thread overview]
Message-ID: <202101281843.Az450sQM-lkp@intel.com> (raw)

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210128-161902/Steven-Rostedt/sched-tracing-Reset-critical-timings-on-scheduling/20210128-125618
head:   18d35c61d918430472f61aaa3bcca10c30c2ce70
commit: 18d35c61d918430472f61aaa3bcca10c30c2ce70 x86/mm: Tracking linear mapping split events
date:   2 hours ago
config: i386-randconfig-m021-20210128 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/18d35c61d918430472f61aaa3bcca10c30c2ce70
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210128-161902/Steven-Rostedt/sched-tracing-Reset-critical-timings-on-scheduling/20210128-125618
        git checkout 18d35c61d918430472f61aaa3bcca10c30c2ce70
        # 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 >>):

>> arch/x86/mm/pat/set_memory.c:90:6: warning: no previous prototype for 'update_split_page_event_count' [-Wmissing-prototypes]
      90 | void update_split_page_event_count(int level)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/mm/pat/set_memory.c: In function 'update_split_page_event_count':
   arch/x86/mm/pat/set_memory.c:97:19: error: 'DIRECT_MAP_4M_SPLIT' undeclared (first use in this function)
      97 |    count_vm_event(DIRECT_MAP_4M_SPLIT);
         |                   ^~~~~~~~~~~~~~~~~~~
   arch/x86/mm/pat/set_memory.c:97:19: note: each undeclared identifier is reported only once for each function it appears in
   arch/x86/mm/pat/set_memory.c:100:19: error: 'DIRECT_MAP_1G_SPLIT' undeclared (first use in this function)
     100 |    count_vm_event(DIRECT_MAP_1G_SPLIT);
         |                   ^~~~~~~~~~~~~~~~~~~


vim +/update_split_page_event_count +90 arch/x86/mm/pat/set_memory.c

    89	
  > 90	void update_split_page_event_count(int level)
    91	{
    92		if (system_state == SYSTEM_RUNNING) {
    93			if (level == PG_LEVEL_2M) {
    94	#if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE)
    95				count_vm_event(DIRECT_MAP_2M_SPLIT);
    96	#else
    97				count_vm_event(DIRECT_MAP_4M_SPLIT);
    98	#endif
    99			} else if (level == PG_LEVEL_1G) {
   100				count_vm_event(DIRECT_MAP_1G_SPLIT);
   101			}
   102		}
   103	}
   104	

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

                 reply	other threads:[~2021-01-28 10:03 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=202101281843.Az450sQM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.