Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1195169rwb; Sun, 18 Sep 2022 02:36:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70ShBxeACeBgI3wZ7prtymeiuPJVmaPTxgWO7nUFOiLYaePSXsgwpEV8G1WlW63dmvvpLK X-Received: by 2002:a17:907:d8e:b0:77d:2649:1a78 with SMTP id go14-20020a1709070d8e00b0077d26491a78mr9294871ejc.521.1663493795043; Sun, 18 Sep 2022 02:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663493795; cv=none; d=google.com; s=arc-20160816; b=EIF/vS3fNhK16DqiWOIZajz12JNqE0BIgOMowXwmd5lQdHrebWM+1RUb8e7vZ4PjVA JH+fHuZdeLMvHPKQBpCjdj4YufN+U7pURGjc/6aZ8abpLCKN2EQYDWV2ubGCP8j2XAS9 nK0qRGnFKyKQmuya3HjFW+PplxRQvf28utrXadk+Xxt0pr7vkHKOl1uG9rLzmpu1TOKG YJz9wryqPyK10wt2qqOlmKqzA491JuJ8D4UK59Iz6ckNaIa1l+39hlBbK11TjjcO9Vvm I/z9zGcKOTpmvsuBQU9p3L5vqftph3FBsQc+T06kLfV2fhfHLhl7ATq0FrIHDOh2IpJ9 YZtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=6McOB/TuiDeax3dSyAvmmnqI78Jj4Zzy5og0MUDEq+k=; b=sWUruVIjdwmMYyjzI3r7AXHjbYo16bJXm7ujJtKEmt3iqIB7Bmrc1P2UiVU4HCdx96 z4Q2DwnseKzuk5qB92MA08dZGHV0jOl8y8/u2EjUQHJfc5de1b4qXXlG3HXe6GoDTRLW ilZ6mgdGt6e5AK85srvC4ATFwm//tyOnK3+TnXEVwdu/deC0oMfx4+ERcWLSZxIngCs8 hodnyr5ka7qYoq7GvCO8zhbsm0FNSzXvogSZtRjrtI9qqZiE3/ZJ2RL5TdHCalP1ZmqF HAd4J5PlBDKO5uoyrDzMo8Vz46Fz4x4KtXEerI5tykCD/kzElTePlIv0C2DKLbz74XVv Lvrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw24-20020a1709066a1800b007308bd40223si9833618ejc.669.2022.09.18.02.36.08; Sun, 18 Sep 2022 02:36:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbiIRJZ6 (ORCPT + 99 others); Sun, 18 Sep 2022 05:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiIRJZv (ORCPT ); Sun, 18 Sep 2022 05:25:51 -0400 Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0CEC21835 for ; Sun, 18 Sep 2022 02:25:49 -0700 (PDT) Received: from [192.168.1.18] ([90.11.190.129]) by smtp.orange.fr with ESMTPA id ZqYboS2ydtk1aZqYcoIyTK; Sun, 18 Sep 2022 11:25:48 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 18 Sep 2022 11:25:48 +0200 X-ME-IP: 90.11.190.129 Message-ID: Date: Sun, 18 Sep 2022 11:25:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 3/3] misc: microchip: pci1xxxx: Fix the error handling paths of gp_aux_bus_probe() Content-Language: en-US To: kernel test robot , Kumaravel Thiagarajan , Arnd Bergmann , Greg Kroah-Hartman Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-gpio@vger.kernel.org References: <1b41531de02ee029628d9b0ec2cf1ee7f180fe10.1663482259.git.christophe.jaillet@wanadoo.fr> <202209181527.7wmi1NBN-lkp@intel.com> From: Christophe JAILLET In-Reply-To: <202209181527.7wmi1NBN-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Le 18/09/2022 à 10:03, kernel test robot a écrit : > Hi Christophe, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on char-misc/char-misc-testing] > [also build test WARNING on next-20220916] > [cannot apply to linus/master v6.0-rc5] > [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/Christophe-JAILLET/misc-microchip-pci1xxxx-Fix-the-error-handling-path-of-gp_aux_bus_probe/20220918-143022 > base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git ceecbbddbf549fe0b7ffa3804a6e255b3360030f > config: xtensa-randconfig-r022-20220918 > compiler: xtensa-linux-gcc (GCC) 12.1.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/089c1639fdebdad9be8de56c1546308eac15747d > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Christophe-JAILLET/misc-microchip-pci1xxxx-Fix-the-error-handling-path-of-gp_aux_bus_probe/20220918-143022 > git checkout 089c1639fdebdad9be8de56c1546308eac15747d > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/misc/mchp_pci1xxxx/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c: In function 'gp_aux_bus_probe': >>> drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c:35:13: warning: variable 'irq' set but not used [-Wunused-but-set-variable] > 35 | int irq, retval; > | ^~~ > > > vim +/irq +35 drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c > [...] > 75 > 76 retval = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); > 77 if (retval < 0) > 78 goto err_aux_dev_del_0; > 79 > 80 retval = pci_irq_vector(pdev, 0); > 81 if (retval < 0) > 82 goto err_aux_dev_del_0; > 83 irq = retval; We save the irq number here... > 84 > 85 aux_bus->aux_device_wrapper[1] = kzalloc(sizeof(*aux_bus->aux_device_wrapper[1]), > 86 GFP_KERNEL); > 87 if (!aux_bus->aux_device_wrapper[1]) { > 88 retval = -ENOMEM; > 89 goto err_aux_dev_del_0; > 90 } > 91 > 92 retval = ida_alloc(&gp_client_ida, GFP_KERNEL); > 93 if (retval < 0) { > 94 kfree(aux_bus->aux_device_wrapper[1]); > 95 goto err_aux_dev_del_0; > 96 } > 97 > 98 aux_bus->aux_device_wrapper[1]->aux_dev.name = aux_dev_gpio_name; > 99 aux_bus->aux_device_wrapper[1]->aux_dev.dev.parent = &pdev->dev; > 100 aux_bus->aux_device_wrapper[1]->aux_dev.dev.release = gp_auxiliary_device_release; > 101 aux_bus->aux_device_wrapper[1]->aux_dev.id = retval; > 102 > 103 aux_bus->aux_device_wrapper[1]->gp_aux_data.region_start = pci_resource_start(pdev, 0); > 104 aux_bus->aux_device_wrapper[1]->gp_aux_data.region_length = pci_resource_end(pdev, 0); > 105 > 106 pdev->irq = retval; ... then this should be: pdev->irq = irq; here. I'll send a v2 in a few days. Let see first if we get some other feedback. CJ