Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp131990rdb; Sun, 28 Jan 2024 17:46:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHK6mmEAJa06XY6yoR2Wuqw7+CVnAI4+pi+vr/mvv3GItSQLfl9RMAdTsVozLUmr+q561QH X-Received: by 2002:a0c:b25b:0:b0:681:3009:3d98 with SMTP id k27-20020a0cb25b000000b0068130093d98mr6663273qve.13.1706492769364; Sun, 28 Jan 2024 17:46:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706492769; cv=pass; d=google.com; s=arc-20160816; b=hm8UcqbztZX7vHXtmjMs40lOnZHaamo5pM8U9ixRpiuqzo81PooYPO1+vnx80QZX/W MqSXcVDZTlCStpUFDlcNGcSIK7Agf+Z7/EJi6ydEy5BkHZUXEvEz2VMufd/SIa31Rjtl ZD1AF0LO6lIW0bjQOK1jt52oW0uLY1ltBk+oUHru4MaYPhaG783I5uJiRlr3WgKKH39Z Z6SsSyi90qplsAa7g5La9u3VCJoKoBooW47ocfA/Fwy7ttK1Lo4itER5MonhVjJOYvCn iEMIwxbXi2/92OOL4Md4xlEMrmkaC/3fN7SXAx0Mh8OFypnNZOPXsSWJfizylL2nVLsd w+dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+2HpzD4/2s55GiQIoc4k3l8lpCFXKGwmD7Ln5AIh/gs=; fh=rKE+zNSGjqM4RZ4zxdTJvtnkMtVKcbvRCpy5WlraRmw=; b=F+kSiALtn9+eMlb2tC01A1owbFBVg8OQpxTIsEnc4zA8N2rN2ZusS4oPLEXvcDLT8J a9qnI6lqpn3YIVnJoWHXlwN+mdVR2XaxyvFy1tNixlFfP9bArmXBbPRuCnVz/n+BA/KY W3IainwQpuwadpXGOqpfJmdHDHfmOYpQMRlJkpIz9vXA7RtICHtbcTYHDL4IhlkC4mx6 VBssjpadck/GHgKb5AAvfNPRODlNTyXxizya9MxhU+xDuYGhFcV4GrOlpanTWef54pQh G6UnLq+f9sUirHOycoE6BKs4rbKSqXm4u29mKZK17rrbGvN2piVa9wUSrnGSCS13z5oy zoWA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f5KrTmKc; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-42071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h13-20020a0562140dad00b00686b151b5dasi6631375qvh.246.2024.01.28.17.46.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 17:46:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=f5KrTmKc; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-42071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1573A1C20FB9 for ; Mon, 29 Jan 2024 01:46:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87C54DF6B; Mon, 29 Jan 2024 01:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="f5KrTmKc" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9077DDCA; Mon, 29 Jan 2024 01:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706492760; cv=none; b=kV0atJn326Hc2a03R0/k7CT+pvLwhaCrm+uA/Wl23cfFoyWXg1+puwkK84ymAU7KtAVn/8260MFKzvOMg4uDBg60aab7PVM1kISQ7HZKAZ/CeGWS04ZRJBAEd4nvISGH+igiWDo5Ir1cxeZYCbWYFUaYLRNvDUavzHbUVvOr2fY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706492760; c=relaxed/simple; bh=/X9maGrA+Lh7slthhc+oyBV/Kxlz/28CEirMyL/2Fhw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pD1+EACpGRp5YjpBrgCkPQIX1ekA0KSL4NGxPB/xmV0JUkqyEskFW0v9fqxgUD3ToIVmDZs8il2cQMb1bclqyCYlaPJuHHMDMtYJ8F+tF62AC8P+yEqoxkPsdVOwOXeO92g3HRaRgqoTk2atI0vWW0I3STp79/wCepqPKVFoZLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=f5KrTmKc; arc=none smtp.client-ip=134.134.136.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706492758; x=1738028758; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/X9maGrA+Lh7slthhc+oyBV/Kxlz/28CEirMyL/2Fhw=; b=f5KrTmKcX79r63o+Hi6yxy9EZoTLGM58ITGmCETHqs+KyNuTUKXkPGiC Hgr6XAClijGMt2QXuZuS2ss9FCEapatb9szn2IRQfeVpILwgpd9SFRHTB zCuvBfNA56gLHM1cI/3Z3EzxE+aL9ro5YgkjACjsACrj90d+2MlteakAs A8FsTw5MumuS+Sf6pyQyIJqWZwYRmRu8pWRKR0VJ0nBZrZnj8smG070YV H7UDHN/hV1sLy/Ng0QavxMOWfI4SdzxyXmRVCBMrUA1d5gkoKYX2NkJZi MiS6o0OrlQ3iyJpAEeRj0B7ey5uf7EZIvTPhU8nsmQu2cHgESNGf/zB2O w==; X-IronPort-AV: E=McAfee;i="6600,9927,10967"; a="393262429" X-IronPort-AV: E=Sophos;i="6.05,226,1701158400"; d="scan'208";a="393262429" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2024 17:45:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10967"; a="910898340" X-IronPort-AV: E=Sophos;i="6.05,226,1701158400"; d="scan'208";a="910898340" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 28 Jan 2024 17:45:54 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rUGie-0003wC-1R; Mon, 29 Jan 2024 01:45:52 +0000 Date: Mon, 29 Jan 2024 09:45:33 +0800 From: kernel test robot To: Jacky Huang , linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, j.neuschaefer@gmx.net Cc: oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ychuang3@nuvoton.com, schung@nuvoton.com Subject: Re: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver Message-ID: <202401290933.pxXzpfAD-lkp@intel.com> References: <20240123080637.1902578-5-ychuang570808@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240123080637.1902578-5-ychuang570808@gmail.com> Hi Jacky, kernel test robot noticed the following build errors: [auto build test ERROR on linusw-pinctrl/devel] [also build test ERROR on linusw-pinctrl/for-next robh/for-next linus/master v6.8-rc1 next-20240125] [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/Jacky-Huang/dt-bindings-reset-Add-syscon-to-nuvoton-ma35d1-system-management-node/20240123-161939 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel patch link: https://lore.kernel.org/r/20240123080637.1902578-5-ychuang570808%40gmail.com patch subject: [PATCH v3 4/4] pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver config: x86_64-randconfig-121-20240128 (https://download.01.org/0day-ci/archive/20240129/202401290933.pxXzpfAD-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240129/202401290933.pxXzpfAD-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/202401290933.pxXzpfAD-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_gpiolib_register': >> drivers/pinctrl/nuvoton/pinctrl-ma35.c:523:27: error: 'struct gpio_chip' has no member named 'of_gpio_n_cells' 523 | bank->chip.of_gpio_n_cells = 2; | ^ drivers/pinctrl/nuvoton/pinctrl-ma35.c: At top level: >> drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:10: error: 'const struct pinconf_ops' has no member named 'is_generic' 1008 | .is_generic = true, | ^~~~~~~~~~ drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:23: warning: initialization of 'int (*)(struct pinctrl_dev *, unsigned int, long unsigned int *)' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1008 | .is_generic = true, | ^~~~ drivers/pinctrl/nuvoton/pinctrl-ma35.c:1008:23: note: (near initialization for 'ma35_pinconf_ops.pin_config_group_get') drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_pinctrl_parse_groups': >> drivers/pinctrl/nuvoton/pinctrl-ma35.c:1024:15: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration] 1024 | ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &nconfigs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | pinconf_generic_dump_config cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PINCTRL_MA35 Depends on [n]: PINCTRL [=y] && (ARCH_MA35 || COMPILE_TEST [=n]) && OF [=n] Selected by [y]: - PINCTRL_MA35D1 [=y] && PINCTRL [=y] vim +523 drivers/pinctrl/nuvoton/pinctrl-ma35.c 506 507 static int ma35_gpiolib_register(struct platform_device *pdev, struct ma35_pinctrl *npctl) 508 { 509 struct ma35_pin_ctrl *ctrl = npctl->ctrl; 510 struct ma35_pin_bank *bank = ctrl->pin_banks; 511 int ret; 512 int i; 513 514 for (i = 0; i < ctrl->nr_banks; ++i, ++bank) { 515 if (!bank->valid) { 516 dev_warn(&pdev->dev, "bank %s is not valid\n", 517 bank->np->name); 518 continue; 519 } 520 bank->irqtype = 0; 521 bank->irqinten = 0; 522 bank->chip.label = bank->name; > 523 bank->chip.of_gpio_n_cells = 2; 524 bank->chip.parent = &pdev->dev; 525 bank->chip.request = ma35_gpio_core_to_request; 526 bank->chip.direction_input = ma35_gpio_core_direction_in; 527 bank->chip.direction_output = ma35_gpio_core_direction_out; 528 bank->chip.get = ma35_gpio_core_get; 529 bank->chip.set = ma35_gpio_core_set; 530 bank->chip.base = -1; 531 bank->chip.ngpio = bank->nr_pins; 532 bank->chip.can_sleep = false; 533 spin_lock_init(&bank->lock); 534 535 if (bank->irq > 0) { 536 struct gpio_irq_chip *girq; 537 538 girq = &bank->chip.irq; 539 gpio_irq_chip_set_chip(girq, &ma35_gpio_irqchip); 540 girq->parent_handler = ma35_irq_demux_intgroup; 541 girq->num_parents = 1; 542 543 girq->parents = devm_kcalloc(&pdev->dev, 1, sizeof(*girq->parents), 544 GFP_KERNEL); 545 if (!girq->parents) 546 return -ENOMEM; 547 548 girq->parents[0] = bank->irq; 549 girq->default_type = IRQ_TYPE_NONE; 550 girq->handler = handle_level_irq; 551 } 552 553 ret = gpiochip_add_data(&bank->chip, bank); 554 if (ret) { 555 dev_err(&pdev->dev, "failed to register gpio_chip %s, error code: %d\n", 556 bank->chip.label, ret); 557 goto fail; 558 } 559 } 560 return 0; 561 562 fail: 563 for (--i, --bank; i >= 0; --i, --bank) { 564 if (!bank->valid) 565 continue; 566 gpiochip_remove(&bank->chip); 567 } 568 return ret; 569 } 570 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki