From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 9E91529CA for ; Tue, 25 Jan 2022 00:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643070437; x=1674606437; h=date:from:to:cc:subject:message-id:mime-version; bh=xADFYjtp43qyO+CIOIsghZgbI9d5poWSqca6xjSn2SY=; b=FbUJIULGdmjcF1cVDCinYvHVqRN1tOFf97oOOqkBkurxgxgKWyjJKZ/V KEM5U/ORC3AtrXHAyCWz3uoRg8Dwdft74CLTnAmViACP0j/+axx2210PQ U7iySn0gB0U5RzaRMUt88hNw70KjKuwSc43bdeSBmsCeiGQmlAmgaKiYP coPOPyhjPcxgvWr8ivOezm4PKRxNgNzss/zs4ToMqCxYBNhOqJHI+F2Z4 T5sTKDJfzYoidQ+R2HJkaHiKeThwcBZ36GUtltW4747sGE4qXd7+Hes3y lItdeST+j175eXcKEtapTIQcuaQSC4KfOTQOyju37xk6c6EMmjj5EW4XY w==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="270623765" X-IronPort-AV: E=Sophos;i="5.88,313,1635231600"; d="scan'208";a="270623765" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 16:27:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,313,1635231600"; d="scan'208";a="580573139" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 24 Jan 2022 16:27:14 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nC9g2-000J6t-CL; Tue, 25 Jan 2022 00:27:14 +0000 Date: Tue, 25 Jan 2022 08:26:36 +0800 From: kernel test robot To: Stephen Dickey Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Todd Kjos Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.15 2898/2936] kernel/sched/sched.h:1553:15: error: must use 'struct' tag to refer to type 'rq' Message-ID: <202201250831.PBiV30bo-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15 head: b7e4947b29bb8d0351c581d9365780d9b6f4d702 commit: 50f5345c8756129044a3246800f51f04ae2f55b0 [2898/2936] ANDROID: __migrate_task header config: arm-randconfig-r003-20220124 (https://download.01.org/0day-ci/archive/20220125/202201250831.PBiV30bo-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2e58a18910867ba6795066e044293e6daf89edf5) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/ammarfaizi2/linux-block/commit/50f5345c8756129044a3246800f51f04ae2f55b0 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.15 git checkout 50f5345c8756129044a3246800f51f04ae2f55b0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from kernel/sched/core.c:13: >> kernel/sched/sched.h:1553:15: error: must use 'struct' tag to refer to type 'rq' static inline rq *__migrate_task(struct rq *rq, struct rq_flags *rf, ^ struct 1 error generated. -- In file included from kernel/sched/fair.c:23: >> kernel/sched/sched.h:1553:15: error: must use 'struct' tag to refer to type 'rq' static inline rq *__migrate_task(struct rq *rq, struct rq_flags *rf, ^ struct kernel/sched/fair.c:628:5: warning: no previous prototype for function 'sched_update_scaling' [-Wmissing-prototypes] int sched_update_scaling(void) ^ kernel/sched/fair.c:628:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int sched_update_scaling(void) ^ static kernel/sched/fair.c:4494:6: warning: no previous prototype for function 'set_next_entity' [-Wmissing-prototypes] void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) ^ kernel/sched/fair.c:4494:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) ^ static 2 warnings and 1 error generated. -- In file included from kernel/sched/rt.c:6: >> kernel/sched/sched.h:1553:15: error: must use 'struct' tag to refer to type 'rq' static inline rq *__migrate_task(struct rq *rq, struct rq_flags *rf, ^ struct kernel/sched/rt.c:677:6: warning: no previous prototype for function 'sched_rt_bandwidth_account' [-Wmissing-prototypes] bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) ^ kernel/sched/rt.c:677:1: note: declare 'static' if the function is not intended to be used outside of this translation unit bool sched_rt_bandwidth_account(struct rt_rq *rt_rq) ^ static 1 warning and 1 error generated. vim +1553 kernel/sched/sched.h 1548 1549 #ifdef CONFIG_SMP 1550 extern struct rq *__migrate_task(struct rq *rq, struct rq_flags *rf, 1551 struct task_struct *p, int dest_cpu); 1552 #else /* !CONFIG_SMP */ > 1553 static inline rq *__migrate_task(struct rq *rq, struct rq_flags *rf, 1554 struct task_struct *p, int dest_cpu) { return rq; } 1555 #endif 1556 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org