From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: Re: [PATCH v3 5/5] minmax: Relax check to allow comparison between int and small unsigned constants.
Date: Sat, 5 Aug 2023 07:42:37 +0800 [thread overview]
Message-ID: <202308050722.nnqMDL7A-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence static check first_new_problem: drivers/char/agp/generic.c:746:14: sparse: sparse: too long token expansion"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <b6a49ed73aba427ca8bb433763fa94e9@AcuMS.aculab.com>
References: <b6a49ed73aba427ca8bb433763fa94e9@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>
TO: "'Linus Torvalds'" <torvalds@linux-foundation.org>
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on crng-random/master v6.5-rc4 next-20230804]
[cannot apply to next-20230804 akpm-mm/mm-everything]
[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-Add-min_unsigned-a-b-and-max_unsigned-a-b/20230804-190414
base: linus/master
patch link: https://lore.kernel.org/r/b6a49ed73aba427ca8bb433763fa94e9%40AcuMS.aculab.com
patch subject: [PATCH v3 5/5] minmax: Relax check to allow comparison between int and small unsigned constants.
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
config: x86_64-randconfig-x061-20230730 (https://download.01.org/0day-ci/archive/20230805/202308050722.nnqMDL7A-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230805/202308050722.nnqMDL7A-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/202308050722.nnqMDL7A-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/char/agp/generic.c:746:14: sparse: sparse: too long token expansion
>> drivers/char/agp/generic.c:746:14: sparse: sparse: too long token expansion
--
>> drivers/media/i2c/mt9p031.c:604:17: sparse: sparse: too long token expansion
drivers/media/i2c/mt9p031.c:608:18: sparse: sparse: too long token expansion
vim +746 drivers/char/agp/generic.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 710
^1da177e4c3f41 Linus Torvalds 2005-04-16 711
^1da177e4c3f41 Linus Torvalds 2005-04-16 712 /**
^1da177e4c3f41 Linus Torvalds 2005-04-16 713 * agp_collect_device_status - determine correct agp_cmd from various agp_stat's
^1da177e4c3f41 Linus Torvalds 2005-04-16 714 * @bridge: an agp_bridge_data struct allocated for the AGP host bridge.
^1da177e4c3f41 Linus Torvalds 2005-04-16 715 * @requested_mode: requested agp_stat from userspace (Typically from X)
^1da177e4c3f41 Linus Torvalds 2005-04-16 716 * @bridge_agpstat: current agp_stat from AGP bridge.
^1da177e4c3f41 Linus Torvalds 2005-04-16 717 *
^1da177e4c3f41 Linus Torvalds 2005-04-16 718 * This function will hunt for an AGP graphics card, and try to match
^1da177e4c3f41 Linus Torvalds 2005-04-16 719 * the requested mode to the capabilities of both the bridge and the card.
^1da177e4c3f41 Linus Torvalds 2005-04-16 720 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 721 u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode, u32 bridge_agpstat)
^1da177e4c3f41 Linus Torvalds 2005-04-16 722 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 723 struct pci_dev *device = NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 724 u32 vga_agpstat;
^1da177e4c3f41 Linus Torvalds 2005-04-16 725 u8 cap_ptr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 726
^1da177e4c3f41 Linus Torvalds 2005-04-16 727 for (;;) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 728 device = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, device);
^1da177e4c3f41 Linus Torvalds 2005-04-16 729 if (!device) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 730 printk(KERN_INFO PFX "Couldn't find an AGP VGA controller.\n");
^1da177e4c3f41 Linus Torvalds 2005-04-16 731 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 732 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 733 cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP);
^1da177e4c3f41 Linus Torvalds 2005-04-16 734 if (cap_ptr)
^1da177e4c3f41 Linus Torvalds 2005-04-16 735 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 736 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 737
^1da177e4c3f41 Linus Torvalds 2005-04-16 738 /*
^1da177e4c3f41 Linus Torvalds 2005-04-16 739 * Ok, here we have a AGP device. Disable impossible
^1da177e4c3f41 Linus Torvalds 2005-04-16 740 * settings, and adjust the readqueue to the minimum.
^1da177e4c3f41 Linus Torvalds 2005-04-16 741 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 742 pci_read_config_dword(device, cap_ptr+PCI_AGP_STATUS, &vga_agpstat);
^1da177e4c3f41 Linus Torvalds 2005-04-16 743
^1da177e4c3f41 Linus Torvalds 2005-04-16 744 /* adjust RQ depth */
^1da177e4c3f41 Linus Torvalds 2005-04-16 745 bridge_agpstat = ((bridge_agpstat & ~AGPSTAT_RQ_DEPTH) |
^1da177e4c3f41 Linus Torvalds 2005-04-16 @746 min_t(u32, (requested_mode & AGPSTAT_RQ_DEPTH),
^1da177e4c3f41 Linus Torvalds 2005-04-16 747 min_t(u32, (bridge_agpstat & AGPSTAT_RQ_DEPTH), (vga_agpstat & AGPSTAT_RQ_DEPTH))));
^1da177e4c3f41 Linus Torvalds 2005-04-16 748
^1da177e4c3f41 Linus Torvalds 2005-04-16 749 /* disable FW if it's not supported */
^1da177e4c3f41 Linus Torvalds 2005-04-16 750 if (!((bridge_agpstat & AGPSTAT_FW) &&
^1da177e4c3f41 Linus Torvalds 2005-04-16 751 (vga_agpstat & AGPSTAT_FW) &&
^1da177e4c3f41 Linus Torvalds 2005-04-16 752 (requested_mode & AGPSTAT_FW)))
^1da177e4c3f41 Linus Torvalds 2005-04-16 753 bridge_agpstat &= ~AGPSTAT_FW;
^1da177e4c3f41 Linus Torvalds 2005-04-16 754
^1da177e4c3f41 Linus Torvalds 2005-04-16 755 /* Check to see if we are operating in 3.0 mode */
66bb8bf8b235ba David Mosberger 2005-04-04 756 if (agp_bridge->mode & AGPSTAT_MODE_3_0)
^1da177e4c3f41 Linus Torvalds 2005-04-16 757 agp_v3_parse_one(&requested_mode, &bridge_agpstat, &vga_agpstat);
^1da177e4c3f41 Linus Torvalds 2005-04-16 758 else
^1da177e4c3f41 Linus Torvalds 2005-04-16 759 agp_v2_parse_one(&requested_mode, &bridge_agpstat, &vga_agpstat);
^1da177e4c3f41 Linus Torvalds 2005-04-16 760
^1da177e4c3f41 Linus Torvalds 2005-04-16 761 pci_dev_put(device);
^1da177e4c3f41 Linus Torvalds 2005-04-16 762 return bridge_agpstat;
^1da177e4c3f41 Linus Torvalds 2005-04-16 763 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 764 EXPORT_SYMBOL(agp_collect_device_status);
^1da177e4c3f41 Linus Torvalds 2005-04-16 765
^1da177e4c3f41 Linus Torvalds 2005-04-16 766
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-08-04 23:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-04 23:42 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-09-22 4:55 [PATCH v3 5/5] minmax: Relax check to allow comparison between int and small unsigned constants kernel test robot
2023-08-05 6:13 kernel test robot
2023-08-04 23:42 kernel test robot
2023-08-04 23:32 kernel test robot
2023-08-04 23:32 kernel test robot
2023-08-04 23:11 kernel test robot
2023-08-04 22:40 kernel test robot
2023-08-04 21:49 kernel test robot
2023-08-04 21:48 kernel test robot
2023-08-04 10:50 [PATCH next v3 0/5] minmax: Relax type checks in min() and max() David Laight
2023-08-04 10:56 ` [PATCH v3 5/5] minmax: Relax check to allow comparison between int and small unsigned constants David Laight
2023-08-04 18:14 ` Linus Torvalds
2023-08-07 10:50 ` David Laight
2023-08-07 15:48 ` Linus Torvalds
2023-08-10 8:29 ` David Laight
2023-08-10 19:46 ` Linus Torvalds
2023-08-14 8:04 ` David Laight
2023-08-14 14:51 ` David Laight
2023-08-14 15:29 ` David Laight
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=202308050722.nnqMDL7A-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.