From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49DB626C399 for ; Tue, 20 May 2025 11:38:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747741113; cv=none; b=tjCaPlpf2NI4KZy+ikfRVRG6rwFA1jaTSm8BMi12F1UAKOHovjx5L1ZYNPjtsQedl3AtnacDbyFtSnhgUUTA/qL8T67NrU72E66zMJCo3fN8YBmYLq9FV14OiiTEQZALV0A66NA9STYuiovjgMtM9Rg4hy/ZTItaMliLVyqfsYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747741113; c=relaxed/simple; bh=onzNthu//TqCk8fXRF+KW7Sh7xAH/kuJP5cNr1Ekph8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SQwjI3MofjezlHCMZ37Gh7pRJjwq1DwYx4TmzePGVUltBzsfDZ/OnVuRdJuwneGakvfx/ATg0I9+VqPAfww+uaw21EomtzM+Hgdb0wI0T8YKJxrjnMNIRu8P5DrzBFgVVWF13drsFpbNVYqc0baPaOWmh6tV1bag0nVLGdg9Jhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XF7uq4K3; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XF7uq4K3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747741112; x=1779277112; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=onzNthu//TqCk8fXRF+KW7Sh7xAH/kuJP5cNr1Ekph8=; b=XF7uq4K3Mcni9fhXhyVIgnh+CqTdvvTbpzSNi0VWCFgOWLfjExyX/L8x xwr2UahAqVBb4VRmu4SGxCj+71HWEVfFf970aHN2jXshDtGFli9y+FcJk C7yABsbpsZu1b3P6nTV9zjWQlA/hp0xDUzBEPZm8a+Dju+pZL7kSg+leY XclZiVsnXP+6vV0rtFk/+DuQDBz4O+7Lnv+v+Z+vyn3Rr8c3xU8FgygsN VoWofOoHDTLaqWS3zKnenfI4K2W/zY+ysnTpjeQ4VEL8cUFl4IQKkPIyB YLjjelf+OR7lFYr6HK4ogTCxYwiMMzZ3Gn6KIDZHZHlnYKt9wMUhCVSP9 Q==; X-CSE-ConnectionGUID: j4dGdskVQRGcvUMnfPajRQ== X-CSE-MsgGUID: ydA7VUP8TBGkbjTTM4xDgA== X-IronPort-AV: E=McAfee;i="6700,10204,11438"; a="67077656" X-IronPort-AV: E=Sophos;i="6.15,302,1739865600"; d="scan'208";a="67077656" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2025 04:38:30 -0700 X-CSE-ConnectionGUID: DrZeBAEoRoSZV2ne/NJw+A== X-CSE-MsgGUID: 40bjcX6FQiOqBb0EKDbWuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,302,1739865600"; d="scan'208";a="139567031" Received: from lkp-server01.sh.intel.com (HELO 1992f890471c) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 20 May 2025 04:38:28 -0700 Received: from kbuild by 1992f890471c with local (Exim 4.96) (envelope-from ) id 1uHLIg-000MWW-0l; Tue, 20 May 2025 11:38:26 +0000 Date: Tue, 20 May 2025 19:38:05 +0800 From: kernel test robot To: Siddarth Gundu , geert@linux-m68k.org Cc: oe-kbuild-all@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Siddarth Gundu Subject: Re: [PATCH] m68k: apollo: replace strcpy() with strscpy() Message-ID: <202505201919.YX6T8TcK-lkp@intel.com> References: <20250514052327.96537-1-siddarthsgml@gmail.com> Precedence: bulk X-Mailing-List: linux-m68k@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250514052327.96537-1-siddarthsgml@gmail.com> Hi Siddarth, kernel test robot noticed the following build errors: [auto build test ERROR on geert-m68k/for-next] [also build test ERROR on geert-m68k/for-linus gerg-m68knommu/for-next linus/master v6.15-rc7 next-20250516] [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/Siddarth-Gundu/m68k-apollo-replace-strcpy-with-strscpy/20250514-132427 base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next patch link: https://lore.kernel.org/r/20250514052327.96537-1-siddarthsgml%40gmail.com patch subject: [PATCH] m68k: apollo: replace strcpy() with strscpy() config: m68k-defconfig (https://download.01.org/0day-ci/archive/20250520/202505201919.YX6T8TcK-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250520/202505201919.YX6T8TcK-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/202505201919.YX6T8TcK-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/build_bug.h:5, from include/linux/init.h:5, from arch/m68k/apollo/config.c:2: arch/m68k/apollo/config.c: In function 'dn_get_model': >> include/linux/compiler.h:197:62: error: static assertion failed: "must be array" 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/string.h:80:47: note: in expansion of macro '__must_be_array' 80 | sized_strscpy(dst, src, sizeof(dst) + __must_be_array(dst) + \ | ^~~~~~~~~~~~~~~ include/linux/args.h:25:24: note: in expansion of macro '__strscpy0' 25 | #define __CONCAT(a, b) a ## b | ^ include/linux/args.h:26:27: note: in expansion of macro '__CONCAT' 26 | #define CONCATENATE(a, b) __CONCAT(a, b) | ^~~~~~~~ include/linux/string.h:114:9: note: in expansion of macro 'CONCATENATE' 114 | CONCATENATE(__strscpy, COUNT_ARGS(__VA_ARGS__))(dst, src, __VA_ARGS__) | ^~~~~~~~~~~ arch/m68k/apollo/config.c:222:5: note: in expansion of macro 'strscpy' 222 | strscpy(model, "Apollo "); | ^~~~~~~ vim +197 include/linux/compiler.h 230fa253df6352a Christian Borntraeger 2014-11-25 193 cb7380de9e4cbc9 Kees Cook 2025-02-05 194 #ifdef __CHECKER__ cb7380de9e4cbc9 Kees Cook 2025-02-05 195 #define __BUILD_BUG_ON_ZERO_MSG(e, msg) (0) cb7380de9e4cbc9 Kees Cook 2025-02-05 196 #else /* __CHECKER__ */ cb7380de9e4cbc9 Kees Cook 2025-02-05 @197 #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);})) cb7380de9e4cbc9 Kees Cook 2025-02-05 198 #endif /* __CHECKER__ */ cb7380de9e4cbc9 Kees Cook 2025-02-05 199 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki