Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1994122lqp; Sat, 23 Mar 2024 20:20:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI3Rkrc/6K2vTBF7DPKMmDiQPjFVoY06gb9Oknx4CN2Ghly0RsCmAoDF9sWxaxtSITut/QNUG9kep8OAb5O6MW3W1EnlE34563kfiWOg== X-Google-Smtp-Source: AGHT+IFVvQBaVWxGjoxciSBdeAYYDwb4f9fSvIAgioE/betndrMxHHDuSVR3NnLixfEXMrN2lzOI X-Received: by 2002:a05:6a00:2345:b0:6ea:89af:3cf9 with SMTP id j5-20020a056a00234500b006ea89af3cf9mr3846278pfj.14.1711250437540; Sat, 23 Mar 2024 20:20:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711250437; cv=pass; d=google.com; s=arc-20160816; b=jdgofc31L9QJ81u6ETxPEr6d8+9Yh9kPOzopLY3rE2lx45ZkKXpXrRbexOnI0zccn2 XwCbirgVdBfWCX4O9rLtxD4FWLiF5uXdDp5AD2h8ShTxRMKd/oMbVuQzTxYqb/gVHk02 N5RCcfhsuSrkqXQJzt4W/FJPVLJb5DXxUBPZ1LQhiqpKObFwa1BJd6w6jRDtaSKQRfd0 Anl4YIuWOWNIyGo2s+KOCPzxBlEiBmFwUEaqoLLG2PR9p7A3fUB//dQLRCvWwolleJd8 f3YMGQuRYbWeE/chrLc4Rgj0tICBl0yq674DrBIw16Tmu76sMkvIQBQwksS+Ma4Xrb+N lBxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=AFZp6JInqF/IIJeJm1b3d4Fq/ryaAW3LlszjlpLI4LI=; fh=iZYZoYB/aR5T44hAQlJvDYq8qHYQEy6SmpsnyrAGzfc=; b=sY8f50iiNVMGUJbNADUIzOseV6iEL9/mtbqnyg7mtz09fN1XQt02XdEI+ez6P09dp0 bOhoq6v8khgjBBjEXhdGxOgJBJzRGdfEssbusSoFjqeBDWTh13YtXOtrYhDQb1nsJigQ IIAooGTuh4a/lg0paquda2sMb0K0r6badrx8XMdWjGv9OtHStTkIFf1Vvw1vnhuRvBHm cRMOr220jZjpK38oa56EllESxlaSq9fCeagSA7L+LV8a3N7B49d9Obik+0/5VLNUOEwB 5JlQv1K+AB1cJcyrdVFH1jwNjoAmUFufdz+fOIe4RQZEIuMbNZCY+jUuZtXOaWw/vR80 IIUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FvrIiU3w; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-112563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jc33-20020a056a006ca100b006ea8c0900f7si2706056pfb.33.2024.03.23.20.20.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 20:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FvrIiU3w; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-112563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 979E1282616 for ; Sun, 24 Mar 2024 03:20:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E17E1A38EE; Sun, 24 Mar 2024 03:20:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FvrIiU3w" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 893D717F3 for ; Sun, 24 Mar 2024 03:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711250429; cv=none; b=oM5sB88AvcAkzL8j2Ft2Xqqrq4PWyRh+q7+YbJotXBiHfg4KYa297ZFFQN8ptcPUmHVc14dWkvhboi6Y9A3oL6BGuPnTV53Rl01HHrgzOnGxptq4ROqbT94GXWYAcmtB6XG9DAzhap8T1QvLaQ6jYThSzzmCkPMlh/WQsDSAzKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711250429; c=relaxed/simple; bh=EhbRsGvqN0jROuWy97R+D3RnYNFRvQyqA2GmT1EXg1A=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=GUaLIPyyDO1LO+Vx+Y3n0jCuQkijqE31SsyPG8rxEArH3XtSgUasdiJ1Ei8quiPJdlK4NLSRn3cy8a2U1j0lXwgebvnO2/cWrYAuNlCAOe1VQ0fg/HgNloKTBkhcAUSkA/i5N9UJPYlX2/PTJfJ7wrPKRCOrmwKbpR6qu8bIv7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FvrIiU3w; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711250428; x=1742786428; h=date:from:to:cc:subject:message-id:mime-version; bh=EhbRsGvqN0jROuWy97R+D3RnYNFRvQyqA2GmT1EXg1A=; b=FvrIiU3wTcdSzcrwSHmirKbZYetvpx9CiDZAvBJkkHfgmrMA2CcFrrdh fXAL4JlppUVk472Zt4ouMZIXj4fS3tIY8qtuyeEjTbEcubAKqcBgNhrbK WUq9CxdlXMDbI06UU6/IKo+tQJzCauWItew32tzHC6cU71/EJnWUyKvUy 3qulp+TLE7ajsbWCcE4VwipjTKPZH8i/KUpgieXH5BTK7UpaTBRjOgkaE bkjcVA/NMaYBAg8urGdq9egUkt0moyGzmjGaRduCrzCTm2p9sAPi4KBTo NBhCx6Iyvv015lXHzw7m0jXMwz16ofstnCf7+QnurbkP6tTrraAHii+Zw g==; X-IronPort-AV: E=McAfee;i="6600,9927,11022"; a="6129139" X-IronPort-AV: E=Sophos;i="6.07,150,1708416000"; d="scan'208";a="6129139" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2024 20:20:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,150,1708416000"; d="scan'208";a="46269540" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 23 Mar 2024 20:20:25 -0700 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1roEPG-000LdL-2f; Sun, 24 Mar 2024 03:20:22 +0000 Date: Sun, 24 Mar 2024 11:19:28 +0800 From: kernel test robot To: Herve Codina Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Christophe Leroy , Andy Shevchenko Subject: include/linux/framer/framer.h:184:16: warning: no previous prototype for function 'framer_get' Message-ID: <202403241110.hfJqeJRu-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org 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: 70293240c5ce675a67bfc48f419b093023b862b3 commit: 54762918ca856028d33d1d56d017a4d7706c6196 net: wan: fsl_qmc_hdlc: Add framer support date: 13 days ago config: powerpc-randconfig-003-20240324 (https://download.01.org/0day-ci/archive/20240324/202403241110.hfJqeJRu-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240324/202403241110.hfJqeJRu-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/202403241110.hfJqeJRu-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/net/wan/fsl_qmc_hdlc.c:14: In file included from include/linux/dma-mapping.h:11: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:2188: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from drivers/net/wan/fsl_qmc_hdlc.c:17: >> include/linux/framer/framer.h:184:16: warning: no previous prototype for function 'framer_get' [-Wmissing-prototypes] 184 | struct framer *framer_get(struct device *dev, const char *con_id) | ^ include/linux/framer/framer.h:184:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 184 | struct framer *framer_get(struct device *dev, const char *con_id) | ^ | static >> include/linux/framer/framer.h:189:6: warning: no previous prototype for function 'framer_put' [-Wmissing-prototypes] 189 | void framer_put(struct device *dev, struct framer *framer) | ^ include/linux/framer/framer.h:189:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 189 | void framer_put(struct device *dev, struct framer *framer) | ^ | static drivers/net/wan/fsl_qmc_hdlc.c:783:25: error: use of undeclared identifier 'qmc_hdlc_driver'; did you mean 'qmc_hdlc_probe'? 783 | MODULE_DEVICE_TABLE(of, qmc_hdlc_driver); | ^~~~~~~~~~~~~~~ | qmc_hdlc_probe include/linux/module.h:244:15: note: expanded from macro 'MODULE_DEVICE_TABLE' 244 | extern typeof(name) __mod_##type##__##name##_device_table \ | ^ drivers/net/wan/fsl_qmc_hdlc.c:694:12: note: 'qmc_hdlc_probe' declared here 694 | static int qmc_hdlc_probe(struct platform_device *pdev) | ^ 3 warnings and 1 error generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] vim +/framer_get +184 include/linux/framer/framer.h 82c944d05b1a24 Herve Codina 2023-11-28 183 82c944d05b1a24 Herve Codina 2023-11-28 @184 struct framer *framer_get(struct device *dev, const char *con_id) 82c944d05b1a24 Herve Codina 2023-11-28 185 { 82c944d05b1a24 Herve Codina 2023-11-28 186 return ERR_PTR(-ENOSYS); 82c944d05b1a24 Herve Codina 2023-11-28 187 } 82c944d05b1a24 Herve Codina 2023-11-28 188 82c944d05b1a24 Herve Codina 2023-11-28 @189 void framer_put(struct device *dev, struct framer *framer) 82c944d05b1a24 Herve Codina 2023-11-28 190 { 82c944d05b1a24 Herve Codina 2023-11-28 191 } 82c944d05b1a24 Herve Codina 2023-11-28 192 :::::: The code at line 184 was first introduced by commit :::::: 82c944d05b1a24c76948ee9d6bb1d7de1ebb8b3a net: wan: Add framer framework support :::::: TO: Herve Codina :::::: CC: Linus Walleij -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki