From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (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 A4CFD291E for ; Wed, 13 Apr 2022 18:48:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649875713; x=1681411713; h=date:from:to:cc:subject:message-id:mime-version; bh=vADpo0Y/n9wmDwVhgSNuPyebjkxQp2ZgIereRbZ+S2E=; b=PySrNCr7vPEik0cK7+nwUHVa1enNNLjIiwiG8fDj2uFLQzGKFyJhTww+ KHyUOVWfwUYrSjkzT/qNYe1AxxApyY8N8zvZLkSxqBfLSpa6sF/RfonoG LhDmbvahdQ5Q32HH1Eht6ZV7kgX1Df6zcY/OtyW/1Bv1B//HyaqnTOjaB IaEw5bVJ2sNVcae2a5A+vV+XfH8Ihc19df358DviPSi1Lp7AVVeKrYEGE d41bGUInJrpoMKgbpa5Ue6yunQP1jN2ERvfdbcEvDVKSEssdndN8eiRDi nVWdGBdW9Vf3QyKIPK5bx1BQUZr5f6OUGUTwZRZ+voimX7CC0Yt9CeP7R g==; X-IronPort-AV: E=McAfee;i="6400,9594,10316"; a="243334677" X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="243334677" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 11:48:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="725016107" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 13 Apr 2022 11:48:31 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nei2Y-0000Wj-NH; Wed, 13 Apr 2022 18:48:30 +0000 Date: Thu, 14 Apr 2022 02:48:14 +0800 From: kernel test robot To: Daniel Thompson Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [daniel-thompson:kdb/seq_file 1/5] include/linux/kdb.h:217:33: warning: declaration of 'struct seq_operations' will not be visible outside of this function Message-ID: <202204140223.LWUYoH9B-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://git.linaro.org/people/daniel.thompson/linux.git kdb/seq_file head: b58798cd87e95bdb8832940ba312ce920de71613 commit: e333b2ce40d76f3250a29a610671861f5ad0689c [1/5] kdb: Add framework to display sequence files config: arm64-buildonly-randconfig-r003-20220413 (https://download.01.org/0day-ci/archive/20220414/202204140223.LWUYoH9B-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b7e6ea489f6dd45a9b0da9ac20871560917b9b0) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu git remote add daniel-thompson https://git.linaro.org/people/daniel.thompson/linux.git git fetch --no-tags daniel-thompson kdb/seq_file git checkout e333b2ce40d76f3250a29a610671861f5ad0689c # 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=arm64 SHELL=/bin/bash kernel/printk/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from kernel/printk/printk_safe.c:7: >> include/linux/kdb.h:217:33: warning: declaration of 'struct seq_operations' will not be visible outside of this function [-Wvisibility] kdb_print_seq_file(const struct seq_operations *ops) { return 0; } ^ 1 warning generated. vim +217 include/linux/kdb.h 210 211 /* Dynamic kdb shell command registration */ 212 extern int kdb_register(kdbtab_t *cmd); 213 extern void kdb_unregister(kdbtab_t *cmd); 214 #else /* ! CONFIG_KGDB_KDB */ 215 static inline __printf(1, 2) int kdb_printf(const char *fmt, ...) { return 0; } 216 static inline int > 217 kdb_print_seq_file(const struct seq_operations *ops) { return 0; } 218 static inline void kdb_init(int level) {} 219 static inline int kdb_register(kdbtab_t *cmd) { return 0; } 220 static inline void kdb_unregister(kdbtab_t *cmd) {} 221 #endif /* CONFIG_KGDB_KDB */ 222 enum { 223 KDB_NOT_INITIALIZED, 224 KDB_INIT_EARLY, 225 KDB_INIT_FULL, 226 }; 227 -- 0-DAY CI Kernel Test Service https://01.org/lkp