Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1060871rdb; Fri, 20 Oct 2023 07:27:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4p7cSqCK35gkVH37832l76F1rUGNFHVBUcG5GEx6M4KHj8bOfUfmzEQjyK1NcDq/6B+Hj X-Received: by 2002:a05:6871:331d:b0:1e9:beae:9481 with SMTP id nf29-20020a056871331d00b001e9beae9481mr2419826oac.23.1697812025899; Fri, 20 Oct 2023 07:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697812025; cv=none; d=google.com; s=arc-20160816; b=DJjYf94cUjwhWOnQMZFAZ5r3VqQxc2GYL3KNsFdKPg5QRKfBjY1jWIJJVj3NBHPjC/ E1VxFoadqO34lUME/shw6Vu94qG3K6FCDzJk24DK6zblk9+XXAJdPoa1wzUT0LoPQds4 v+XrCNBS+OqMPjMtB6A9KA6etZQCATvXseKDVylH0x1GEdKn3yiuuIUzE+4GTtPtxfw+ 9h76m6jd3orzQ3o0J32DVGkjVjWf1+PekzyZrJ2Mtmu+6jBkEM9nSQTbLWmgfb+nEu/p eNO39PpPbOXzbhtsabN3Dvy65Bi0B0GMq6cCIEvdexq9N9wHoKtN33eB5ksWqKtihaxw hQQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=puT0A0e/gPsO+gegHLZBQSACRXPq1+Ybrat9njizQdA=; fh=DjvAlys6NFGdPlD7T2kWKZ5Um9LwLF3LCEx2npdkW0A=; b=kcllcSnrOnIiPC8mneeTpw2jJ/6pFBIc2g06N4MYPpC0YyiY+MR7UFu8dZu1UEbdIm gROjfS1rQd4XDI9jB2mK8BkTvYfP7sqsoB5F7uNqHHCqbYEzTUzu8irsAp9ZSn4McNMJ a36/Rrc1l2LRjbftQwaC+6RcTQXeoAeMRF6vkxntB0gBI/kRNPi/hQ5SLWh/RhnG7pcR xeWkewaSCMKwoS/m5ZavgNpbZsiJJ0G6JH1fQ3CqkkRzKJMN+4xKRITmYbyJv59FRbpE MD30RpU8gqHm/PmEf7E4Dc/A8o/TyYdV7YoJBOqC1SOZaZQA2xrLWnNGmAfNFgtaYGUq mnjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dvg3Dbwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j3-20020a056a00174300b00690ffbb46e6si2102644pfc.261.2023.10.20.07.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 07:27:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Dvg3Dbwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 765AB802DA92; Fri, 20 Oct 2023 07:26:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377577AbjJTO0j (ORCPT + 99 others); Fri, 20 Oct 2023 10:26:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377541AbjJTO0h (ORCPT ); Fri, 20 Oct 2023 10:26:37 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 772C1D4C for ; Fri, 20 Oct 2023 07:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697811995; x=1729347995; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WaYTYHnCELAskXJ9hsiJHah+O/L8wEX5oZ87gYVGYH0=; b=Dvg3DbwjqF88DGwSrHfH7SdKG2IN4TtxoxhzUkJMRWK2K2ECjD7Bwpr8 UcQLxcMtRNiptJCHwrm4EpoLbXjUwVMazy+BLEPyxmgIbfwMhDWvxyBxN fqYWDgzM8BcjPKQhn+4DFnjTWghrAw1CDj168PprowdUD8hV1sXwVVpRp +7GOit79IcdQ0LoOQUH3RuT4oA//pXbFA56F/yNvj6VkLb9PRifLNdVv5 I1rnaw54x3ridOCIJTSDp245Y0f7dVM0DvOdJRANECj9wByKlpLTZdTP8 p2qnv/LU6p7J4I/VXT8I6BpHRnTYmDWk2yAvj7rgng8e/GEuhXPrQB9LE A==; X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="386316030" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="386316030" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 07:26:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="823270659" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="823270659" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 20 Oct 2023 07:26:13 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qtqS3-0003cG-03; Fri, 20 Oct 2023 14:26:11 +0000 Date: Fri, 20 Oct 2023 22:25:59 +0800 From: kernel test robot To: Calvince Otieno , gustavo@embeddedor.com, outreachy@lists.linux.dev Cc: oe-kbuild-all@lists.linux.dev, Greg Kroah-Hartman , Florian Fainelli , Broadcom internal kernel review list , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vc04_services: remove empty functions Message-ID: <202310202212.ijCqovEf-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 07:26:44 -0700 (PDT) Hi Calvince, kernel test robot noticed the following build warnings: [auto build test WARNING on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Calvince-Otieno/staging-vc04_services-remove-empty-functions/20231019-174823 base: staging/staging-testing patch link: https://lore.kernel.org/r/ZTD677iqMkRPxT27%40lab-ubuntu patch subject: [PATCH] staging: vc04_services: remove empty functions config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20231020/202310202212.ijCqovEf-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310202212.ijCqovEf-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/202310202212.ijCqovEf-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c:181:6: warning: no previous prototype for 'vchiq_debugfs_add_instance' [-Wmissing-prototypes] 181 | void vchiq_debugfs_add_instance(struct vchiq_instance *instance) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c:198:6: warning: no previous prototype for 'vchiq_debugfs_remove_instance' [-Wmissing-prototypes] 198 | void vchiq_debugfs_remove_instance(struct vchiq_instance *instance) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c:206:6: warning: no previous prototype for 'vchiq_debugfs_init' [-Wmissing-prototypes] 206 | void vchiq_debugfs_init(void) | ^~~~~~~~~~~~~~~~~~ >> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c:224:6: warning: no previous prototype for 'vchiq_debugfs_deinit' [-Wmissing-prototypes] 224 | void vchiq_debugfs_deinit(void) | ^~~~~~~~~~~~~~~~~~~~ vim +/vchiq_debugfs_add_instance +181 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 71bad7f086419d popcornmix 2013-07-02 179 71bad7f086419d popcornmix 2013-07-02 180 /* add an instance (process) to the debugfs entries */ 4ddf9a2555caf2 Jamal Shareef 2019-11-05 @181 void vchiq_debugfs_add_instance(struct vchiq_instance *instance) 71bad7f086419d popcornmix 2013-07-02 182 { 71bad7f086419d popcornmix 2013-07-02 183 char pidstr[16]; 0723103f8ba15a Greg Kroah-Hartman 2018-06-01 184 struct dentry *top; 71bad7f086419d popcornmix 2013-07-02 185 71bad7f086419d popcornmix 2013-07-02 186 snprintf(pidstr, sizeof(pidstr), "%d", 71bad7f086419d popcornmix 2013-07-02 187 vchiq_instance_get_pid(instance)); 71bad7f086419d popcornmix 2013-07-02 188 24e8d3fc42f259 Greg Kroah-Hartman 2018-06-01 189 top = debugfs_create_dir(pidstr, vchiq_dbg_clients); 71bad7f086419d popcornmix 2013-07-02 190 0723103f8ba15a Greg Kroah-Hartman 2018-06-01 191 debugfs_create_file("use_count", 0444, top, instance, 71bad7f086419d popcornmix 2013-07-02 192 &debugfs_usecount_fops); 0723103f8ba15a Greg Kroah-Hartman 2018-06-01 193 debugfs_create_file("trace", 0644, top, instance, &debugfs_trace_fops); 71bad7f086419d popcornmix 2013-07-02 194 71bad7f086419d popcornmix 2013-07-02 195 vchiq_instance_get_debugfs_node(instance)->dentry = top; 71bad7f086419d popcornmix 2013-07-02 196 } 71bad7f086419d popcornmix 2013-07-02 197 4ddf9a2555caf2 Jamal Shareef 2019-11-05 @198 void vchiq_debugfs_remove_instance(struct vchiq_instance *instance) 71bad7f086419d popcornmix 2013-07-02 199 { aa987e55132f78 Dominic Braun 2018-12-14 200 struct vchiq_debugfs_node *node = aa987e55132f78 Dominic Braun 2018-12-14 201 vchiq_instance_get_debugfs_node(instance); 6e475350a40685 Yamanappagouda Patil 2017-02-21 202 71bad7f086419d popcornmix 2013-07-02 203 debugfs_remove_recursive(node->dentry); 71bad7f086419d popcornmix 2013-07-02 204 } 71bad7f086419d popcornmix 2013-07-02 205 0723103f8ba15a Greg Kroah-Hartman 2018-06-01 @206 void vchiq_debugfs_init(void) 71bad7f086419d popcornmix 2013-07-02 207 { 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 208 struct dentry *dir; 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 209 int i; 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 210 2739deaece4bc2 Greg Kroah-Hartman 2018-06-01 211 vchiq_dbg_dir = debugfs_create_dir("vchiq", NULL); 24e8d3fc42f259 Greg Kroah-Hartman 2018-06-01 212 vchiq_dbg_clients = debugfs_create_dir("clients", vchiq_dbg_dir); 71bad7f086419d popcornmix 2013-07-02 213 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 214 /* create an entry under /vchiq/log for each log category */ 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 215 dir = debugfs_create_dir("log", vchiq_dbg_dir); 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 216 e1a17ce82f1808 Stefan Wahren 2022-01-23 217 for (i = 0; i < ARRAY_SIZE(vchiq_debugfs_log_entries); i++) 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 218 debugfs_create_file(vchiq_debugfs_log_entries[i].name, 0644, 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 219 dir, vchiq_debugfs_log_entries[i].plevel, 3b93c0f4b6accb Greg Kroah-Hartman 2018-06-01 220 &debugfs_log_fops); 71bad7f086419d popcornmix 2013-07-02 221 } 71bad7f086419d popcornmix 2013-07-02 222 71bad7f086419d popcornmix 2013-07-02 223 /* remove all the debugfs entries */ 71bad7f086419d popcornmix 2013-07-02 @224 void vchiq_debugfs_deinit(void) 71bad7f086419d popcornmix 2013-07-02 225 { 2739deaece4bc2 Greg Kroah-Hartman 2018-06-01 226 debugfs_remove_recursive(vchiq_dbg_dir); 71bad7f086419d popcornmix 2013-07-02 227 } 71bad7f086419d popcornmix 2013-07-02 228 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki