All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: Re: [PATCH next resend 5/5] minmax: Relax check to allow comparison between int and small unsigned constants.
Date: Sun, 30 Jul 2023 09:59:40 +0800	[thread overview]
Message-ID: <202307300944.zJptaW4B-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "low confidence static check first_new_problem: drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:97:20: sparse: sparse: too long token expansion"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <48c2cd0407f14859919d4fcbe526234a@AcuMS.aculab.com>
References: <48c2cd0407f14859919d4fcbe526234a@AcuMS.aculab.com>
TO: David Laight <David.Laight@ACULAB.COM>
TO: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
TO: "'Andy Shevchenko'" <andriy.shevchenko@linux.intel.com>
TO: "'Andrew Morton'" <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: "'Matthew Wilcox (Oracle)'" <willy@infradead.org>
TO: "'Christoph Hellwig'" <hch@infradead.org>
TO: "'Jason A. Donenfeld'" <Jason@zx2c4.com>

Hi David,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on linus/master]
[cannot apply to next-20230725]
[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/David-Laight/minmax-Allow-min-max-clamp-if-the-arguments-have-the-same-signedness/20230725-204940
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/48c2cd0407f14859919d4fcbe526234a%40AcuMS.aculab.com
patch subject: [PATCH next resend 5/5] minmax: Relax check to allow comparison between int and small unsigned constants.
:::::: branch date: 5 days ago
:::::: commit date: 5 days ago
config: s390-randconfig-r071-20230730 (https://download.01.org/0day-ci/archive/20230730/202307300944.zJptaW4B-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230730/202307300944.zJptaW4B-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/r/202307300944.zJptaW4B-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:97:20: sparse: sparse: too long token expansion
>> drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:97:20: sparse: sparse: too long token expansion
   drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c: note: in included file (through include/drm/drm_plane.h, include/drm/drm_crtc.h, drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h, ...):
   include/drm/drm_color_mgmt.h:52:16: sparse: sparse: bad integer constant expression
   include/drm/drm_color_mgmt.h:52:16: sparse: sparse: static assertion failed: "clamp() low limit (typeof(val))(0) greater than high limit (typeof(val))(max)"
   drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c: note: in included file (through drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, drivers/gpu/drm/amd/amdgpu/amdgpu.h):
   drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:315:49: sparse: sparse: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB"
   drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:319:49: sparse: sparse: static assertion failed: "amd_sriov_msg_pf2vf_info must be 1 KB"

vim +97 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c

7301757ea1fbea Shashank Sharma 2021-08-20   89  
d38ceaf99ed015 Alex Deucher    2015-04-20   90  	/* limit reference * post divider to a maximum */
7301757ea1fbea Shashank Sharma 2021-08-20   91  	if (adev->family == AMDGPU_FAMILY_SI)
7301757ea1fbea Shashank Sharma 2021-08-20   92  		ref_div_max = min(100 / post_div, ref_div_max);
7301757ea1fbea Shashank Sharma 2021-08-20   93  	else
d38ceaf99ed015 Alex Deucher    2015-04-20   94  		ref_div_max = min(128 / post_div, ref_div_max);
d38ceaf99ed015 Alex Deucher    2015-04-20   95  
d38ceaf99ed015 Alex Deucher    2015-04-20   96  	/* get matching reference and feedback divider */
d38ceaf99ed015 Alex Deucher    2015-04-20  @97  	*ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max);
d38ceaf99ed015 Alex Deucher    2015-04-20   98  	*fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den);
d38ceaf99ed015 Alex Deucher    2015-04-20   99  
d38ceaf99ed015 Alex Deucher    2015-04-20  100  	/* limit fb divider to its maximum */
d38ceaf99ed015 Alex Deucher    2015-04-20  101  	if (*fb_div > fb_div_max) {
d38ceaf99ed015 Alex Deucher    2015-04-20  102  		*ref_div = DIV_ROUND_CLOSEST(*ref_div * fb_div_max, *fb_div);
d38ceaf99ed015 Alex Deucher    2015-04-20  103  		*fb_div = fb_div_max;
d38ceaf99ed015 Alex Deucher    2015-04-20  104  	}
d38ceaf99ed015 Alex Deucher    2015-04-20  105  }
d38ceaf99ed015 Alex Deucher    2015-04-20  106  

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

             reply	other threads:[~2023-07-30  2:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-30  1:59 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-25 10:00 [PATCH next 0/5] minmax: Relax type checks in min() and max() David Laight
2023-07-25 11:54 ` [PATCH next resend 5/5] minmax: Relax check to allow comparison between int and small unsigned constants David Laight
2023-07-25 19:36   ` kernel test robot
2023-07-26  9:29     ` David Laight
2023-07-27  5:20   ` kernel test robot
2023-07-28  7:15   ` kernel test robot
2023-07-28  8:08   ` 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=202307300944.zJptaW4B-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@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.