All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>, linux-mips@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
	"Huacai Chen" <chenhc@lemote.com>,
	"Aleksandar Markovic" <aleksandar.qemu.devel@gmail.com>,
	"Paul Burton" <paulburton@kernel.org>,
	"Serge Semin" <Sergey.Semin@baikalelectronics.ru>,
	"WANG Xuerui" <git@xen0n.name>,
	"周琰杰 (Zhou Yanjie)" <zhouyanjie@wanyeetech.com>,
	"Liangliang Huang" <huanglllzu@gmail.com>
Subject: Re: [PATCH 1/7] MIPS: sync-r4k: Rework to be many cores firendly
Date: Fri, 21 Aug 2020 23:32:15 +0800	[thread overview]
Message-ID: <202008212359.4bMnydTY%lkp@intel.com> (raw)
In-Reply-To: <20200817034701.3515721-2-jiaxun.yang@flygoat.com>

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

Hi Jiaxun,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.9-rc1 next-20200821]
[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/Jiaxun-Yang/R4000-clock-enhancements-for-Loongson/20200817-115351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
config: mips-randconfig-r014-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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/mips/kernel/sync-r4k.c:28:6: warning: no previous prototype for function 'synchronise_count_master' [-Wmissing-prototypes]
   void synchronise_count_master(void *unused)
        ^
   arch/mips/kernel/sync-r4k.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void synchronise_count_master(void *unused)
   ^
   static 
   1 warning generated.

# https://github.com/0day-ci/linux/commit/6c760a310d6f07efede56e732f3de2e2a944e361
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jiaxun-Yang/R4000-clock-enhancements-for-Loongson/20200817-115351
git checkout 6c760a310d6f07efede56e732f3de2e2a944e361
vim +/synchronise_count_master +28 arch/mips/kernel/sync-r4k.c

    27	
  > 28	void synchronise_count_master(void *unused)
    29	{
    30		unsigned long flags;
    31		long delta;
    32		int i;
    33	
    34		if (atomic_read(&sync_stage) != STAGE_START)
    35			BUG();
    36	
    37		local_irq_save(flags);
    38	
    39		cur_count = read_c0_count();
    40		smp_wmb();
    41		atomic_inc(&sync_stage); /* inc to STAGE_MASTER_READY */
    42	
    43		for (i = 0; i < MAX_LOOPS; i++) {
    44			cur_count = read_c0_count();
    45			smp_wmb();
    46			if (atomic_read(&sync_stage) == STAGE_SLAVE_SYNCED)
    47				break;
    48		}
    49	
    50		delta = read_c0_count() - fini_count;
    51	
    52		local_irq_restore(flags);
    53	
    54		if (i == MAX_LOOPS)
    55			pr_err("sync-r4k: Master: synchronise timeout\n");
    56		else
    57			pr_info("sync-r4k: Master: synchronise succeed, maximum delta: %ld\n", delta);
    58	
    59		return;
    60	}
    61	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 1/7] MIPS: sync-r4k: Rework to be many cores firendly
Date: Fri, 21 Aug 2020 23:32:15 +0800	[thread overview]
Message-ID: <202008212359.4bMnydTY%lkp@intel.com> (raw)
In-Reply-To: <20200817034701.3515721-2-jiaxun.yang@flygoat.com>

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

Hi Jiaxun,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.9-rc1 next-20200821]
[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/Jiaxun-Yang/R4000-clock-enhancements-for-Loongson/20200817-115351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
config: mips-randconfig-r014-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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/mips/kernel/sync-r4k.c:28:6: warning: no previous prototype for function 'synchronise_count_master' [-Wmissing-prototypes]
   void synchronise_count_master(void *unused)
        ^
   arch/mips/kernel/sync-r4k.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void synchronise_count_master(void *unused)
   ^
   static 
   1 warning generated.

# https://github.com/0day-ci/linux/commit/6c760a310d6f07efede56e732f3de2e2a944e361
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jiaxun-Yang/R4000-clock-enhancements-for-Loongson/20200817-115351
git checkout 6c760a310d6f07efede56e732f3de2e2a944e361
vim +/synchronise_count_master +28 arch/mips/kernel/sync-r4k.c

    27	
  > 28	void synchronise_count_master(void *unused)
    29	{
    30		unsigned long flags;
    31		long delta;
    32		int i;
    33	
    34		if (atomic_read(&sync_stage) != STAGE_START)
    35			BUG();
    36	
    37		local_irq_save(flags);
    38	
    39		cur_count = read_c0_count();
    40		smp_wmb();
    41		atomic_inc(&sync_stage); /* inc to STAGE_MASTER_READY */
    42	
    43		for (i = 0; i < MAX_LOOPS; i++) {
    44			cur_count = read_c0_count();
    45			smp_wmb();
    46			if (atomic_read(&sync_stage) == STAGE_SLAVE_SYNCED)
    47				break;
    48		}
    49	
    50		delta = read_c0_count() - fini_count;
    51	
    52		local_irq_restore(flags);
    53	
    54		if (i == MAX_LOOPS)
    55			pr_err("sync-r4k: Master: synchronise timeout\n");
    56		else
    57			pr_info("sync-r4k: Master: synchronise succeed, maximum delta: %ld\n", delta);
    58	
    59		return;
    60	}
    61	

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

  parent reply	other threads:[~2020-08-21 15:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17  3:46 [PATCH 0/7] R4000 clock enhancements for Loongson Jiaxun Yang
2020-08-17  3:46 ` [PATCH 1/7] MIPS: sync-r4k: Rework to be many cores firendly Jiaxun Yang
2020-08-17  6:04   ` kernel test robot
2020-08-17  6:04     ` kernel test robot
2020-08-17  7:55   ` peterz
2020-08-21 15:32   ` kernel test robot [this message]
2020-08-21 15:32     ` kernel test robot
2020-08-17  3:46 ` [PATCH 2/7] MIPS: time: Use CPUHUP to handle r4k timer Jiaxun Yang
2020-08-17  3:46 ` [PATCH 3/7] MIPS: Kconfig: Always select SYNC_R4K if both SMP and r4k timer is enabled Jiaxun Yang
2020-08-17  3:46 ` [PATCH 4/7] MIPS: Loongson64: Remove custom count sync procudure Jiaxun Yang
2020-08-17  3:46 ` [PATCH 5/7] MIPS: cevt-r4k: Don't handle IRQ if clockevent is not enabled Jiaxun Yang
2020-08-17  3:46 ` [PATCH 6/7] MIPS: cevt-r4k: Enable intimer for Loongson CPUs with extimer Jiaxun Yang
2020-08-17  3:46 ` [PATCH 7/7] MIPS: KVM: Don't use htimer when INTIMER is disabled Jiaxun Yang

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=202008212359.4bMnydTY%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Sergey.Semin@baikalelectronics.ru \
    --cc=aleksandar.qemu.devel@gmail.com \
    --cc=chenhc@lemote.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=git@xen0n.name \
    --cc=huanglllzu@gmail.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=paulburton@kernel.org \
    --cc=tsbogend@alpha.franken.de \
    --cc=zhouyanjie@wanyeetech.com \
    /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.