Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp897155pxb; Fri, 22 Apr 2022 13:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxztk2J4P0FRUZM4TH5JS1nZlbGSKsyIBG0zwPcwFNfGM1lNJo984t/F5UvCaeo6Cw24ezm X-Received: by 2002:a17:90a:9418:b0:1d8:91d1:4d74 with SMTP id r24-20020a17090a941800b001d891d14d74mr3840580pjo.62.1650660231878; Fri, 22 Apr 2022 13:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660231; cv=none; d=google.com; s=arc-20160816; b=ZqwwwY+Ofog2HFA02TkxMFG0cYb7Dd9AF220jLUyJ+lmi0YK6jTJsdCpzFFb614gQj FwwBy96Ui5i5+h0AgvOgxLu5cDogAzqd0qrejMhEtSWv9CpsLc4mJIJZbKw5WGS+ff9G PyHB0dPE/oeUdweJzn/1xBcNJf/h1B9KnKn0aIgWQL05TeZBfMuL8PQnWZiuti8Lma90 aVLhbcE2Dgg9LpNRI5cFhBA6HyHgKRD8wxWszXQf8FwxH11WyHtw87YlMqCUGh0kKl7z tRtWP6IbFxSnveXEbNl8jyCLfbuOUgV1GAqSnJgYELsuq6JLZiKJthXXi5YYpqbgU8UO vHXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WebSXwwxkqQJYtvI5HaP3pOM0zDiTUnIasvOuy5T6Wg=; b=xQJaxL7XmeSwCWkz+B2q5siD+BsstiEdUDwvQOlgzMkaInoTfi2tKK0ARd46QEbEAy M3r18CIgMTtQPwxioCL3Wrw5VzTVL0IFLN0MXGx5IPAh17lZA5NjJ3GWGzrG9YtYpEGC zu9yGGU0TL1/tLfymEQTyqTnK2n8bHsWZ6BudfHTbhBaMiVRdFNFKJhWmrVn/x5+L9yO ss9AqbYlZVGU3yWqNHHNNQ3yDqBzRDni16iGpW4drB4EI6vs30m9k8x2TQgMfHrc5p0R hEBMA3PRuCko+MIF3cgLKWE4kb5E83y5NTcLAGMN9A7xj+zQs7PJGcm+PicDZ/ixZwjW 2AdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EVCUtGS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u23-20020a056a00099700b0050aba9ccd31si9576379pfg.341.2022.04.22.13.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EVCUtGS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 502851DFE79; Fri, 22 Apr 2022 12:31:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353785AbiDSP0y (ORCPT + 99 others); Tue, 19 Apr 2022 11:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232322AbiDSP0v (ORCPT ); Tue, 19 Apr 2022 11:26:51 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B8BB2A724 for ; Tue, 19 Apr 2022 08:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650381846; x=1681917846; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4hchj7+XS8cIR8ILuo+p/7IgHIWuIRQ5IdE8F7pNmyc=; b=EVCUtGS6vjlHc6ZawVjsQA8BAHVCIPqnmbvzkL8H3V5bi0utaP86xTQ6 1EL9U1HujEQAomuz3+bUl2U6Lzoy8PBPcFNu3drYX7vB/XI7G/3F7L1+V MA3mDYfviQo1qDD5N9EiZvr9wtbqrsgoOoisFRgu2U1GcaFRFdnB1e/wv CPw7TQbxavlXGmGXXxeBbXJMbMqqKPNgI+Uwk3FB8FZ9J/oIgMNF1d6jp MAUSiEq1I8Rr5R6/4LKjnwY1m8JsnX2q7JKwMU019edkaYUwfh/YmadJx 1jvpb42slmi1N7Rt5KKYxr3vrvzg+5+HPHEO1uX5xXdwI2iR7NW8q2wVe w==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="288889500" X-IronPort-AV: E=Sophos;i="5.90,273,1643702400"; d="scan'208";a="288889500" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 08:24:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,273,1643702400"; d="scan'208";a="647297832" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 19 Apr 2022 08:24:03 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1ngphy-0005u2-Oi; Tue, 19 Apr 2022 15:24:02 +0000 Date: Tue, 19 Apr 2022 23:23:44 +0800 From: kernel test robot To: Russ Weight , mcgrof@kernel.org, rafael@kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, trix@redhat.com, lgoncalv@redhat.com, yilun.xu@intel.com, hao.wu@intel.com, matthew.gerlach@linux.intel.com, basheer.ahmed.muddebihal@intel.com, tianfei.zhang@intel.com, Russ Weight Subject: Re: [PATCH v3 4/8] firmware_loader: Add firmware-upload support Message-ID: <202204192359.CTXNmgvX-lkp@intel.com> References: <20220418223753.639058-5-russell.h.weight@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220418223753.639058-5-russell.h.weight@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Hi Russ, Thank you for the patch! Yet something to improve: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on shuah-kselftest/next mcgrof/sysctl-next linus/master v5.18-rc3 next-20220419] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Russ-Weight/Extend-FW-framework-for-user-FW-uploads/20220419-064126 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 3123109284176b1532874591f7c81f3837bbdc17 config: parisc-randconfig-r033-20220419 (https://download.01.org/0day-ci/archive/20220419/202204192359.CTXNmgvX-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 11.2.0 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 # https://github.com/intel-lab-lkp/linux/commit/827b02dbc9848fee497e3f3edbe6ff441cae32f6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Russ-Weight/Extend-FW-framework-for-user-FW-uploads/20220419-064126 git checkout 827b02dbc9848fee497e3f3edbe6ff441cae32f6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/base/firmware_loader/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/base/firmware_loader/sysfs.c:9: drivers/base/firmware_loader/sysfs.h: In function '__firmware_loading_timeout': drivers/base/firmware_loader/sysfs.h:78:34: error: invalid use of undefined type 'struct firmware_fallback_config' 78 | return fw_fallback_config.loading_timeout; | ^ drivers/base/firmware_loader/sysfs.h: In function '__fw_fallback_set_timeout': drivers/base/firmware_loader/sysfs.h:84:27: error: invalid use of undefined type 'struct firmware_fallback_config' 84 | fw_fallback_config.loading_timeout = timeout; | ^ drivers/base/firmware_loader/sysfs.c: At top level: >> drivers/base/firmware_loader/sysfs.c:113:5: error: redefinition of 'register_sysfs_loader' 113 | int register_sysfs_loader(void) | ^~~~~~~~~~~~~~~~~~~~~ In file included from drivers/base/firmware_loader/sysfs.c:9: drivers/base/firmware_loader/sysfs.h:52:19: note: previous definition of 'register_sysfs_loader' with type 'int(void)' 52 | static inline int register_sysfs_loader(void) | ^~~~~~~~~~~~~~~~~~~~~ drivers/base/firmware_loader/sysfs.c: In function 'register_sysfs_loader': >> drivers/base/firmware_loader/sysfs.c:119:16: error: implicit declaration of function 'register_firmware_config_sysctl' [-Werror=implicit-function-declaration] 119 | return register_firmware_config_sysctl(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/base/firmware_loader/sysfs.c: At top level: >> drivers/base/firmware_loader/sysfs.c:122:6: error: redefinition of 'unregister_sysfs_loader' 122 | void unregister_sysfs_loader(void) | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/base/firmware_loader/sysfs.c:9: drivers/base/firmware_loader/sysfs.h:57:20: note: previous definition of 'unregister_sysfs_loader' with type 'void(void)' 57 | static inline void unregister_sysfs_loader(void) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/base/firmware_loader/sysfs.c: In function 'unregister_sysfs_loader': >> drivers/base/firmware_loader/sysfs.c:124:9: error: implicit declaration of function 'unregister_firmware_config_sysctl' [-Werror=implicit-function-declaration] 124 | unregister_firmware_config_sysctl(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/base/firmware_loader/sysfs.c:9: drivers/base/firmware_loader/sysfs.h: In function '__firmware_loading_timeout': drivers/base/firmware_loader/sysfs.h:79:1: error: control reaches end of non-void function [-Werror=return-type] 79 | } | ^ cc1: some warnings being treated as errors vim +/register_sysfs_loader +113 drivers/base/firmware_loader/sysfs.c 7fb618c8a43c63 Russ Weight 2022-04-18 112 7fb618c8a43c63 Russ Weight 2022-04-18 @113 int register_sysfs_loader(void) 7fb618c8a43c63 Russ Weight 2022-04-18 114 { 7fb618c8a43c63 Russ Weight 2022-04-18 115 int ret = class_register(&firmware_class); 7fb618c8a43c63 Russ Weight 2022-04-18 116 7fb618c8a43c63 Russ Weight 2022-04-18 117 if (ret != 0) 7fb618c8a43c63 Russ Weight 2022-04-18 118 return ret; 7fb618c8a43c63 Russ Weight 2022-04-18 @119 return register_firmware_config_sysctl(); 7fb618c8a43c63 Russ Weight 2022-04-18 120 } 7fb618c8a43c63 Russ Weight 2022-04-18 121 7fb618c8a43c63 Russ Weight 2022-04-18 @122 void unregister_sysfs_loader(void) 7fb618c8a43c63 Russ Weight 2022-04-18 123 { 7fb618c8a43c63 Russ Weight 2022-04-18 @124 unregister_firmware_config_sysctl(); 7fb618c8a43c63 Russ Weight 2022-04-18 125 class_unregister(&firmware_class); 7fb618c8a43c63 Russ Weight 2022-04-18 126 } 7fb618c8a43c63 Russ Weight 2022-04-18 127 -- 0-DAY CI Kernel Test Service https://01.org/lkp