public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "周琰杰 (Zhou Yanjie)" <zhouyanjie@wanyeetech.com>,
	linux-clk@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org, sboyd@kernel.org,
	paul@crapouillou.net, mturquette@baylibre.com,
	dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com,
	rick.tyliu@ingenic.com, yanfei.li@ingenic.com,
	sernia.zhou@foxmail.com
Subject: Re: [PATCH v2 3/3] clk: X1000: Add support for calculat REFCLK of USB PHY.
Date: Mon, 29 Jun 2020 21:20:50 +0800	[thread overview]
Message-ID: <202006292101.07ZcR1aN%lkp@intel.com> (raw)
In-Reply-To: <20200628171543.51478-4-zhouyanjie@wanyeetech.com>

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

Hi "周琰杰,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on clk/clk-next]
[also build test ERROR on linux/master linus/master v5.8-rc3 next-20200629]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Zhou-Yanjie/Add-functions-to-operate-USB-PHY-related-clock/20200629-011858
base:   https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: mips-randconfig-r012-20200629 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project a28d38a6bca1726d56c9b373f4c7dc5264fc7716)
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 errors (new ones prefixed by >>):

>> drivers/clk/ingenic/x1000-cgu.c:83:2: error: expected expression
           WARN();
           ^
   include/asm-generic/bug.h:127:34: note: expanded from macro 'WARN'
           int __ret_warn_on = !!(condition);                              \
                                           ^
>> drivers/clk/ingenic/x1000-cgu.c:83:2: error: expected expression
   include/asm-generic/bug.h:129:3: note: expanded from macro 'WARN'
                   __WARN_printf(TAINT_WARN, format);                      \
                   ^
   include/asm-generic/bug.h:88:51: note: expanded from macro '__WARN_printf'
                   warn_slowpath_fmt(__FILE__, __LINE__, taint, arg);      \
                                                                   ^
   2 errors generated.

vim +83 drivers/clk/ingenic/x1000-cgu.c

    62	
    63	static unsigned long x1000_otg_phy_recalc_rate(struct clk_hw *hw,
    64							unsigned long parent_rate)
    65	{
    66		u32 usbpcr1;
    67		unsigned refclk_div;
    68	
    69		usbpcr1 = readl(cgu->base + CGU_REG_USBPCR1);
    70		refclk_div = usbpcr1 & USBPCR1_REFCLKDIV_MASK;
    71	
    72		switch (refclk_div) {
    73		case USBPCR1_REFCLKDIV_12:
    74			return 12000000;
    75	
    76		case USBPCR1_REFCLKDIV_24:
    77			return 48000000;
    78	
    79		case USBPCR1_REFCLKDIV_48:
    80			return 48000000;
    81		}
    82	
  > 83		WARN();
    84		return parent_rate;
    85	}
    86	

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

  parent reply	other threads:[~2020-06-29 19:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 17:15 [PATCH v2 0/3] Add functions to operate USB PHY related clock 周琰杰 (Zhou Yanjie)
2020-06-28 17:15 ` [PATCH v2 1/3] clk: JZ4780: Add functions for enable and disable USB PHY 周琰杰 (Zhou Yanjie)
2020-06-29  9:28   ` kernel test robot
2020-06-29 11:43   ` kernel test robot
2020-06-28 17:15 ` [PATCH v2 2/3] clk: JZ4780: Reformat the code to align it 周琰杰 (Zhou Yanjie)
2020-06-28 17:15 ` [PATCH v2 3/3] clk: X1000: Add support for calculat REFCLK of USB PHY 周琰杰 (Zhou Yanjie)
2020-06-29 10:26   ` kernel test robot
2020-06-29 13:20   ` kernel test robot [this message]
2020-06-29 15:40   ` kernel test robot

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=202006292101.07ZcR1aN%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aric.pzqi@ingenic.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dongsheng.qiu@ingenic.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=paul@crapouillou.net \
    --cc=rick.tyliu@ingenic.com \
    --cc=sboyd@kernel.org \
    --cc=sernia.zhou@foxmail.com \
    --cc=yanfei.li@ingenic.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox