From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCFE8C021B8 for ; Sat, 1 Mar 2025 17:36:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E90A36B0082; Sat, 1 Mar 2025 12:36:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E19376B0083; Sat, 1 Mar 2025 12:36:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C933D6B0085; Sat, 1 Mar 2025 12:36:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id A0CC86B0082 for ; Sat, 1 Mar 2025 12:36:25 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 1B3B3824FE for ; Sat, 1 Mar 2025 17:36:25 +0000 (UTC) X-FDA: 83173686330.22.7C73156 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf15.hostedemail.com (Postfix) with ESMTP id D3910A0006 for ; Sat, 1 Mar 2025 17:36:21 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=d+DhEPuP; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740850583; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=czw8l8aYzYKiHKg1SP1SNof0RUlZPWCbrC1crKEjpOs=; b=rw/1xo3TdWi08qrRlT/fATv3PQ/yZf/hfDvbTRNbFBnmUkHBqrua9oZz5LNahcKNNryDTz G2ZbZwo28oA5e7yKoLtBj9ze7nzlARdgrbtVGqr9YwPEQhQPIxYjgBVqssB0hxnR1YoMbD fH2csv1Z2jLBVwW6ra1Bitw9du4lUHI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740850583; a=rsa-sha256; cv=none; b=sN9fun2lyVMtwIDa2vXmglxH/WTvL4PY4L2/CMBePJYXVhc3t2JBeAVIu8xIkN4k3GH9vV bUzZbsW6Rw+dG5kddM9uyH/2t7cpRp3b7C2a8zI1853opDsKdAy55QP0N3bJ74XP1kZDO9 cGEzZzsQ7vIpUZfX8QLRzJtW9d/Sk2Q= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=d+DhEPuP; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740850582; x=1772386582; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=oIdagQIpwhkmdGuXgy1GsDqb6ilGQu3oH5QJWc0gBrA=; b=d+DhEPuPe+U8c0EqqaO0568ISnSu9+0AahQEGX7J0NVzhJFeU+qrUdbT z4rIc8+DhUoJyF/TRGrzFHs7uMbrUy/E29JWnNThTU87TkVsk165nB9ED ++VXc0gQF2Sd/YYxp9i75P1Lk1NrMp7yJ8vEF58pic4fXnU5cB1hUZhBM hBQiBb7JOBm2CGnFAkt0/j+hSm2W3X9iGvFFxLBCDS5UDBLMIXTNRVuFJ xA1RBzQUZgxjmRaORS46FNHxahMu2xuUFzee8K+F3LP4FKFh11AeIfnFT tA6EREYI48K8IarwnwpqCi1JnrxbuBloQWFCkUdsQDAP19DBdoXa/BFnq g==; X-CSE-ConnectionGUID: yGelZ0FCRB2MVAIS0YSY1g== X-CSE-MsgGUID: Bd/SCMZnRkyaNFm7KGPSAA== X-IronPort-AV: E=McAfee;i="6700,10204,11360"; a="44582803" X-IronPort-AV: E=Sophos;i="6.13,325,1732608000"; d="scan'208";a="44582803" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2025 09:36:20 -0800 X-CSE-ConnectionGUID: o+w+vXi8TxKY+WZRFpz8kw== X-CSE-MsgGUID: aj1Srs8VQdql4BUnb1nc/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="117482624" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa010.jf.intel.com with ESMTP; 01 Mar 2025 09:36:15 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1toQl2-000GUs-06; Sat, 01 Mar 2025 17:36:12 +0000 Date: Sun, 2 Mar 2025 01:35:57 +0800 From: kernel test robot To: Aditya Garg , Petr Mladek , Steven Rostedt , "andriy.shevchenko@linux.intel.com" , Rasmus Villemoes , "senozhatsky@chromium.org" , Jonathan Corbet , Andrew Morton , "apw@canonical.com" , "joe@perches.com" , "dwaipayanray1@gmail.com" , "lukas.bulwahn@gmail.com" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , "linux-doc@vger.kernel.org" , Linux Kernel Mailing List , Hector Martin , Sven Peter , Janne Grunau , Alyssa Rosenzweig , Asahi Linux Mailing List Subject: Re: [PATCH v5] lib/vsprintf: Add support for generic FourCCs by extending %p4cc Message-ID: <202503020121.qsiw3acQ-lkp@intel.com> References: <2C9622E6-A2DB-4681-A971-604C79F9955E@live.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2C9622E6-A2DB-4681-A971-604C79F9955E@live.com> X-Rspamd-Server: rspam02 X-Stat-Signature: s1ntoz9fpgrpimeebre5b584jwu7qdiy X-Rspamd-Queue-Id: D3910A0006 X-Rspam-User: X-HE-Tag: 1740850581-775083 X-HE-Meta: U2FsdGVkX1+HVcjXwyUhG7ieYvP4vsVqDDtJ9lZU7SZQ8CP9+GXkn2oAldzaF10am9ES+cqFPrWjJdxRXosnDVNl9eerXgLI0XSWVZMOIFsw9OPJceWTYZvyHSNADwI6mryDWkrUBU05qPDBbTkykVNfGxvl4ggmYk0kcdU2MPm5fximjHAzCB/V6B4ejJkUkT+3XGUkVJjczGs3wMfieQSipRjyAjLRBkIhJ/ESzHNfgk67HZg77gH1W2FGr6Qwk1xgniuKgAc394xHgo8WoHgPx9LsJT/CsFRKikmQ2E/v/Ll2+lY8l1rNyvZANe2Ohpnc6wIokJ3xDsoquXQUNtQ2RfEQ6rey+STCmf1CEQQPN5ocmz3tx3TYugLZ/X7f4Bjryp/z8J9B1ajByZxOf7UU5m1Bqm+4HPUweeImgUCHtcz/57ZJ2awbI0qEZwaG3Ww5OFA/lxEYLtgVwOXtzV8mLcf6ajO0L14hXU8NxyWtm3BAldcJmZDxvrUgoBE9yhs1bPILG0qQemwpfjNhpYvEs1OmabRCTVFF+6hVH8Jkzkbz7aHtNx7FCfQYsoUqEhAJ82EUTqNbpoxAUE4cHPd/JYiFYkFv5TZwCCDMHrBkUIdrw7V1Tdi8KpXRT3RXBDw3xSU2rjl+D5xsbC6rw0/6rGdPCpTKhZDuAWe3SbKCDTp2F8rvcJdlaTvt9+RwhRTh5yOD4+kdWOQ8K1vacIVnJw9pv5x9420kKZElEcRuYJ5ZkG1xDRppSL35h5GyHy98hTDB6+a6qqAOT4sM8ejK2GEP608GWG3htkE0mqfkDDqtE3QO6g9QbUnNlQ4zRUghJ+Hu0QQZ5lHFOCjwazfh6RcmVmfuyY2ASapxlOpSP4datE6NtIJzFyWz++Y15QLJwjKZUdBmVmkDfss4GIEMqtLXIrsyaa/1C33MJ3dOiDV5980x+aNI6ZCGJFIl1pAHAu18opSFXy/lQg5 j3l9VMe3 3k9/w/lZZuL5q7BdAsxAkDXYske1b7KMH7IshwhPhyQtxjKYbtnkulYbHH8V+nmatq3/ROGGuqU9MjEPnhYCZpVeXNhyybzq8QWZA1Q0YRgxgu4oDEsl+xbc+A6nH8zo1kCSaqkP/Ertm4ERFLRzIt8zTXMauJfxUCr1/11TeYE5OjNOJ34y0CSDm/O2cce5IM4Z/owmQaKZNhgydYU0oq/HkuN70CrvLhR7csQpWjhetFDMhGC2vqC321DEdcPaopl1qoBMCGIV9aTnpQntIrU1NvNMFBgYVQMSWplMQFdRQljJQVvV7boSKPwDb/yVLND4YeiGQmuGTir3AuifwnSnqL0ygHDjY+HjjXyYFUKKbXKA5l4HMnU4yjBfFN3gbxuGb+w5fQH4vGkUdDlWHsUOZEifdmfyWw0fTaVaMJIlKl3AHLpQ7mzCRu4oRrqIEvUNhDSvY4WpogLHLBnmKdZnKDYkle+U9l+o/QK84Clu6SqY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Aditya, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-nonmm-unstable] [also build test ERROR on linus/master v6.14-rc4 next-20250228] [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/Aditya-Garg/lib-vsprintf-Add-support-for-generic-FourCCs-by-extending-p4cc/20250301-003018 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable patch link: https://lore.kernel.org/r/2C9622E6-A2DB-4681-A971-604C79F9955E%40live.com patch subject: [PATCH v5] lib/vsprintf: Add support for generic FourCCs by extending %p4cc config: arc-randconfig-001-20250301 (https://download.01.org/0day-ci/archive/20250302/202503020121.qsiw3acQ-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250302/202503020121.qsiw3acQ-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202503020121.qsiw3acQ-lkp@intel.com/ All error/warnings (new ones prefixed by >>): lib/test_printf.c: In function 'fourcc_pointer': >> lib/test_printf.c:802:17: warning: braces around scalar initializer 802 | { 0x41424344, "ABCD (0x41424344)", }, | ^ lib/test_printf.c:802:17: note: (near initialization for 'try_ch.code') >> lib/test_printf.c:802:31: warning: excess elements in scalar initializer 802 | { 0x41424344, "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:802:31: note: (near initialization for 'try_ch.code') lib/test_printf.c:805:17: warning: braces around scalar initializer 805 | { 0x41424344, "DCBA (0x44434241)", }, | ^ lib/test_printf.c:805:17: note: (near initialization for 'try_cn.code') lib/test_printf.c:805:31: warning: excess elements in scalar initializer 805 | { 0x41424344, "DCBA (0x44434241)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:805:31: note: (near initialization for 'try_cn.code') lib/test_printf.c:808:17: warning: braces around scalar initializer 808 | { le32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^ lib/test_printf.c:808:17: note: (near initialization for 'try_cl.code') lib/test_printf.c:808:44: warning: excess elements in scalar initializer 808 | { le32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:808:44: note: (near initialization for 'try_cl.code') lib/test_printf.c:811:17: warning: braces around scalar initializer 811 | { be32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^ lib/test_printf.c:811:17: note: (near initialization for 'try_cb.code') lib/test_printf.c:811:44: warning: excess elements in scalar initializer 811 | { be32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:811:44: note: (near initialization for 'try_cb.code') In file included from include/linux/kernel.h:16, from lib/test_printf.c:9: >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ lib/test_printf.c:815:37: note: in expansion of macro 'ARRAY_SIZE' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~ In file included from include/linux/build_bug.h:5, from include/linux/init.h:5, from lib/test_printf.c:8: >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:815:37: note: in expansion of macro 'ARRAY_SIZE' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:815:37: note: in expansion of macro 'ARRAY_SIZE' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~ >> lib/test_printf.c:815:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~ | | | struct fourcc_struct lib/test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ lib/test_printf.c:816:37: note: in expansion of macro 'ARRAY_SIZE' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~ >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:816:37: note: in expansion of macro 'ARRAY_SIZE' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:816:37: note: in expansion of macro 'ARRAY_SIZE' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~ lib/test_printf.c:816:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~ | | | struct fourcc_struct lib/test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ lib/test_printf.c:817:37: note: in expansion of macro 'ARRAY_SIZE' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~ >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:817:37: note: in expansion of macro 'ARRAY_SIZE' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:817:37: note: in expansion of macro 'ARRAY_SIZE' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~ lib/test_printf.c:817:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~ | | | struct fourcc_struct lib/test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ lib/test_printf.c:818:37: note: in expansion of macro 'ARRAY_SIZE' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~ >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:818:37: note: in expansion of macro 'ARRAY_SIZE' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ lib/test_printf.c:818:37: note: in expansion of macro 'ARRAY_SIZE' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~ lib/test_printf.c:818:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~ | | | struct fourcc_struct lib/test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ -- test_printf.c: In function 'fourcc_pointer': test_printf.c:802:17: warning: braces around scalar initializer 802 | { 0x41424344, "ABCD (0x41424344)", }, | ^ test_printf.c:802:17: note: (near initialization for 'try_ch.code') test_printf.c:802:31: warning: excess elements in scalar initializer 802 | { 0x41424344, "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ test_printf.c:802:31: note: (near initialization for 'try_ch.code') test_printf.c:805:17: warning: braces around scalar initializer 805 | { 0x41424344, "DCBA (0x44434241)", }, | ^ test_printf.c:805:17: note: (near initialization for 'try_cn.code') test_printf.c:805:31: warning: excess elements in scalar initializer 805 | { 0x41424344, "DCBA (0x44434241)", }, | ^~~~~~~~~~~~~~~~~~~ test_printf.c:805:31: note: (near initialization for 'try_cn.code') test_printf.c:808:17: warning: braces around scalar initializer 808 | { le32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^ test_printf.c:808:17: note: (near initialization for 'try_cl.code') test_printf.c:808:44: warning: excess elements in scalar initializer 808 | { le32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ test_printf.c:808:44: note: (near initialization for 'try_cl.code') test_printf.c:811:17: warning: braces around scalar initializer 811 | { be32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^ test_printf.c:811:17: note: (near initialization for 'try_cb.code') test_printf.c:811:44: warning: excess elements in scalar initializer 811 | { be32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ test_printf.c:811:44: note: (near initialization for 'try_cb.code') In file included from include/linux/kernel.h:16, from test_printf.c:9: >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ test_printf.c:815:37: note: in expansion of macro 'ARRAY_SIZE' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~ In file included from include/linux/build_bug.h:5, from include/linux/init.h:5, from test_printf.c:8: >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:815:37: note: in expansion of macro 'ARRAY_SIZE' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:815:37: note: in expansion of macro 'ARRAY_SIZE' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~ test_printf.c:815:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~ | | | struct fourcc_struct test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ test_printf.c:816:37: note: in expansion of macro 'ARRAY_SIZE' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~ >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:816:37: note: in expansion of macro 'ARRAY_SIZE' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:816:37: note: in expansion of macro 'ARRAY_SIZE' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~ test_printf.c:816:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~ | | | struct fourcc_struct test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ test_printf.c:817:37: note: in expansion of macro 'ARRAY_SIZE' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~ >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:817:37: note: in expansion of macro 'ARRAY_SIZE' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:817:37: note: in expansion of macro 'ARRAY_SIZE' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~ test_printf.c:817:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~ | | | struct fourcc_struct test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ >> include/linux/array_size.h:11:52: error: subscripted value is neither array nor pointer nor vector 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^ test_printf.c:818:37: note: in expansion of macro 'ARRAY_SIZE' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~ >> include/linux/compiler.h:201:56: error: subscripted value is neither array nor pointer nor vector 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^ include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:201:35: note: in expansion of macro '__same_type' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~~~~~~~~~~ include/linux/compiler.h:202:58: note: in expansion of macro '__is_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:818:37: note: in expansion of macro 'ARRAY_SIZE' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~ >> include/linux/compiler.h:197:77: error: expression in static assertion is not an integer 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ test_printf.c:818:37: note: in expansion of macro 'ARRAY_SIZE' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~ test_printf.c:818:29: error: incompatible type for argument 1 of 'fourcc_pointer_test' 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~ | | | struct fourcc_struct test_printf.c:784:68: note: expected 'const struct fourcc_struct *' but argument is of type 'struct fourcc_struct' 784 | static void __init fourcc_pointer_test(const struct fourcc_struct *fc, size_t n, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ vim +/fourcc_pointer_test +815 lib/test_printf.c 792 793 static void __init fourcc_pointer(void) 794 { 795 static const struct fourcc_struct try_cc[] = { 796 { 0x3231564e, "NV12 little-endian (0x3231564e)", }, 797 { 0xb231564e, "NV12 big-endian (0xb231564e)", }, 798 { 0x10111213, ".... little-endian (0x10111213)", }, 799 { 0x20303159, "Y10 little-endian (0x20303159)", }, 800 }; 801 static const struct fourcc_struct try_ch = { > 802 { 0x41424344, "ABCD (0x41424344)", }, 803 }; 804 static const struct fourcc_struct try_cn = { 805 { 0x41424344, "DCBA (0x44434241)", }, 806 }; 807 static const struct fourcc_struct try_cl = { 808 { le32_to_cpu(0x41424344), "ABCD (0x41424344)", }, 809 }; 810 static const struct fourcc_struct try_cb = { 811 { be32_to_cpu(0x41424344), "ABCD (0x41424344)", }, 812 }; 813 814 fourcc_pointer_test(try_cc, ARRAY_SIZE(try_cc), "%p4cc"); > 815 fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); 816 fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); 817 fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); 818 fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); 819 } 820 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki