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 674E6C61D94 for ; Tue, 21 Nov 2023 13:39:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234254AbjKUNjC (ORCPT ); Tue, 21 Nov 2023 08:39:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233728AbjKUNi7 (ORCPT ); Tue, 21 Nov 2023 08:38:59 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7B031AA for ; Tue, 21 Nov 2023 05:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700573935; x=1732109935; h=date:from:to:cc:subject:message-id:mime-version; bh=MSzyROW+eg8j5VdX5osOYn/JezMBvb/pBdbyg2NLhRo=; b=POIsoRT8LzD2cIDmK2KzOfHqjQwUVaGlIJ3d/za7PmxPYCjI8z5zbczn 0xa6vAtVLGlg1aBpcJpslT3l0lu5cLfCNkw5Yx8oAifsW/fx/be+nf2JD R64Ph2m3ySpyKoxA8DwFLLQSOKIA//fP5g+oETDx5erasb+dybVYx6+P5 Cisigvxsl4+WGtV4vz5no4rbEwgGqdeePaRJRB4gFKK/hUJ5N6ywGiLL7 mY+mXYhaGmGj6M0nvrPr+DCeajo7XWxvU2vVMannRJ/Xo7eIHJ/gip4dJ 424cY9EWXkPeHAY9OGa9/upA86q2k+Iz6xbsAU2t64oqLOuwEJ2zUx3ir A==; X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="390696969" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="390696969" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 05:38:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="766650343" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="766650343" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 21 Nov 2023 05:38:18 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r5QxD-0007ph-10; Tue, 21 Nov 2023 13:38:15 +0000 Date: Tue, 21 Nov 2023 21:37:22 +0800 From: kernel test robot To: Peter Foley Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Richard Weinberger Subject: arch/um/drivers/pcap_kern.c:18:6: sparse: sparse: symbol 'pcap_init_kern' was not declared. Should it be static? Message-ID: <202311212152.kqZWYPEr-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/torvalds/linux.git master head: 98b1cc82c4affc16f5598d4fa14b1858671b2263 commit: 2c4d3841a82b88ae8a7b518dc6206f84f68e705a um: Avoid pcap multiple definition errors date: 9 months ago config: um-randconfig-r133-20231121 (https://download.01.org/0day-ci/archive/20231121/202311212152.kqZWYPEr-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311212152.kqZWYPEr-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/202311212152.kqZWYPEr-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> arch/um/drivers/pcap_kern.c:18:6: sparse: sparse: symbol 'pcap_init_kern' was not declared. Should it be static? arch/um/drivers/pcap_kern.c:53:5: sparse: sparse: symbol 'pcap_setup' was not declared. Should it be static? vim +/pcap_init_kern +18 arch/um/drivers/pcap_kern.c 17 > 18 void pcap_init_kern(struct net_device *dev, void *data) 19 { 20 struct uml_net_private *pri; 21 struct pcap_data *ppri; 22 struct pcap_init *init = data; 23 24 pri = netdev_priv(dev); 25 ppri = (struct pcap_data *) pri->user; 26 ppri->host_if = init->host_if; 27 ppri->promisc = init->promisc; 28 ppri->optimize = init->optimize; 29 ppri->filter = init->filter; 30 31 printk("pcap backend, host interface %s\n", ppri->host_if); 32 } 33 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki