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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD852C27C76 for ; Sat, 28 Jan 2023 11:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbjA1Lxh (ORCPT ); Sat, 28 Jan 2023 06:53:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233971AbjA1Lxg (ORCPT ); Sat, 28 Jan 2023 06:53:36 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F248322797 for ; Sat, 28 Jan 2023 03:53:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674906814; x=1706442814; h=date:from:to:cc:subject:message-id:mime-version; bh=gUJ+YhFqnsQb2G9YyEizXJMAk1PB8hp4qX7vUYQYUJo=; b=gSyXJmPgkIixngK9kv2FftWQI7WCZBJxVbG25l8jRKqmmchoo9VA4gPE rueEd35JgGy84QHbsl5pMIspCu1LuH6UNSWOF8vd3XUlszUNCKuRdsvqM O1LWlVHDx2SksFzK2TOOI6HdMdQnuLLEWngHtGeZnkt5BwLYMoEBKwbLw Hyc1hZZ5TmJ7/viHMoHwM02/CvbWCqhi6dsGNibfhE/f/o8JiQ5zmZBdE +J7tG/ESe//ZJv4EM36Kx2MJkbXMdVCPMBXR2FyLbpiEqnHH9bszrGf1H AvsFvrCwardhl0EgFEErWgOw/YAYjqH33xn5/GUKPACKrIAp+KbAc4ABr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="329412100" X-IronPort-AV: E=Sophos;i="5.97,254,1669104000"; d="scan'208";a="329412100" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2023 03:53:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="992368744" X-IronPort-AV: E=Sophos;i="5.97,254,1669104000"; d="scan'208";a="992368744" Received: from lkp-server01.sh.intel.com (HELO ffa7f14d1d0f) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 28 Jan 2023 03:53:32 -0800 Received: from kbuild by ffa7f14d1d0f with local (Exim 4.96) (envelope-from ) id 1pLjlv-0000cT-0W; Sat, 28 Jan 2023 11:53:27 +0000 Date: Sat, 28 Jan 2023 19:52:56 +0800 From: kernel test robot To: Dan Williams Cc: oe-kbuild-all@lists.linux.dev, Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , linux-cxl@vger.kernel.org Subject: [cxl:for-6.3/cxl-ram-region 16/18] lib/stackinit_kunit.c:34:13: error: conflicting types for 'range_contains'; have 'bool(char *, size_t, char *, size_t)' {aka '_Bool(char *, unsigned int, char *, unsigned int)'} Message-ID: <202301281924.bar72HY6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git for-6.3/cxl-ram-region head: a7cf664d7e997ac36b0f466af2e2be33464ab598 commit: b879b3c78181c4a89c4a15d6cd7fc75cb1a353a6 [16/18] kernel/range: Uplevel the cxl subsystem's range_contains() helper config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20230128/202301281924.bar72HY6-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=b879b3c78181c4a89c4a15d6cd7fc75cb1a353a6 git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git git fetch --no-tags cxl for-6.3/cxl-ram-region git checkout b879b3c78181c4a89c4a15d6cd7fc75cb1a353a6 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> lib/stackinit_kunit.c:34:13: error: conflicting types for 'range_contains'; have 'bool(char *, size_t, char *, size_t)' {aka '_Bool(char *, unsigned int, char *, unsigned int)'} 34 | static bool range_contains(char *haystack_start, size_t haystack_size, | ^~~~~~~~~~~~~~ In file included from arch/x86/include/asm/page.h:21, from arch/x86/include/asm/thread_info.h:12, from include/linux/thread_info.h:60, from arch/x86/include/asm/preempt.h:9, from include/linux/preempt.h:78, from include/linux/spinlock.h:56, from include/linux/kref.h:16, from include/kunit/test.h:21, from lib/stackinit_kunit.c:14: include/linux/range.h:16:20: note: previous definition of 'range_contains' with type 'bool(struct range *, struct range *)' {aka '_Bool(struct range *, struct range *)'} 16 | static inline bool range_contains(struct range *r1, struct range *r2) | ^~~~~~~~~~~~~~ vim +34 lib/stackinit_kunit.c 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 33 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 @34 static bool range_contains(char *haystack_start, size_t haystack_size, 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 35 char *needle_start, size_t needle_size) 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 36 { 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 37 if (needle_start >= haystack_start && 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 38 needle_start + needle_size <= haystack_start + haystack_size) 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 39 return true; 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 40 return false; 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 41 } 50ceaa95ea0970 lib/test_stackinit.c Kees Cook 2019-01-23 42 :::::: The code at line 34 was first introduced by commit :::::: 50ceaa95ea09703722b30b4afa617c972071cd7f lib: Introduce test_stackinit module :::::: TO: Kees Cook :::::: CC: Kees Cook -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests