Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp206344rdb; Tue, 5 Dec 2023 03:15:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEipCRYBx2HSX9KBfRFF2RGtUMQrc1/YmPP2aqYnxpQ6vYAw77eh76ZGjxR2Owu8Du80ONZ X-Received: by 2002:a05:6e02:10c7:b0:35d:59a2:bec with SMTP id s7-20020a056e0210c700b0035d59a20becmr3434055ilj.130.1701774950040; Tue, 05 Dec 2023 03:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701774950; cv=none; d=google.com; s=arc-20160816; b=EzAS7CvmhtoV3gp61B3AKI4leUXyw9lmK5Xhsv/uZhPv+vL3Q1hMXt7A6v+Wh4iaAg xy3iI00jxUNI7qDAY/EkwM9p7JxfCbG4Y7cM7w5dIFCRzhbRbIFhs/HFVJWaOgOhrF6P WWpJesgl86KSLdiQO9B6MC5pIUQDQmCGtChm0ZR8c1feCPEdLAWTCNk8pHmLBPa2OHGM uNQxsBV8s9KxUMHOodmvsA2GjYxQGGheTNtTGdKLt9lMav6JAO6CkaS5qFDdAe7m3YOi X60rvervnvLKX6wWCcsNRrJUcA0MsQe7o+LMxb4OA4M4GcXtl5jX7RW+hmyw1AwCcF8X z3/g== 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=tH/EEyecjO10O8yO9lqnZ9hnwnqOt+lOqprskRhjY+k=; fh=WISuJ10/5GKyGCTzvUGZYlbGGUo22f3hI24pKzAU8TM=; b=Qnc8/GVuQUUBOH1vm3iVZP3vmlkllKezfkY67m3Fz6T34Gz0npKH44GLFfaAQqH4bm 1QBkrlzU7WVhAwIizWkvPDWZM0NuxppCWpiCwgKV8gvKNaZ2ogcrLyAIlyyyQnXHXtGp nAVehQ/5+7BeJK8XjPraujOMaWUJB5efQH0nAKZ+EIJ8igMVha9thoUKAPwvxQaxlMkn qeFTwDwULD3q0b4bMipJSr02XxUN25YFrfel2X9JV792IbnI9TuXxtmdpyohd33CL255 YU/n7+kIjlEcnSGeveYaUw4DSX23oDb/pM2YWFDQm6/MIalQCb+fWWEhXvlLyB0pmJay rtQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ee/ImYFu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i13-20020a63584d000000b005c62491dcf3si9402018pgm.841.2023.12.05.03.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:15:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ee/ImYFu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id BBAB880AC346; Tue, 5 Dec 2023 03:15:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376981AbjLELPX (ORCPT + 99 others); Tue, 5 Dec 2023 06:15:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345052AbjLELPW (ORCPT ); Tue, 5 Dec 2023 06:15:22 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93871124 for ; Tue, 5 Dec 2023 03:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701774928; x=1733310928; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ztw1slu3TaA4rUwHsafEEGA9mY1oz7LTl5MSrHnmkBM=; b=ee/ImYFuKhADZ7IpLfqrZ7b2sdvUEhi8BLXBNIafvA+9U4bRC0tBO6RR b4mOlgq39JXG3gjBVI82GU93T3fCftxu4NAMEi62A8MA3fePZIqZZsD/V YHjI0HiA9Tn32a14dLIgYSYe4Sfzf/2IjCcs+gyyxKXu3YLqz+IXDllj6 m/bcloPloVYrFZ6cOQze+VFNYL3WtKQH6ED+dQYPaGcs4FL4zzERffXUM p/CsSmWv+GSmWjrHsSx7fJu4STLs8AzOmZK08NbeULPJ/U87i0ltKXrqZ 4v2XaEZ45hSA7v2RwWx22/pzVGupdcVjsIvsGg/6pImaqsxnFVsnWrNo3 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="15427261" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="15427261" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 03:15:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="799943800" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="799943800" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 05 Dec 2023 03:15:26 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rATOe-0008qY-0G; Tue, 05 Dec 2023 11:15:24 +0000 Date: Tue, 5 Dec 2023 19:15:07 +0800 From: kernel test robot To: Haoran Liu , support.opensource@diasemi.com Cc: oe-kbuild-all@lists.linux.dev, lee@kernel.org, linux-kernel@vger.kernel.org, Haoran Liu Subject: Re: [PATCH] [mfd] da9052: Add error handling for spi_setup in da9052_spi_probe Message-ID: <202312051908.qxoHjGkx-lkp@intel.com> References: <20231203052125.37334-1-liuhaoran14@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231203052125.37334-1-liuhaoran14@163.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Tue, 05 Dec 2023 03:15:46 -0800 (PST) Hi Haoran, kernel test robot noticed the following build errors: [auto build test ERROR on lee-mfd/for-mfd-next] [also build test ERROR on lee-leds/for-leds-next lee-mfd/for-mfd-fixes linus/master v6.7-rc4 next-20231205] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Haoran-Liu/da9052-Add-error-handling-for-spi_setup-in-da9052_spi_probe/20231203-132410 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next patch link: https://lore.kernel.org/r/20231203052125.37334-1-liuhaoran14%40163.com patch subject: [PATCH] [mfd] da9052: Add error handling for spi_setup in da9052_spi_probe config: i386-buildonly-randconfig-004-20231203 (https://download.01.org/0day-ci/archive/20231205/202312051908.qxoHjGkx-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312051908.qxoHjGkx-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/202312051908.qxoHjGkx-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/mfd/da9052-spi.c: In function 'da9052_spi_probe': >> drivers/mfd/da9052-spi.c:25:6: error: redeclaration of 'ret' with no linkage int ret; ^~~ drivers/mfd/da9052-spi.c:22:6: note: previous declaration of 'ret' was here int ret; ^~~ vim +/ret +25 drivers/mfd/da9052-spi.c 18 19 static int da9052_spi_probe(struct spi_device *spi) 20 { 21 struct regmap_config config; 22 int ret; 23 const struct spi_device_id *id = spi_get_device_id(spi); 24 struct da9052 *da9052; > 25 int ret; 26 27 da9052 = devm_kzalloc(&spi->dev, sizeof(struct da9052), GFP_KERNEL); 28 if (!da9052) 29 return -ENOMEM; 30 31 spi->mode = SPI_MODE_0; 32 spi->bits_per_word = 8; 33 ret = spi_setup(spi); 34 if (ret) { 35 dev_err(&spi->dev, "spi_setup failed: %d\n", ret); 36 return ret; 37 } 38 39 da9052->dev = &spi->dev; 40 da9052->chip_irq = spi->irq; 41 42 spi_set_drvdata(spi, da9052); 43 44 config = da9052_regmap_config; 45 config.read_flag_mask = 1; 46 config.reg_bits = 7; 47 config.pad_bits = 1; 48 config.val_bits = 8; 49 config.use_single_read = true; 50 config.use_single_write = true; 51 52 da9052->regmap = devm_regmap_init_spi(spi, &config); 53 if (IS_ERR(da9052->regmap)) { 54 ret = PTR_ERR(da9052->regmap); 55 dev_err(&spi->dev, "Failed to allocate register map: %d\n", 56 ret); 57 return ret; 58 } 59 60 return da9052_device_init(da9052, id->driver_data); 61 } 62 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki