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 CA7EFCDB465 for ; Sat, 14 Oct 2023 23:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233300AbjJNXTC (ORCPT ); Sat, 14 Oct 2023 19:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjJNXTB (ORCPT ); Sat, 14 Oct 2023 19:19:01 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E312A9 for ; Sat, 14 Oct 2023 16:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697325539; x=1728861539; h=date:from:to:cc:subject:message-id:mime-version; bh=1wrkZYAbzIn046Md47q8L0VL/oPMXb45ZNIb2pUt7J0=; b=UCGVDuQPjqlm9f/W6DV8KWih632zPd2UNW4jOLOarW2OMpFgOVEJlMJd /uug5ZuVkLTJOZguIxoA3OQ2UWwR6orRldPo7BgYd9MPaqTmCxvG63fih 3auUBApm+tmee53i6M1llm71omtjzlXd343dNfvrUe+gruvCXlpdEwTbY 2r619xnubCGmG3ly2EFRmbSt0K13d92CO6rVfCbRc66ZvcSgRvgwqvUif 21K5VtBJszrL+N5PClTCXvyT7YB5Hd3qpqm8JMspaBQYYXCPbLJu75wJv DtbD3N8iHe6Sb1UzDrmx5Cn1ADoXVVcIVW6Dthe0xQbO1JeQJ/zSCf6lE A==; X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="382582264" X-IronPort-AV: E=Sophos;i="6.03,226,1694761200"; d="scan'208";a="382582264" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2023 16:18:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="821099022" X-IronPort-AV: E=Sophos;i="6.03,226,1694761200"; d="scan'208";a="821099022" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 14 Oct 2023 16:18:57 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qrnuJ-0006nH-1T; Sat, 14 Oct 2023 23:18:55 +0000 Date: Sun, 15 Oct 2023 07:18:54 +0800 From: kernel test robot To: Thomas Gleixner Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org Subject: [tip:x86/core 22/22] arch/x86/kernel/cpu/debugfs.c:11:33: sparse: sparse: incorrect type in initializer (different address spaces) Message-ID: <202310150710.o94a7TGT-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-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core head: 92fe9bb77b0c9fade150350fdb0629a662f0923f commit: 48525fd1ea1cfa059a580e77b10ea8790914efa2 [22/22] x86/cpu: Provide debug interface config: i386-randconfig-061-20231014 (https://download.01.org/0day-ci/archive/20231015/202310150710.o94a7TGT-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231015/202310150710.o94a7TGT-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/202310150710.o94a7TGT-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> arch/x86/kernel/cpu/debugfs.c:11:33: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct cpuinfo_x86 * @@ arch/x86/kernel/cpu/debugfs.c:11:33: sparse: expected void const [noderef] __percpu *__vpp_verify arch/x86/kernel/cpu/debugfs.c:11:33: sparse: got struct cpuinfo_x86 * vim +11 arch/x86/kernel/cpu/debugfs.c 7 8 static int cpu_debug_show(struct seq_file *m, void *p) 9 { 10 unsigned long cpu = (unsigned long)m->private; > 11 struct cpuinfo_x86 *c = per_cpu_ptr(&cpu_info, cpu); 12 13 seq_printf(m, "online: %d\n", cpu_online(cpu)); 14 if (!c->initialized) 15 return 0; 16 17 seq_printf(m, "initial_apicid: %x\n", c->topo.initial_apicid); 18 seq_printf(m, "apicid: %x\n", c->topo.apicid); 19 seq_printf(m, "pkg_id: %u\n", c->topo.pkg_id); 20 seq_printf(m, "die_id: %u\n", c->topo.die_id); 21 seq_printf(m, "cu_id: %u\n", c->topo.cu_id); 22 seq_printf(m, "core_id: %u\n", c->topo.core_id); 23 seq_printf(m, "logical_pkg_id: %u\n", c->topo.logical_pkg_id); 24 seq_printf(m, "logical_die_id: %u\n", c->topo.logical_die_id); 25 seq_printf(m, "llc_id: %u\n", c->topo.llc_id); 26 seq_printf(m, "l2c_id: %u\n", c->topo.l2c_id); 27 seq_printf(m, "max_cores: %u\n", c->x86_max_cores); 28 seq_printf(m, "max_die_per_pkg: %u\n", __max_die_per_package); 29 seq_printf(m, "smp_num_siblings: %u\n", smp_num_siblings); 30 return 0; 31 } 32 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki