All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuan-Wei Chiu <visitorckw@gmail.com>,
	tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com, x86@kernel.org, jk@ozlabs.org,
	joel@jms.id.au, eajames@linux.ibm.com, andrzej.hajda@intel.com,
	neil.armstrong@linaro.org, rfoss@kernel.org,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch,
	dmitry.torokhov@gmail.com, mchehab@kernel.org,
	awalls@md.metrocast.net, hverkuil@xs4all.nl,
	miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
	louis.peens@corigine.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
	parthiban.veerasooran@microchip.com,
	arend.vanspriel@broadcom.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2 18/18] bitops: Add parity() macro for automatic type-based selection
Date: Sun, 2 Mar 2025 10:50:50 +0800	[thread overview]
Message-ID: <202503021043.2qaG7vXF-lkp@intel.com> (raw)
In-Reply-To: <20250301142409.2513835-19-visitorckw@gmail.com>

Hi Kuan-Wei,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20250228]
[cannot apply to akpm-mm/mm-nonmm-unstable dtor-input/next dtor-input/for-linus tty/tty-testing tty/tty-next tty/tty-linus wireless-next/main wireless/main mtd/mtd/next mtd/mtd/fixes linus/master v6.14-rc4 v6.14-rc3 v6.14-rc2 v6.14-rc4]
[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/Kuan-Wei-Chiu/lib-parity-Add-__builtin_parity-fallback-implementations/20250301-222957
base:   next-20250228
patch link:    https://lore.kernel.org/r/20250301142409.2513835-19-visitorckw%40gmail.com
patch subject: [PATCH v2 18/18] bitops: Add parity() macro for automatic type-based selection
config: x86_64-buildonly-randconfig-001-20250302 (https://download.01.org/0day-ci/archive/20250302/202503021043.2qaG7vXF-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250302/202503021043.2qaG7vXF-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/oe-kbuild-all/202503021043.2qaG7vXF-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c:13:
   In file included from include/drm/bridge/dw_hdmi.h:9:
   In file included from include/sound/hdmi-codec.h:16:
   In file included from include/sound/soc.h:26:
   In file included from include/sound/ac97_codec.h:17:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2287:
   include/linux/vmstat.h:493:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     493 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     494 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:507:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     507 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:513:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     513 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     514 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c:173:12: error: expected identifier or '('
     173 | static u32 parity(u32 sample)
         |            ^
   include/linux/bitops.h:343:2: note: expanded from macro 'parity'
     343 | ({                                      \
         |  ^
>> drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c:173:12: error: expected ')'
   include/linux/bitops.h:343:2: note: expanded from macro 'parity'
     343 | ({                                      \
         |  ^
   drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c:173:12: note: to match this '('
   include/linux/bitops.h:342:23: note: expanded from macro 'parity'
     342 | #define parity(val)                     \
         |                                         ^
   4 warnings and 2 errors generated.


vim +173 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c

7ed6c665e19d4c drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c          Russell King  2013-11-07  172  
7ed6c665e19d4c drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c          Russell King  2013-11-07 @173  static u32 parity(u32 sample)
7ed6c665e19d4c drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c          Russell King  2013-11-07  174  {
251332255cc5da drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c Kuan-Wei Chiu 2025-03-01  175  	return parity32(sample) << 27;
7ed6c665e19d4c drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c          Russell King  2013-11-07  176  }
7ed6c665e19d4c drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c          Russell King  2013-11-07  177  

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

  reply	other threads:[~2025-03-02  2:51 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-01 14:23 [PATCH v2 00/18] Introduce and use generic parity16/32/64 helper Kuan-Wei Chiu
2025-03-01 14:23 ` Kuan-Wei Chiu
2025-03-01 14:23 ` [PATCH v2 01/18] lib/parity: Add __builtin_parity() fallback implementations Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-02  3:10   ` Yury Norov
2025-03-02  3:10     ` Yury Norov
2025-03-02  8:20     ` Kuan-Wei Chiu
2025-03-02  8:20       ` Kuan-Wei Chiu
2025-03-02 16:02       ` Yury Norov
2025-03-02 16:02         ` Yury Norov
2025-03-02 17:29         ` Kuan-Wei Chiu
2025-03-02 17:29           ` Kuan-Wei Chiu
2025-03-02 19:09           ` David Laight
2025-03-02 19:09             ` David Laight
2025-03-03  2:47             ` Kuan-Wei Chiu
2025-03-03  2:47               ` Kuan-Wei Chiu
2025-03-03 12:41               ` David Laight
2025-03-03 12:41                 ` David Laight
2025-03-03 15:43               ` Yury Norov
2025-03-03 15:43                 ` Yury Norov
2025-03-03 16:54                 ` Kuan-Wei Chiu
2025-03-03 16:54                   ` Kuan-Wei Chiu
2025-03-03 15:25             ` Yury Norov
2025-03-03 15:25               ` Yury Norov
2025-03-03 15:15           ` Yury Norov
2025-03-03 15:15             ` Yury Norov
2025-03-03 19:37             ` David Laight
2025-03-03 19:37               ` David Laight
2025-03-01 14:23 ` [PATCH v2 02/18] bitops: Optimize parity8() using __builtin_parity() Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-01 14:23 ` [PATCH v2 03/18] bitops: Add parity16(), parity32(), and parity64() helpers Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-05 16:20   ` Simon Horman
2025-03-05 16:20     ` Simon Horman
2025-03-01 14:23 ` [PATCH v2 04/18] media: media/test_drivers: Replace open-coded parity calculation with parity8() Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-01 14:23 ` [PATCH v2 05/18] media: pci: cx18-av-vbi: " Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-01 14:23 ` [PATCH v2 06/18] media: saa7115: " Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-01 14:23 ` [PATCH v2 07/18] serial: max3100: " Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-01 14:23 ` [PATCH v2 08/18] lib/bch: Replace open-coded parity calculation with parity32() Kuan-Wei Chiu
2025-03-01 14:23   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 09/18] Input: joystick - " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 10/18] net: ethernet: oa_tc6: " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 11/18] wifi: brcm80211: " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 12/18] drm/bridge: dw-hdmi: " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 13/18] mtd: ssfdc: " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 14/18] fsi: i2cr: " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 15/18] fsi: i2cr: Replace open-coded parity calculation with parity64() Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 16/18] Input: joystick - " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 17/18] nfp: bpf: " Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-01 14:24 ` [PATCH v2 18/18] bitops: Add parity() macro for automatic type-based selection Kuan-Wei Chiu
2025-03-01 14:24   ` Kuan-Wei Chiu
2025-03-02  2:50   ` kernel test robot [this message]
2025-03-02  7:39   ` 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=202503021043.2qaG7vXF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrzej.hajda@intel.com \
    --cc=arend.vanspriel@broadcom.com \
    --cc=awalls@md.metrocast.net \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=davem@davemloft.net \
    --cc=dmitry.torokhov@gmail.com \
    --cc=eajames@linux.ibm.com \
    --cc=edumazet@google.com \
    --cc=hverkuil@xs4all.nl \
    --cc=jk@ozlabs.org \
    --cc=joel@jms.id.au \
    --cc=llvm@lists.linux.dev \
    --cc=louis.peens@corigine.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mchehab@kernel.org \
    --cc=mingo@redhat.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=parthiban.veerasooran@microchip.com \
    --cc=rfoss@kernel.org \
    --cc=richard@nod.at \
    --cc=simona@ffwll.ch \
    --cc=tglx@linutronix.de \
    --cc=tzimmermann@suse.de \
    --cc=vigneshr@ti.com \
    --cc=visitorckw@gmail.com \
    --cc=x86@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 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.