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 841E3C021B8 for ; Sat, 1 Mar 2025 18:08:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A36A56B0082; Sat, 1 Mar 2025 13:08:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9E6DB6B0083; Sat, 1 Mar 2025 13:08:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8880C6B0085; Sat, 1 Mar 2025 13:08:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6AB286B0082 for ; Sat, 1 Mar 2025 13:08:19 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id DA9EBB79C3 for ; Sat, 1 Mar 2025 18:08:18 +0000 (UTC) X-FDA: 83173766676.22.FB0A72D Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by imf07.hostedemail.com (Postfix) with ESMTP id DA0174000F for ; Sat, 1 Mar 2025 18:08:15 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cxaytZT1; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 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=1740852496; 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=rlwZF+Kql/K8OPBzJ3E8tqYZObt62NzUNq8WrkCcibo=; b=x9OVGa2W+P9mR0sX+OmB6x4lJDcm0hrQd1CUP40UK/KAr0/GN/RZ0xbMia4K36UE8A2ZxY V/8wuaW3glLswSmbY4wExYCaSTBEk3Y8xSOdaueWJuKFZPKH9Pko/d0fUOa38Vkb2jGrxM 1eR3hTt+0N+e5RS7k1pIzhTLSq0QLXg= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cxaytZT1; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740852496; a=rsa-sha256; cv=none; b=Qu5by88LtZtLimv3ydbZKiQZ9aOjo+ezU/Oq0Ic8+2jcJx3PFsae0UXvAbrRi0v+RCf5it bUePPE8JDRlBUoCXskE5K1TDMMvt4vdUvQWNmF9rUhn/UvGXI+6zRIk07rJsIVBJABCqJd srStvyz0VQ/PcGwjfO0pxnrM/d0Y7Qc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740852496; x=1772388496; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PiX1wu8b+6I7R3c0MeOnoxbnQpJhEI+8sVFbihVVVZs=; b=cxaytZT1Xy2WWmzSuCvAFWzRbVO0PS0ITYvqTc+KFpYGsrURj3j30Hh8 5OTKvyU6ltN3wp/Ok8XNFLS6vhHnIhNcQRolvvGMN+SKwSC7Dz8mytVQ/ HWW6N7pn/lt+NsWHbnyhqtpf3cYyK3KL58WQT1XmNzG444hTzc83HAMR1 ImMsyWlxs/SJy8sKnKCEQIfp6oaWUFHfoSuf9WbSpqivPuByUS2/5xJkr KTBWXCoLlBtBP6binnM2xuS0Niu+6v6dD4IMsTF4eobRNuV2jRVTMld95 LqTxIyoNlk6HI1ln9jpQ1/esD9xNaJjmN16yue5qdMbpcT+gix2P5kmbV g==; X-CSE-ConnectionGUID: /rjaZ+8sSniKqyDNpNSTeg== X-CSE-MsgGUID: 6YYbviZWTAuQnRql6ALOxg== X-IronPort-AV: E=McAfee;i="6700,10204,11360"; a="59179226" X-IronPort-AV: E=Sophos;i="6.13,325,1732608000"; d="scan'208";a="59179226" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2025 10:08:14 -0800 X-CSE-ConnectionGUID: 1XS6H88mTiK5hbuSJhngvA== X-CSE-MsgGUID: dbBruqprRpacg8LqLQgG9w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,325,1732608000"; d="scan'208";a="117404407" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 01 Mar 2025 10:08:09 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1toRFu-000GXg-2a; Sat, 01 Mar 2025 18:08:06 +0000 Date: Sun, 2 Mar 2025 02:07:52 +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: llvm@lists.linux.dev, 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: <202503020112.24wZ1Wcs-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-Stat-Signature: wxz3degjk4ghsmw1xrftmjrhkqwnefrp X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: DA0174000F X-Rspam-User: X-HE-Tag: 1740852495-437880 X-HE-Meta: U2FsdGVkX1+xrxHGlg9lNFmuDjdrTuNNo3vuEFJYl2UQK/82sIKzlLfRp6AoB2sser/8+8xWADMZdQzPUT5jZMzxkpxC4FuVQ46kVTpnaadFn/Rl55yliLX7LI9ntjRLtjtQiS7S8rpuF50SRhIdeh+fbLSelJOg4D7PQeA/IdElI3gn0nonnWbE5YlK3kyYCDLalCjBcdrAIEXUZsdk/HP6zeTLFuCTUkSVi+aHYQChD/FKNS2UBshVrZz4ivMyZ1Xj7L1E/xBzObvo+EVLwwlaO3GO0Y2N77fVvLSFrA6jAvSQ/S+uq3f8M1Q8fg8v5azkFzPspq5nIxP/DZssg7w5yPecjjqriw4khhEMXKWmaFBxwCthkcbbWRDdGSbh99gTfcGROeCW2EbptzUL2ohnDFnH5hiE7DFUh3CsQfN1t+Rdt42AX6rNixv1D9bUSWPbFDqRrDEN40bBs8l/8CGNv/MHNzh3D2ZVIRHnhnlc1uFAaJEueJvoR9hE2MV90stFS5kq/AQJPMNXbuLxDaAEs6ICH6nPlpve7n96YwakyfCYxcq9Mfks0n2RMuWC3E6D6Asd8/aL216dtCk6Xh4gSldsARowzMAfJyaVjA1sJ5LXQKQ6cMyhoztkuKVZ0EObEjXIMwj03WPqubPxe69/KowCUFBrRtpux42eCxDMt0Bp3eZs8WoT2wP59PHgOYSYPisBSUmPOD+tnlaPbTPAbLHjcb/YZKngVjKH/fybi9dC0eUT48dlne00FTHJ724WVHDqDwuwE3sK91oM2pZZkaq27NHELTBrboBoiIqB1vw1zr4QrR3oaaElyeHC4fBV5Z2OE4hRa5ZhhqA3u6NZsbru3mi2Iws6ccdLnA+VkPOx2vu6PAfHu54L86cPKt1qRG9VNwh/AUqCGRM7HE3UvGFnbZA1VYxWdLmayvIxMqjAUF47dmw4ifjZvW1wOTC/wyKNkhg4DM7VAOH 3BveEkON MCqkJkXKiVthRCnWH/65jrmz0QoClRkqcicH5+UVqjxENlT+lF78t6j9VHGC87BsQOHdnWrPkbnSIC3uBaBohYv/g5eBpC90G3Pw8P7clqdrXzsTIUk5T2aHfMBRmuwsU6MSuyVfaPt12a2Z4LdwX1OvZioxs0t34ikXSsJ7k6za7EntAihhhvEvm/0pBYIGPZ0ND8euUk0CJiOtQKXcbcq+05I0AmvEDUVaRUpQgxRjcn+o9wWZFvxFMGhCYc946wcPUn36P3Z8v+/W+ZY109hDRhl8ztUw2EFVr3sh/B3izCBmP0U8oobG9mTb816qN+U9S2aA46FlEI8oZCwKFkOeH31r+cL4YZsWdibLnXnh5BRVJGIYxTXtkc0ClZIpTSlG24BxtCELxUBmeRDARDpEL3p8Uz1chbOEb+EptSeHvZ/I5lQ2NGlKFAEqstceoORLfegx3qPn7wpTYU89qJusYiToMVDEVjsFJhPEbYKJjSZY= 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: arm-randconfig-004-20250301 (https://download.01.org/0day-ci/archive/20250302/202503020112.24wZ1Wcs-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 14170b16028c087ca154878f5ed93d3089a965c6) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250302/202503020112.24wZ1Wcs-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/202503020112.24wZ1Wcs-lkp@intel.com/ All errors (new ones prefixed by >>): lib/test_printf.c:802:17: warning: excess elements in scalar initializer [-Wexcess-initializers] 802 | { 0x41424344, "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:805:17: warning: excess elements in scalar initializer [-Wexcess-initializers] 805 | { 0x41424344, "DCBA (0x44434241)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:808:30: warning: excess elements in scalar initializer [-Wexcess-initializers] 808 | { le32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ lib/test_printf.c:811:30: warning: excess elements in scalar initializer [-Wexcess-initializers] 811 | { be32_to_cpu(0x41424344), "ABCD (0x41424344)", }, | ^~~~~~~~~~~~~~~~~~~ >> lib/test_printf.c:815:30: error: subscripted value is not an array, pointer, or vector 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:52: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ~~~~~^~ >> lib/test_printf.c:815:30: error: subscripted value is not an array, pointer, or vector 815 | fourcc_pointer_test(try_ch, ARRAY_SIZE(try_ch), "%p4ch"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:202:53: note: expanded from macro '__must_be_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 203 | "must be array") | ~~~~~~~~~~~~~~~~ include/linux/compiler.h:201:47: note: expanded from macro '__is_array' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~ include/linux/compiler_types.h:483:74: note: expanded from macro '__same_type' 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^ include/linux/compiler.h:197:79: note: expanded from macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ lib/test_printf.c:816:30: error: subscripted value is not an array, pointer, or vector 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:52: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ~~~~~^~ lib/test_printf.c:816:30: error: subscripted value is not an array, pointer, or vector 816 | fourcc_pointer_test(try_cn, ARRAY_SIZE(try_cn), "%p4cn"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:202:53: note: expanded from macro '__must_be_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 203 | "must be array") | ~~~~~~~~~~~~~~~~ include/linux/compiler.h:201:47: note: expanded from macro '__is_array' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~ include/linux/compiler_types.h:483:74: note: expanded from macro '__same_type' 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^ include/linux/compiler.h:197:79: note: expanded from macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ lib/test_printf.c:817:30: error: subscripted value is not an array, pointer, or vector 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:52: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ~~~~~^~ lib/test_printf.c:817:30: error: subscripted value is not an array, pointer, or vector 817 | fourcc_pointer_test(try_cl, ARRAY_SIZE(try_cl), "%p4cl"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:202:53: note: expanded from macro '__must_be_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 203 | "must be array") | ~~~~~~~~~~~~~~~~ include/linux/compiler.h:201:47: note: expanded from macro '__is_array' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~ include/linux/compiler_types.h:483:74: note: expanded from macro '__same_type' 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^ include/linux/compiler.h:197:79: note: expanded from macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ lib/test_printf.c:818:30: error: subscripted value is not an array, pointer, or vector 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:52: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ~~~~~^~ lib/test_printf.c:818:30: error: subscripted value is not an array, pointer, or vector 818 | fourcc_pointer_test(try_cb, ARRAY_SIZE(try_cb), "%p4cb"); | ^~~~~~~~~~~~~~~~~~ include/linux/array_size.h:11:59: note: expanded from macro 'ARRAY_SIZE' 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:202:53: note: expanded from macro '__must_be_array' 202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 203 | "must be array") | ~~~~~~~~~~~~~~~~ include/linux/compiler.h:201:47: note: expanded from macro '__is_array' 201 | #define __is_array(a) (!__same_type((a), &(a)[0])) | ^~ include/linux/compiler_types.h:483:74: note: expanded from macro '__same_type' 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^ include/linux/compiler.h:197:79: note: expanded from macro '__BUILD_BUG_ON_ZERO_MSG' 197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ 4 warnings and 8 errors generated. vim +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