linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: kernel test robot <lkp@intel.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	oe-kbuild-all@lists.linux.dev, linux-rtc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mips@vger.kernel.org, od@opendingux.net
Subject: Re: [PATCH v2 4/4] rtc: jz4740: Support for fine-tuning the RTC clock
Date: Sat, 29 Oct 2022 12:52:11 +0100	[thread overview]
Message-ID: <ZMJIKR.M45DG9N62IHH1@crapouillou.net> (raw)
In-Reply-To: <202210291633.edaeueJF-lkp@intel.com>

Hi Bot,

Well this report is on my RFC patch so I consider the patchset to still 
be valid.

If I can actually test my RFC patch I'll send it again with this bug 
fixed.

Cheers,
-Paul


Le sam. 29 oct. 2022 à 16:51:53 +0800, kernel test robot 
<lkp@intel.com> a écrit :
> Hi Paul,
> 
> I love your patch! Yet something to improve:
> 
> [auto build test ERROR on abelloni/rtc-next]
> [also build test ERROR on robh/for-next linus/master v6.1-rc2 
> next-20221028]
> [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#_base_tree_information]
> 
> url:    
> https://github.com/intel-lab-lkp/linux/commits/Paul-Cercueil/rtc-ingenic-various-updates/20221029-065805
> base:   
> https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git 
> rtc-next
> patch link:    
> https://lore.kernel.org/r/20221028225519.89210-5-paul%40crapouillou.net
> patch subject: [PATCH v2 4/4] rtc: jz4740: Support for fine-tuning 
> the RTC clock
> config: sparc64-randconfig-c043-20221028
> compiler: sparc64-linux-gcc (GCC) 12.1.0
> 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
>         # 
> https://github.com/intel-lab-lkp/linux/commit/b73614c39710acaff7977b8d3ec935105cf59757
>         git remote add linux-review 
> https://github.com/intel-lab-lkp/linux
>         git fetch --no-tags linux-review 
> Paul-Cercueil/rtc-ingenic-various-updates/20221029-065805
>         git checkout b73614c39710acaff7977b8d3ec935105cf59757
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 
> make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/rtc/
> 
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from <command-line>:
>    drivers/rtc/rtc-jz4740.c: In function 'jz4740_rtc_set_offset':
>>>  include/linux/compiler_types.h:357:45: error: call to 
>>> '__compiletime_assert_248' declared with attribute error: 
>>> FIELD_PREP: value too large for the field
>      357 |         _compiletime_assert(condition, msg, 
> __compiletime_assert_, __COUNTER__)
>          |                                             ^
>    include/linux/compiler_types.h:338:25: note: in definition of 
> macro '__compiletime_assert'
>      338 |                         prefix ## suffix();                
>              \
>          |                         ^~~~~~
>    include/linux/compiler_types.h:357:9: note: in expansion of macro 
> '_compiletime_assert'
>      357 |         _compiletime_assert(condition, msg, 
> __compiletime_assert_, __COUNTER__)
>          |         ^~~~~~~~~~~~~~~~~~~
>    include/linux/build_bug.h:39:37: note: in expansion of macro 
> 'compiletime_assert'
>       39 | #define BUILD_BUG_ON_MSG(cond, msg) 
> compiletime_assert(!(cond), msg)
>          |                                     ^~~~~~~~~~~~~~~~~~
>    include/linux/bitfield.h:68:17: note: in expansion of macro 
> 'BUILD_BUG_ON_MSG'
>       68 |                 
> BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ?           \
>          |                 ^~~~~~~~~~~~~~~~
>    include/linux/bitfield.h:114:17: note: in expansion of macro 
> '__BF_FIELD_CHECK'
>      114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, 
> "FIELD_PREP: ");    \
>          |                 ^~~~~~~~~~~~~~~~
>    drivers/rtc/rtc-jz4740.c:256:17: note: in expansion of macro 
> 'FIELD_PREP'
>      256 |         nc1hz = FIELD_PREP(JZ_RTC_REGULATOR_NC1HZ_MASK, 
> nc1hz);
>          |                 ^~~~~~~~~~
> 
> 
> vim +/__compiletime_assert_248 +357 include/linux/compiler_types.h
> 
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  343
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  344  #define 
> _compiletime_assert(condition, msg, prefix, suffix) \
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  345  
> 	__compiletime_assert(condition, msg, prefix, suffix)
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  346
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  347  /**
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  348   * compiletime_assert - 
> break build and emit msg if condition is false
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  349   * @condition: a 
> compile-time constant condition to check
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  350   * @msg:       a message 
> to emit if condition is false
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  351   *
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  352   * In tradition of POSIX 
> assert, this macro will break the build if the
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  353   * supplied condition is 
> *false*, emitting the supplied error message if the
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  354   * compiler has support 
> to do so.
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  355   */
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  356  #define 
> compiletime_assert(condition, msg) \
> eb5c2d4b45e3d2 Will Deacon 2020-07-21 @357  
> 	_compiletime_assert(condition, msg, __compiletime_assert_, 
> __COUNTER__)
> eb5c2d4b45e3d2 Will Deacon 2020-07-21  358
> 
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp



  reply	other threads:[~2022-10-29 11:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-28 22:55 [PATCH v2 0/4] rtc: ingenic: various updates Paul Cercueil
2022-10-28 22:55 ` [PATCH v2 1/4] dt-bindings: rtc: ingenic: Rework compatible strings and add #clock-cells Paul Cercueil
2022-10-31 19:23   ` Rob Herring
2022-10-31 19:40     ` Paul Cercueil
2022-11-01 17:32       ` Rob Herring
2022-10-28 22:55 ` [PATCH v2 2/4] rtc: jz4740: Use readl_poll_timeout Paul Cercueil
2022-10-28 22:55 ` [PATCH v2 3/4] rtc: jz4740: Register clock provider for the CLK32K pin Paul Cercueil
2022-10-28 22:55 ` [PATCH v2 4/4] rtc: jz4740: Support for fine-tuning the RTC clock Paul Cercueil
2022-10-29  8:51   ` kernel test robot
2022-10-29 11:52     ` Paul Cercueil [this message]
2022-11-02 17:40 ` [PATCH v2 0/4] rtc: ingenic: various updates Alexandre Belloni

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=ZMJIKR.M45DG9N62IHH1@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=od@opendingux.net \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh+dt@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).