Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1139778rwd; Thu, 8 Jun 2023 12:49:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7elR8sxHdJZpsWj2mHxiWa2CHxUqK9k7jMLO67/yBDPokUKIRDGyrIXfv3C8lPx0SxdkSm X-Received: by 2002:a17:902:9692:b0:1af:a4f0:bce2 with SMTP id n18-20020a170902969200b001afa4f0bce2mr8531594plp.20.1686253772828; Thu, 08 Jun 2023 12:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686253772; cv=none; d=google.com; s=arc-20160816; b=xGFmChVC1nnXF36dnweyQDKNhWCIMbNdYwLeK2EcVUDu6iLbIbk4GEjmAeGhof6eBN gkZu6Nc1g11P4v2LIYCjrYNZnx1X4RgLWoQ6IlfhXbbCAl+N2oy4fa+esOXOjU3ob3Ew ENNozaPhlZ++Fvc+oI65tnzb/A4S/ElqNRL3KBLfClUtngwEobjRAmWaSd9XzcF5WPTo Mo/GF09WJmd/QCV9TRA/Ejr/eWUPUmR3MuVzrURJ6qF0axTz5mewL82bpXfI2pYrlluc w3vbpqvxmGICv5xWGmaN7m232Of2XhdKhxIP+JG7eM8iffFrO/4POruhb6juf8H06O1U z6Lw== 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=pTqzX5udkNoDvu3vB3cqLa525dDd+YDuoOL4kY1in44=; b=vBDii86yifyhOqj0QDpKMfiuHYE/4D3m8hdXYEfB1nFCYiowyALIZ2iy7nT801b3es 7dmABxaS/Q4rxMLxRslFYVfl/EPfOzslhQAyNVTs45tlZbC4q8y1wj5BnBFs5fKK8Hjd 17TbPF633qFh1B3sSmFaqsQSplU9K6KKMYTPqDE6f5ipdo+fDRhupGW5pEp8QutJJipD 0MVBXjanCEgKcqisY0kTV/Pi71XLWvhsXfC7y3tF6CBGvYP7PR4qsLN9atrebmjYViJv YbVBGlnYJkvF5Dw/ik4MSZiP+dZU216bgitdJBTHozvN/Csl5IH5XyEOhaa/YOjG85LI io+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cWqcW9dz; 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 f15-20020a170902ce8f00b001afe7ef68b6si1495382plg.452.2023.06.08.12.49.18; Thu, 08 Jun 2023 12:49:32 -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=cWqcW9dz; 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 S236129AbjFHTdw (ORCPT + 99 others); Thu, 8 Jun 2023 15:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235941AbjFHTdu (ORCPT ); Thu, 8 Jun 2023 15:33:50 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9113B1FEB; Thu, 8 Jun 2023 12:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686252828; x=1717788828; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=r6tYbiS2x3QByAMznRR6XCD3rucMbK8zjcQwHztF1x8=; b=cWqcW9dzfiOwkEByIdbXN5fBET+0HJTrGRrRGpkxS4QPHi7fqqN1y0pz qUuuBQmnHuGqps1TaJ0giblxJ+DPSQlcXNqerLBqR2oZtwZVLTguo46d3 7/vfpJKA2qO/Hk4xSXJKnR5drBHgwCOQA0vSot++btewK4iOsl26Z+9vA VYQY4iCnjbszQaDZ0tMw7lhVQzipQENbqKBiTTHULT68NGgR1giubqm2V PrhFzy3QzZWWp+Xt2i0LexvTHjHsxVLDIci3TpR4935P/xB5IVKClj5vI z7bAOOm+mmfY4jgKhBF8k+yuid3qcbe5VoRqgmMNo6Fw+AdWZxzBI7OLw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="420997995" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="420997995" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 12:33:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="854468969" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="854468969" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 08 Jun 2023 12:33:42 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q7LO9-0008CC-20; Thu, 08 Jun 2023 19:33:41 +0000 Date: Fri, 9 Jun 2023 03:32:51 +0800 From: kernel test robot To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Geert Uytterhoeven , Linus Walleij , Bartosz Golaszewski , Alexander Stein Subject: Re: [rfc, rft, PATCH v1 1/1] gpio: aggregator: Introduce delay support for individual output pins Message-ID: <202306090307.hZlCud1x-lkp@intel.com> References: <20230608162130.55015-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230608162130.55015-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_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 Andy, kernel test robot noticed the following build errors: [auto build test ERROR on brgl/gpio/for-next] [also build test ERROR on linus/master v6.4-rc5 next-20230608] [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/gpio-aggregator-Introduce-delay-support-for-individual-output-pins/20230609-002703 base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next patch link: https://lore.kernel.org/r/20230608162130.55015-1-andriy.shevchenko%40linux.intel.com patch subject: [rfc, rft, PATCH v1 1/1] gpio: aggregator: Introduce delay support for individual output pins config: i386-randconfig-i051-20230608 (https://download.01.org/0day-ci/archive/20230609/202306090307.hZlCud1x-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): git remote add brgl https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git git fetch brgl gpio/for-next git checkout brgl/gpio/for-next b4 shazam https://lore.kernel.org/r/20230608162130.55015-1-andriy.shevchenko@linux.intel.com # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpio/ 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/202306090307.hZlCud1x-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/gpio/gpio-aggregator.c: In function 'gpiochip_fwd_delay_of_xlate': >> drivers/gpio/gpio-aggregator.c:426:41: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells' 426 | if (gpiospec->args_count != chip->of_gpio_n_cells) | ^~ drivers/gpio/gpio-aggregator.c: In function 'gpiochip_fwd_create': >> drivers/gpio/gpio-aggregator.c:518:21: error: 'struct gpio_chip' has no member named 'of_xlate' 518 | chip->of_xlate = gpiochip_fwd_delay_of_xlate; | ^~ drivers/gpio/gpio-aggregator.c:519:21: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells' 519 | chip->of_gpio_n_cells = 3; | ^~ vim +426 drivers/gpio/gpio-aggregator.c 417 418 static int gpiochip_fwd_delay_of_xlate(struct gpio_chip *chip, 419 const struct of_phandle_args *gpiospec, 420 u32 *flags) 421 { 422 struct gpiochip_fwd *fwd = gpiochip_get_data(chip); 423 struct gpiochip_fwd_timing *timings; 424 u32 line; 425 > 426 if (gpiospec->args_count != chip->of_gpio_n_cells) 427 return -EINVAL; 428 429 line = gpiospec->args[0]; 430 if (line >= chip->ngpio) 431 return -EINVAL; 432 433 timings = &fwd->delay_timings[line]; 434 timings->ramp_up_us = gpiospec->args[1]; 435 timings->ramp_down_us = gpiospec->args[2]; 436 437 return line; 438 } 439 440 /** 441 * gpiochip_fwd_create() - Create a new GPIO forwarder 442 * @dev: Parent device pointer 443 * @ngpios: Number of GPIOs in the forwarder. 444 * @descs: Array containing the GPIO descriptors to forward to. 445 * This array must contain @ngpios entries, and must not be deallocated 446 * before the forwarder has been destroyed again. 447 * @delay: True if the pins have an external delay line. 448 * 449 * This function creates a new gpiochip, which forwards all GPIO operations to 450 * the passed GPIO descriptors. 451 * 452 * Return: An opaque object pointer, or an ERR_PTR()-encoded negative error 453 * code on failure. 454 */ 455 static struct gpiochip_fwd *gpiochip_fwd_create(struct device *dev, 456 unsigned int ngpios, 457 struct gpio_desc *descs[], 458 bool delay) 459 { 460 const char *label = dev_name(dev); 461 struct gpiochip_fwd *fwd; 462 struct gpio_chip *chip; 463 unsigned int i; 464 int error; 465 466 fwd = devm_kzalloc(dev, struct_size(fwd, tmp, fwd_tmp_size(ngpios)), 467 GFP_KERNEL); 468 if (!fwd) 469 return ERR_PTR(-ENOMEM); 470 471 chip = &fwd->chip; 472 473 /* 474 * If any of the GPIO lines are sleeping, then the entire forwarder 475 * will be sleeping. 476 * If any of the chips support .set_config(), then the forwarder will 477 * support setting configs. 478 */ 479 for (i = 0; i < ngpios; i++) { 480 struct gpio_chip *parent = gpiod_to_chip(descs[i]); 481 482 dev_dbg(dev, "%u => gpio %d irq %d\n", i, 483 desc_to_gpio(descs[i]), gpiod_to_irq(descs[i])); 484 485 if (gpiod_cansleep(descs[i])) 486 chip->can_sleep = true; 487 if (parent && parent->set_config) 488 chip->set_config = gpio_fwd_set_config; 489 } 490 491 chip->label = label; 492 chip->parent = dev; 493 chip->owner = THIS_MODULE; 494 chip->get_direction = gpio_fwd_get_direction; 495 chip->direction_input = gpio_fwd_direction_input; 496 chip->direction_output = gpio_fwd_direction_output; 497 chip->get = gpio_fwd_get; 498 chip->get_multiple = gpio_fwd_get_multiple_locked; 499 chip->set = gpio_fwd_set; 500 chip->set_multiple = gpio_fwd_set_multiple_locked; 501 chip->to_irq = gpio_fwd_to_irq; 502 chip->base = -1; 503 chip->ngpio = ngpios; 504 fwd->descs = descs; 505 506 if (chip->can_sleep) 507 mutex_init(&fwd->mlock); 508 else 509 spin_lock_init(&fwd->slock); 510 511 if (delay) { 512 fwd->delay_timings = devm_kcalloc(dev, ngpios, 513 sizeof(*fwd->delay_timings), 514 GFP_KERNEL); 515 if (!fwd->delay_timings) 516 return ERR_PTR(-ENOMEM); 517 > 518 chip->of_xlate = gpiochip_fwd_delay_of_xlate; 519 chip->of_gpio_n_cells = 3; 520 } 521 522 error = devm_gpiochip_add_data(dev, chip, fwd); 523 if (error) 524 return ERR_PTR(error); 525 526 return fwd; 527 } 528 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki