Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1104637iog; Mon, 13 Jun 2022 21:59:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQzV5zIoa65skYjWoZsqnqA+xFNzwSmOYjW2YY1VNMWeAP5LPxLTI0QfF8wItWKsjOreZg X-Received: by 2002:a17:906:5fc4:b0:715:ebe6:7415 with SMTP id k4-20020a1709065fc400b00715ebe67415mr2568557ejv.725.1655182775385; Mon, 13 Jun 2022 21:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655182775; cv=none; d=google.com; s=arc-20160816; b=bay6lepUkURfhcXNEMDIsiVP/gzAkIk5vBsjmyuYnxs3moIcIVPUQT8TtwdFqrI6ql ysEWLPnLLs7WMBlWWf0zZxegGqkmKI5uLANF7OVUDS2RSHd4L49ZMUnJ7JFue4dzLcuQ wJnUqVi3C4Ei1lFbmYEfnBK19pYAUSgwpaEYnjDsJtjZbQmmOHZkITqEt5UmFmPbYPFP qh7GcWaREa/ITRleLOjZ7NwCPYHzVnWxHiC2JO0Pr5Ws5P/J/Q175D5Re8ddqRNpmbAg JBxSBQZfDI3k/vt7Hx/PcV/3J3LcWh2bfN0RTGvfxEk70wJV43F9MUPjT5HNBoMrYPYa 17nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YRjTfDmpLVmwPx++HxNUBgk/0rqVAl4MzWqZ5PvQdJ0=; b=wLlfQ2Of6KhuIB1QZ7ooThySr7GKzfxs7110Oiby2uFpBJ9yQAaHnrfG2E3I5c69P0 i929zb53DB4RuwjzgrXZl1ltLz/bXPxhqQjJZX+Eo86NMxIBWLPVf5C7DRK9AihnDvZO 8FjpbA/yzGnYoIVEky75SqPXtk7SkWalSRn7l6k0ZyjwZm2iU4CJ3ZG3Ngz+1yKEcwMJ it7Es2zgKkpjTvNHJUyh4kQfAzMsPeQWx1kRqHOc7X1W4urWwlNNKA4sz0jsDizFCD4M l+uEG4TEnC8dWbhg94Pvd4u9FV4r/LDnKispkd1qcGBRfuDi3h7Ux7S3nd7l+a7mbTQx VzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aR9FQE0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s29-20020a170906779d00b007121c97d1d5si10327600ejm.711.2022.06.13.21.59.10; Mon, 13 Jun 2022 21:59:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aR9FQE0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344027AbiFNE41 (ORCPT + 99 others); Tue, 14 Jun 2022 00:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344415AbiFNE4T (ORCPT ); Tue, 14 Jun 2022 00:56:19 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F25A4381B6 for ; Mon, 13 Jun 2022 21:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655182578; x=1686718578; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=eCnB0mxqjICI2nHrjg6XO+K4opaZ+X4RUqLpm5cFhj0=; b=aR9FQE0DVNRNhtsQCmr+e0iQGnjtFQTXeD4UbouBWsbDe1dEZdP3c7/Q GxYnTmb55gPb3NO/3P0QS7FeY5QfqhS1tILrgfqEirXZGoYhi8bs4vsgi DJL2R2Nwa0Sinjgh4/q8qq5zULmNtqClMs2du97IQdA7HI8dt8POM2vuk MWojKe4FtbGqk7DjiRjNdlj+WAVCtWprrB54bBnrQ+lvj3Ck5eKY7T5Yh 1vYMutqhWvAiXaErh0NglLSBk3pSktF4IcaLtxd4XdYoXEjk/F8l8/iLN nBhXyL1jT4lPIZbJt6Z/O9IaGKGVr8dOgSXLwIJTIagluJ/egzsH8pQve w==; X-IronPort-AV: E=McAfee;i="6400,9594,10377"; a="342471788" X-IronPort-AV: E=Sophos;i="5.91,299,1647327600"; d="scan'208";a="342471788" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 21:56:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,299,1647327600"; d="scan'208";a="651814987" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 13 Jun 2022 21:56:14 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o0yb7-000LUr-Qz; Tue, 14 Jun 2022 04:56:13 +0000 Date: Tue, 14 Jun 2022 12:55:52 +0800 From: kernel test robot To: jingyuwang , akpm@linux-foundation.org, rostedt@goodmis.org, mhiramat@kernel.org, vbabka@suse.cz, ahalaney@redhat.com, Jason@zx2c4.com, mark-pk.tsai@mediatek.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, jingyuwang Subject: Re: [PATCH] Fix the following checkpatch error: Message-ID: <202206141212.iXl6qYYx-lkp@intel.com> References: <20220613202210.31759-1-jingyuwang_vip@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220613202210.31759-1-jingyuwang_vip@163.com> X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi jingyuwang, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v5.19-rc2 next-20220610] [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] url: https://github.com/intel-lab-lkp/linux/commits/jingyuwang/Fix-the-following-checkpatch-error/20220614-050258 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: hexagon-randconfig-r041-20220613 (https://download.01.org/0day-ci/archive/20220614/202206141212.iXl6qYYx-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c97436f8b6e2718286e8496faf53a2c800e281cf) 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://github.com/intel-lab-lkp/linux/commit/35742a839670fa8937c7040160e16b7009b2a9ae git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review jingyuwang/Fix-the-following-checkpatch-error/20220614-050258 git checkout 35742a839670fa8937c7040160e16b7009b2a9ae # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon 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 >>): init/main.c:773:20: warning: no previous prototype for function 'arch_post_acpi_subsys_init' [-Wmissing-prototypes] void __init __weak arch_post_acpi_subsys_init(void) { } ^ init/main.c:773:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init __weak arch_post_acpi_subsys_init(void) { } ^ static init/main.c:785:20: warning: no previous prototype for function 'mem_encrypt_init' [-Wmissing-prototypes] void __init __weak mem_encrypt_init(void) { } ^ init/main.c:785:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init __weak mem_encrypt_init(void) { } ^ static init/main.c:787:20: warning: no previous prototype for function 'poking_init' [-Wmissing-prototypes] void __init __weak poking_init(void) { } ^ init/main.c:787:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init __weak poking_init(void) { } ^ static >> init/main.c:1344:20: error: 'initcall_level_names' causes a section type conflict with '__setup_str_set_reset_devices' static const char *initcall_level_names[] __initconst = { ^ init/main.c:191:1: note: declared here __setup("reset_devices", set_reset_devices); ^ include/linux/init.h:329:2: note: expanded from macro '__setup' __setup_param(str, fn, fn, 0) ^ include/linux/init.h:316:20: note: expanded from macro '__setup_param' static const char __setup_str_##unique_id[] __initconst \ ^ :58:1: note: expanded from here __setup_str_set_reset_devices ^ 3 warnings and 1 error generated. vim +1344 init/main.c 1342 1343 /* Keep these in sync with initcalls in include/linux/init.h */ > 1344 static const char *initcall_level_names[] __initconst = { 1345 "pure", 1346 "core", 1347 "postcore", 1348 "arch", 1349 "subsys", 1350 "fs", 1351 "device", 1352 "late", 1353 }; 1354 -- 0-DAY CI Kernel Test Service https://01.org/lkp