Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4736370rwe; Tue, 30 Aug 2022 16:18:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qDk2F3F/HqtidNMZ3XYS9DtsieB9MwWxl9Uk1qjD40p/itTSliju9oNZxZ3qFP8gk414D X-Received: by 2002:a05:6402:4305:b0:448:5b80:757a with SMTP id m5-20020a056402430500b004485b80757amr11524886edc.198.1661901487204; Tue, 30 Aug 2022 16:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661901487; cv=none; d=google.com; s=arc-20160816; b=Sf62IvhRKesJmfVvSmCOMsOnD72vdPhIJTOnLQjCZsthYyNpBgoNksZS/UnpU4kCz+ KPpkEpKOSJFc/ReBr2CORQACSI7iOElMMMOIT5eB90IhEVuFJu8JYdUQT+VG09FD6gpb HhuU4cj0HQTp8Bs77iEePG0+7Ygx8GXhpoZ+aqOQVm/YBwLbe5oClpoyZSmC1plqjKo2 vgDbKhYnRFnmLdG5qmrbeu3ekO/lRHze1BbRGDW2fwzKSjx/qWnkfFj2WaebTWWx4PJD Qs9P0Ulpcy7bGBReDqmAJxvCjODF/p+K14hyaLCHDSNlA+LNGbPlY+3kawA9C+cSnZsc NhxA== 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=9Wbfs9XNePQuOy+4YhSq+39ah5vSFr/OwC/tx0VGFgU=; b=irp2oeuuzsriApyAqObR7RSAgO+euY+Jxy1VwMEdXL7FW8lccs98cxvjW96yGJPFJA lqbKGqo0QzEiEg8IZcgme/lNkRvAG/RLF9AptrlWIbwtRDYujtXND9H60yy84k41AxLk 2ImS71pVcdfoaghexptCATXe4S7dPN5hu1S6OotpkbJZNvfWnQfPvZrjJXzRfbS3blTy h5p3p5SHOVQ0Dd1AebbSyIIksZ+JjxFKKxhU5/kzwsGJT0VUH9Q634HeN4q44PNraVxC vQgWmXDTMw8waZtgdVkPWOYFcQC7NCCJU9zPg2E8Q871FibtQWBwQuHWrBQ+E62hKgQ9 rvzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jDWrAi7N; 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 xe14-20020a170907318e00b007414dda0c62si8671995ejb.817.2022.08.30.16.17.21; Tue, 30 Aug 2022 16:18:07 -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=jDWrAi7N; 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 S231470AbiH3Wkl (ORCPT + 99 others); Tue, 30 Aug 2022 18:40:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiH3Wkj (ORCPT ); Tue, 30 Aug 2022 18:40:39 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714B661139; Tue, 30 Aug 2022 15:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661899237; x=1693435237; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7KStPjHsVShLi+LNjXTCuUly40pj1Id1xR+kRJZWZTg=; b=jDWrAi7NR2l5EfAy4EB6wmGQUNfI7JjH6787jJ+3bEk7wvehM+UfkaLM w5/lTYPmxebd9u2mK8H6h8azA3FDST9WxATeTQfq+E7aRxhm3tNlR7lZ5 zZJUxZuv9+TGRFJWWgI7mM0WtrHdvPIi+YdVIh9hkZrRtHaEK0jY8Z7Rs zKf9ODWnXVbXwC4az/pnmYxcLTtioRzfa/7/t61BiN5C/Xx3UxwAqz0JI GOwFHOT/gk4asacaVxVOvUKRuaNXJry50pzpEDR5yTRj+XzYf4stP8dk8 9yLseYCvFJo/MRpdVBgxQZDXDhqjV9QZmguKHFMJK2wfhWT5vjhzisBZs Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10455"; a="275071211" X-IronPort-AV: E=Sophos;i="5.93,276,1654585200"; d="scan'208";a="275071211" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 15:40:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,276,1654585200"; d="scan'208";a="562835616" Received: from lkp-server02.sh.intel.com (HELO 77b6d4e16fc5) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 30 Aug 2022 15:40:35 -0700 Received: from kbuild by 77b6d4e16fc5 with local (Exim 4.96) (envelope-from ) id 1oT9uM-0000hL-2K; Tue, 30 Aug 2022 22:40:34 +0000 Date: Wed, 31 Aug 2022 06:39:36 +0800 From: kernel test robot To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Linus Walleij Subject: Re: [PATCH v1 1/1] pinctrl: pistachio: Switch to use fwnode instead of of_node Message-ID: <202208310643.sf31JN8Y-lkp@intel.com> References: <20220830193938.56826-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220830193938.56826-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-4.4 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_PASS,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 Andy, I love your patch! Yet something to improve: [auto build test ERROR on linusw-pinctrl/devel] [also build test ERROR on linus/master v6.0-rc3 next-20220830] [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/Andy-Shevchenko/pinctrl-pistachio-Switch-to-use-fwnode-instead-of-of_node/20220831-034037 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel config: arc-randconfig-r043-20220830 (https://download.01.org/0day-ci/archive/20220831/202208310643.sf31JN8Y-lkp@intel.com/config) compiler: arceb-elf-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/6802887aaf094f08bc139caf331767217f7318a4 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andy-Shevchenko/pinctrl-pistachio-Switch-to-use-fwnode-instead-of-of_node/20220831-034037 git checkout 6802887aaf094f08bc139caf331767217f7318a4 # 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=arc SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/pinctrl/pinctrl-pistachio.c: In function 'pistachio_gpio_register': >> drivers/pinctrl/pinctrl-pistachio.c:1360:53: error: 'dev' undeclared (first use in this function); did you mean 'cdev'? 1360 | child = device_get_named_child_node(dev, child_name); | ^~~ | cdev drivers/pinctrl/pinctrl-pistachio.c:1360:53: note: each undeclared identifier is reported only once for each function it appears in vim +1360 drivers/pinctrl/pinctrl-pistachio.c 1347 1348 static int pistachio_gpio_register(struct pistachio_pinctrl *pctl) 1349 { 1350 struct pistachio_gpio_bank *bank; 1351 unsigned int i; 1352 int irq, ret = 0; 1353 1354 for (i = 0; i < pctl->nbanks; i++) { 1355 char child_name[sizeof("gpioXX")]; 1356 struct fwnode_handle *child; 1357 struct gpio_irq_chip *girq; 1358 1359 snprintf(child_name, sizeof(child_name), "gpio%d", i); > 1360 child = device_get_named_child_node(dev, child_name); 1361 if (!child) { 1362 dev_err(pctl->dev, "No node for bank %u\n", i); 1363 ret = -ENODEV; 1364 goto err; 1365 } 1366 1367 if (!fwnode_property_present(child, "gpio-controller")) { 1368 fwnode_handle_put(child); 1369 dev_err(pctl->dev, 1370 "No gpio-controller property for bank %u\n", i); 1371 ret = -ENODEV; 1372 goto err; 1373 } 1374 1375 ret = fwnode_irq_get(child, 0); 1376 if (ret < 0) { 1377 fwnode_handle_put(child); 1378 dev_err(pctl->dev, "No IRQ for bank %u\n", i); 1379 goto err; 1380 } 1381 irq = ret; 1382 1383 bank = &pctl->gpio_banks[i]; 1384 bank->pctl = pctl; 1385 bank->base = pctl->base + GPIO_BANK_BASE(i); 1386 1387 bank->gpio_chip.parent = pctl->dev; 1388 bank->gpio_chip.fwnode = child; 1389 1390 girq = &bank->gpio_chip.irq; 1391 girq->chip = &bank->irq_chip; 1392 girq->parent_handler = pistachio_gpio_irq_handler; 1393 girq->num_parents = 1; 1394 girq->parents = devm_kcalloc(pctl->dev, 1, 1395 sizeof(*girq->parents), 1396 GFP_KERNEL); 1397 if (!girq->parents) { 1398 ret = -ENOMEM; 1399 goto err; 1400 } 1401 girq->parents[0] = irq; 1402 girq->default_type = IRQ_TYPE_NONE; 1403 girq->handler = handle_level_irq; 1404 1405 ret = gpiochip_add_data(&bank->gpio_chip, bank); 1406 if (ret < 0) { 1407 dev_err(pctl->dev, "Failed to add GPIO chip %u: %d\n", 1408 i, ret); 1409 goto err; 1410 } 1411 1412 ret = gpiochip_add_pin_range(&bank->gpio_chip, 1413 dev_name(pctl->dev), 0, 1414 bank->pin_base, bank->npins); 1415 if (ret < 0) { 1416 dev_err(pctl->dev, "Failed to add GPIO range %u: %d\n", 1417 i, ret); 1418 gpiochip_remove(&bank->gpio_chip); 1419 goto err; 1420 } 1421 } 1422 1423 return 0; 1424 err: 1425 for (; i > 0; i--) { 1426 bank = &pctl->gpio_banks[i - 1]; 1427 gpiochip_remove(&bank->gpio_chip); 1428 } 1429 return ret; 1430 } 1431 -- 0-DAY CI Kernel Test Service https://01.org/lkp