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 E538FC433F5 for ; Mon, 18 Apr 2022 21:51:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229648AbiDRVuq (ORCPT ); Mon, 18 Apr 2022 17:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbiDRVum (ORCPT ); Mon, 18 Apr 2022 17:50:42 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECAC1DA47 for ; Mon, 18 Apr 2022 14:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650318481; x=1681854481; h=date:from:to:cc:subject:message-id:mime-version; bh=zy4F/edl4tI2yMzSkwhLXZMwL7Js/XjfIr2YvR7zwDE=; b=iXIRXeydDMb2ATJF6gjrXcIUKcolcZBlTtAmZm3/1BG8vpFodvkorvjY lUZ/hw1Ia85gpT0DV2mC4FPATQmEJMgPN+tF2eAjLrBbfR4AIUjPZikxa 34xKxDTvTDO3rzwkj0CPEPPgXZK3qakGESao678ovol6DWZ50KHNrMfCw +SgnPDajFAflJ2NX26DNkBpRet+/XERL72BDdKs9U3IpJ4GOy55wZbUES eXMM6zPoXSlDhBIgGBGMg5Nqp298hjFUZATNH/+BpC2kcM+6o4ZHH5tIJ LjalyLAjBuQxXOCIeUtiaN/rcYBrVqR8NpD0T+EVKR+n863EYjdgMFZFT g==; X-IronPort-AV: E=McAfee;i="6400,9594,10321"; a="326517477" X-IronPort-AV: E=Sophos;i="5.90,270,1643702400"; d="scan'208";a="326517477" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2022 14:48:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,270,1643702400"; d="scan'208";a="701964453" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 18 Apr 2022 14:47:59 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1ngZDz-00051S-13; Mon, 18 Apr 2022 21:47:59 +0000 Date: Tue, 19 Apr 2022 05:47:29 +0800 From: kernel test robot To: Ingo Molnar Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:sched/headers 2222/2356] include/linux/mm_types_task.h:11:10: fatal error: generated/bounds.h: No such file or directory Message-ID: <202204190545.DLGpryBz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: af93551cf39027d176f30b9beafc60a4c130998a commit: 1ac8ecdc4e754e164da21a64b262f7b0f097010f [2222/2356] headers/deps: bvec: Reduce dependencies, remove inclusion config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220419/202204190545.DLGpryBz-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=1ac8ecdc4e754e164da21a64b262f7b0f097010f git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 1ac8ecdc4e754e164da21a64b262f7b0f097010f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): 83 | XCHG_GEN(u16, _relaxed, "cc"); | ^~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:206:1: note: in expansion of macro 'CMPXCHG_GEN' 206 | CMPXCHG_GEN(u8, , PPC_ATOMIC_ENTRY_BARRIER, PPC_ATOMIC_EXIT_BARRIER, "memory"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8_local': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:207:1: note: in expansion of macro 'CMPXCHG_GEN' 207 | CMPXCHG_GEN(u8, _local, , , "memory"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8_acquire': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:208:1: note: in expansion of macro 'CMPXCHG_GEN' 208 | CMPXCHG_GEN(u8, _acquire, , PPC_ACQUIRE_BARRIER, "memory"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8_relaxed': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:209:1: note: in expansion of macro 'CMPXCHG_GEN' 209 | CMPXCHG_GEN(u8, _relaxed, , , "cc"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:210:1: note: in expansion of macro 'CMPXCHG_GEN' 210 | CMPXCHG_GEN(u16, , PPC_ATOMIC_ENTRY_BARRIER, PPC_ATOMIC_EXIT_BARRIER, "memory"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16_local': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:211:1: note: in expansion of macro 'CMPXCHG_GEN' 211 | CMPXCHG_GEN(u16, _local, , , "memory"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16_acquire': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:212:1: note: in expansion of macro 'CMPXCHG_GEN' 212 | CMPXCHG_GEN(u16, _acquire, , PPC_ACQUIRE_BARRIER, "memory"); | ^~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16_relaxed': arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'? 11 | #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) | ^~~~~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL' 47 | bitoff = BITOFF_CAL(sizeof(type), off); \ | ^~~~~~~~~~ arch/powerpc/include/asm/cmpxchg.h:213:1: note: in expansion of macro 'CMPXCHG_GEN' 213 | CMPXCHG_GEN(u16, _relaxed, , , "cc"); | ^~~~~~~~~~~ In file included from include/linux/mm_types.h:7, from include/linux/mm_page_address.h:14, from include/asm-generic/memory_model.h:14, from arch/powerpc/include/asm/page.h:334, from arch/powerpc/include/asm/thread_info.h:13, from include/linux/thread_info.h:63, from arch/powerpc/include/asm/ptrace.h:323, from arch/powerpc/include/asm/hw_irq.h:12, from arch/powerpc/include/asm/irqflags.h:12, from include/linux/irqflags.h:16, from include/asm-generic/cmpxchg-local.h:6, from arch/powerpc/include/asm/cmpxchg.h:526, from arch/powerpc/include/asm/atomic.h:11, from include/linux/atomic_api.h:8, from include/linux/jump_label.h:257, from include/linux/page-flags.h:9, from kernel/bounds.c:12: include/linux/mm_types_task.h: At top level: >> include/linux/mm_types_task.h:11:10: fatal error: generated/bounds.h: No such file or directory 11 | #include | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:120: kernel/bounds.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1194: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +11 include/linux/mm_types_task.h 2e58f173ab89b2 Ingo Molnar 2017-02-04 4 9e7d2e44dd88ba Ingo Molnar 2017-02-04 5 /* 9e7d2e44dd88ba Ingo Molnar 2017-02-04 6 * Here are the definitions of the MM data types that are embedded in 'struct task_struct'. 9e7d2e44dd88ba Ingo Molnar 2017-02-04 7 * 9e7d2e44dd88ba Ingo Molnar 2017-02-04 8 * (These are defined separately to decouple sched.h from mm_types.h as much as possible.) 9e7d2e44dd88ba Ingo Molnar 2017-02-04 9 */ 9e7d2e44dd88ba Ingo Molnar 2017-02-04 10 09a39ba16c28d9 Ingo Molnar 2022-03-15 @11 #include 09a39ba16c28d9 Ingo Molnar 2022-03-15 12 :::::: The code at line 11 was first introduced by commit :::::: 09a39ba16c28d98621d835b7e0618c2ee9daf6ef headers/deps: mm: Optimize dependencies :::::: TO: Ingo Molnar :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://01.org/lkp