From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 2A1868F58; Tue, 25 Jul 2023 09:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690276882; x=1721812882; h=date:from:to:cc:subject:message-id:mime-version; bh=anr+zGDyxyZpRIPnP0EHmo6aP/jhd2ftB2YDGHkf03A=; b=lz/2EsAT7UXyxSFdOfHv1ndQ4bGd5pfxhz+qUwRgKEkNxuN3QACt54Uh Orcsw/n7l3zSWEWfBtRZxuQf1xfLCFnmiokyHNP6ILGxKTB4mDwKvpDmM hEdXQVHN9eYylV1sclKs1ZK0c2ZhVYL1zi0t4sJSC4GObQuBpU8X524mH CimXsKAObpfz+qDWZaozWQhcsvpm46ll26ws6WmJb/DGNwE2FoPv7XrIB Y9S3TsISZ9vkWAGqfxrowx2bovPzjGoMk3cEiMyzAozK022X4suO5VmPd JQhLx1kXu0vovhq5ilMdbkOPhxVL6rCcEA6P/a74rGCAb7auykyFpn33X w==; X-IronPort-AV: E=McAfee;i="6600,9927,10781"; a="367691786" X-IronPort-AV: E=Sophos;i="6.01,230,1684825200"; d="scan'208";a="367691786" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 02:21:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10781"; a="761149957" X-IronPort-AV: E=Sophos;i="6.01,230,1684825200"; d="scan'208";a="761149957" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 25 Jul 2023 02:21:18 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qOEEH-000AUk-0l; Tue, 25 Jul 2023 09:21:17 +0000 Date: Tue, 25 Jul 2023 17:20:49 +0800 From: kernel test robot To: Laurent Dufour Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Ellerman Subject: arch/powerpc/kexec/file_load_64.c:939: warning: expecting prototype for get_cpu_node_size(). Prototype was for cpu_node_size() instead Message-ID: <202307251721.bUGcsCeQ-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0b5547c51827e053cc754db47d3ec3e6c2c451d2 commit: 340a4a9f8773e102cc5ef531665970a686dfa245 powerpc: Take in account addition CPU node when building kexec FDT date: 8 months ago config: powerpc-skiroot_defconfig (https://download.01.org/0day-ci/archive/20230725/202307251721.bUGcsCeQ-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230725/202307251721.bUGcsCeQ-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/202307251721.bUGcsCeQ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/powerpc/kexec/file_load_64.c:939: warning: expecting prototype for get_cpu_node_size(). Prototype was for cpu_node_size() instead vim +939 arch/powerpc/kexec/file_load_64.c 931 932 /** 933 * get_cpu_node_size - Compute the size of a CPU node in the FDT. 934 * This should be done only once and the value is stored in 935 * a static variable. 936 * Returns the max size of a CPU node in the FDT. 937 */ 938 static unsigned int cpu_node_size(void) > 939 { 940 static unsigned int size; 941 struct device_node *dn; 942 struct property *pp; 943 944 /* 945 * Don't compute it twice, we are assuming that the per CPU node size 946 * doesn't change during the system's life. 947 */ 948 if (size) 949 return size; 950 951 dn = of_find_node_by_type(NULL, "cpu"); 952 if (WARN_ON_ONCE(!dn)) { 953 // Unlikely to happen 954 return 0; 955 } 956 957 /* 958 * We compute the sub node size for a CPU node, assuming it 959 * will be the same for all. 960 */ 961 size += strlen(dn->name) + 5; 962 for_each_property_of_node(dn, pp) { 963 size += strlen(pp->name); 964 size += pp->length; 965 } 966 967 of_node_put(dn); 968 return size; 969 } 970 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki