Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp622393pxp; Wed, 16 Mar 2022 12:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/mXJIzxWoDk+8A33y9UGyMTRP+D1MpO5TN+UCeshkkIbdEYbyxIhMllZxb2uKToWfODrr X-Received: by 2002:a17:903:2c7:b0:151:a932:f1f0 with SMTP id s7-20020a17090302c700b00151a932f1f0mr1094279plk.130.1647459837326; Wed, 16 Mar 2022 12:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647459837; cv=none; d=google.com; s=arc-20160816; b=pkVCO00w3uWlcSQW4Hhq9oFm1t8ZMP9rBtt5/5yiTPDApuol4u8tShmPIpTc429y78 tpppVp/5bjFXn9Br1g+qrqLdjCEGRrSaQ7Vc61qMgCVRwRRAY2TKrG5Pl/M7edY/Q65C oiGoN19AkkiN1v3IYm6IYwX1ulEozncjj/Fjm/YtNDwmvI9LUXu4FRZIehXQyynwvgQ2 4ldb4krcCpe8MYmB3AGuGjxCcFfNXvHaNJHWhVKf0TIDkxOxNLmxHz3mmlHUn1DkQJhi kJa4aOUcmMI2am6TQ+0EyAO615c5fGuTpu/XP21Wu+IK+6mv+RSaVnpMfGtGjX0qRMpL Z7nw== 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=3eoNL0sNdVFNFbdsM5doerkPjkraI0aT9TUhOdAtUc8=; b=Mt3qkU2LOxZ7e7R/LAIdQ883wLl39KUqu/ANPnf93Kbvdxjy+YTrC3uJrMwwDRkKMD mIVO1/K9j9iotEZtfWE1WWxYq4MP8/tQkopo7tBel6cdhoznzexuquhHd9KvfqcfCVml D1DR5ouepK2IY0Dem8D7+jRKJXoMzWdevLtVOrZAm4P6X/+5mmUJgrkWAukegDpoovO9 SMeKYd3Aaow3eUf+SM168gK1k66OZRwTE/U0Z3LA3UzXFa21jZFV9/XkY/ouwcmC1XY0 FWU36Oscvv9nQv1drkpUg8yFX/3FLHmJrxTt1cdZKpFJvjvQRL2xzXzD79fNIuQaui/B I3UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=daiEYqTH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a638c14000000b003816043eeaesi30483pgd.163.2022.03.16.12.43.35; Wed, 16 Mar 2022 12:43:57 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=daiEYqTH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350644AbiCORjl (ORCPT + 99 others); Tue, 15 Mar 2022 13:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232837AbiCORjj (ORCPT ); Tue, 15 Mar 2022 13:39:39 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED8C17A95; Tue, 15 Mar 2022 10:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647365906; x=1678901906; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5iBrHBecu813IvfaXeZehNAVdapzfSZNf/NzZwHaKl4=; b=daiEYqTHfADIaiEDs0WVFzTtiw4eHp0oPEDHLEoD0xmKd+uQthEs027l gvDi4bwdbdVMfecoNRDYBg+51Z5e2MPX+6EyxRxmiFrZ3pjbMBNk+nl2T f9Tvl5y4DKmsxLdL55c5uIyJwkbo7U7ryL45oDoaw1WZiS9dydL75iif/ cG+5Jud+sSSgCYwnBniRIegd0m9D8VjrPGorY1B528j+bmR5xIlPDfi+i i3KqmlhG1dc63yGD9CZFZE0GGQNjw0EKIVqDC03SPWvcwVIzWcGsuyOpZ +gBPO6O4ctVH+dI34USEz/6GqaYZR4SoEZCHj8gtTC5U5Co8DAMXA8ill g==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="236981530" X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="236981530" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 10:31:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="580597375" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 15 Mar 2022 10:31:15 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nUB0s-000BIr-KN; Tue, 15 Mar 2022 17:31:14 +0000 Date: Wed, 16 Mar 2022 01:30:55 +0800 From: kernel test robot To: Shreeya Patel , linus.walleij@linaro.org, brgl@bgdev.pl, krisman@collabora.com, andy.shevchenko@gmail.com Cc: kbuild-all@lists.01.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Shreeya Patel Subject: Re: [PATCH v2] gpio: Restrict usage of gc irq members before initialization Message-ID: <202203160100.PENzQsMs-lkp@intel.com> References: <20220315103813.84407-1-shreeya.patel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315103813.84407-1-shreeya.patel@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Shreeya, Thank you for the patch! Yet something to improve: [auto build test ERROR on linusw-gpio/for-next] [also build test ERROR on v5.17-rc8 next-20220310] [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/0day-ci/linux/commits/Shreeya-Patel/gpio-Restrict-usage-of-gc-irq-members-before-initialization/20220315-183950 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next config: arm-xcep_defconfig (https://download.01.org/0day-ci/archive/20220316/202203160100.PENzQsMs-lkp@intel.com/config) compiler: arm-linux-gnueabi-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/0day-ci/linux/commit/9f566a088a6f5fcb8830b07020294835072d516c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Shreeya-Patel/gpio-Restrict-usage-of-gc-irq-members-before-initialization/20220315-183950 git checkout 9f566a088a6f5fcb8830b07020294835072d516c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/gpio/gpiolib.c: In function 'gpiod_to_irq': >> drivers/gpio/gpiolib.c:3068:29: error: 'struct gpio_chip' has no member named 'irq' 3068 | if (gc->to_irq && gc->irq.gc_irq_initialized) { | ^~ vim +3068 drivers/gpio/gpiolib.c 3045 3046 /** 3047 * gpiod_to_irq() - return the IRQ corresponding to a GPIO 3048 * @desc: gpio whose IRQ will be returned (already requested) 3049 * 3050 * Return the IRQ corresponding to the passed GPIO, or an error code in case of 3051 * error. 3052 */ 3053 int gpiod_to_irq(const struct gpio_desc *desc) 3054 { 3055 struct gpio_chip *gc; 3056 int offset; 3057 3058 /* 3059 * Cannot VALIDATE_DESC() here as gpiod_to_irq() consumer semantics 3060 * requires this function to not return zero on an invalid descriptor 3061 * but rather a negative error number. 3062 */ 3063 if (!desc || IS_ERR(desc) || !desc->gdev || !desc->gdev->chip) 3064 return -EINVAL; 3065 3066 gc = desc->gdev->chip; 3067 offset = gpio_chip_hwgpio(desc); > 3068 if (gc->to_irq && gc->irq.gc_irq_initialized) { 3069 int retirq = gc->to_irq(gc, offset); 3070 3071 /* Zero means NO_IRQ */ 3072 if (!retirq) 3073 return -ENXIO; 3074 3075 return retirq; 3076 } 3077 return -ENXIO; 3078 } 3079 EXPORT_SYMBOL_GPL(gpiod_to_irq); 3080 --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org