Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1338142rdb; Wed, 6 Dec 2023 16:17:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqaASbYkDmk/0ylqavkb7ryM6yCFvAFphI9+qyslmnXhtKzb/UVOL07cw024n9WWvqYopg X-Received: by 2002:a17:902:db07:b0:1d0:bcb9:6dd5 with SMTP id m7-20020a170902db0700b001d0bcb96dd5mr1523292plx.133.1701908245930; Wed, 06 Dec 2023 16:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701908245; cv=none; d=google.com; s=arc-20160816; b=P7L+HcBZUIdcMskzSIMvWspAnyqU7BFYdG7/APDFTUoT5Pf7CMisorqXexb7rlrgOU yVFQrDdF6x/DqnT+G3EmdbSMMihVPAyXyCNw9C01gCDDprFqIyZL8YMovEeYsc5Ml8eB fslYz1LJl04w8eF5jj1KlZyT3ZT5CZhVbuTNFMDKYU2AnaY0+fiwM9X2Nya79lOebFKg m3a+R0JP3CyWyQL0JkhDveaBH22GsQtGfar94cHbdugkYaKvQrIpL0/qz5qp3Kk0ifcW JGLMPBJsQv0IaKcVkEo0BSH/7iP37aZ7VYNVC8lwEqn0opqFsxzs38uYJhyo9zVfIwjN eGsA== 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=jls19C8Zh+ZHelgJl97DZBH048Z2BgQie0mji3bQzME=; fh=OV7w5xQUNi8Jf7h/01Ql6eo78UjGdWMBuspdEnLt1q0=; b=RNKUAao8HtWz+8pMJXVNQi21FRsNuOV80pFuhpkYub6sUnF29ksIkGHOPR9zq6ROyF P1VqQJdjvudr35x1x0lbOTTtPtZwlpPx9Y0i0+JhM0z3VwjZZJPxvBDIgUWmjwRSA9xw rK6CSIJ6glWY/gBEe24e/6Wz+wYAAA8WxMN9HiOksPYFrnn9ETm639FqPi+4o3uUZkZH jnvOnoTfCghWuxjDrgVL061J381bWrkEKJyT+DW2GwXL56SnxGrMa5eXsRwaoCEotiNo HCipAu7dINFThO/UzMDabd0R0GF23MKP9JavFnEcFllO4CDFFI0Pu5a+vnz8A61IPKd8 xhhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WZQgv/W9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f14-20020a170902ce8e00b001d09c96b9f9si72921plg.425.2023.12.06.16.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 16:17:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WZQgv/W9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CA8CC80C8D47; Wed, 6 Dec 2023 16:17:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441850AbjLGARL (ORCPT + 99 others); Wed, 6 Dec 2023 19:17:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235174AbjLGARJ (ORCPT ); Wed, 6 Dec 2023 19:17:09 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93D0F1A5; Wed, 6 Dec 2023 16:17:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701908235; x=1733444235; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fB13dmwJjMECWyaEkSjqxu5l+yl9pd/z0TjHdRhOt2A=; b=WZQgv/W9lMqOTwtjhOks0aP5b/hiIRUmd67OTKJBoFWcZvimATlCXl1d d7AcwA34AXh5T/4zUyLF59GKI9wfX7euTcmoOzTpDtFj8A/KpsEFM7Fm7 7djSnfXbo1DigfS6srZlDRJt6NQ97q59oQYoIyPm/v/DCQf60eoOAoFBT oxBYDiGKXFlsTCxUo1nuHWhG+t1kEblmDj6V23sQq+soe5FBPEn4T3yvF x9N+MdFkihsR6tnw05nHfZOc4x4dZK7nEN6PcsY8AM7Jha6Gn+2DCNWhk er1KdMvHlRs6sX5KVVb1hjoR/TadNceihtuOu5ENGXVR455v3I2YS22tc Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="393021653" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="393021653" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 16:17:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="944827102" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="944827102" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 06 Dec 2023 16:17:11 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rB24j-000Bcc-14; Thu, 07 Dec 2023 00:17:09 +0000 Date: Thu, 7 Dec 2023 08:16:59 +0800 From: kernel test robot To: Jim Liu , JJLIU0@nuvoton.com, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, andy@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, KWLIU@nuvoton.com Cc: oe-kbuild-all@lists.linux.dev, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH v8 3/3] gpio: nuvoton: Add Nuvoton NPCM sgpio driver Message-ID: <202312070733.GNrG7abU-lkp@intel.com> References: <20231206014530.1600151-4-jim.t90615@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206014530.1600151-4-jim.t90615@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 16:17:24 -0800 (PST) Hi Jim, kernel test robot noticed the following build warnings: [auto build test WARNING on brgl/gpio/for-next] [also build test WARNING on robh/for-next linus/master v6.7-rc4 next-20231206] [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/Jim-Liu/dt-bindings-gpio-add-NPCM-sgpio-driver-bindings/20231206-095724 base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next patch link: https://lore.kernel.org/r/20231206014530.1600151-4-jim.t90615%40gmail.com patch subject: [PATCH v8 3/3] gpio: nuvoton: Add Nuvoton NPCM sgpio driver config: nios2-randconfig-r131-20231207 (https://download.01.org/0day-ci/archive/20231207/202312070733.GNrG7abU-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231207/202312070733.GNrG7abU-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/202312070733.GNrG7abU-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/gpio/gpio-npcm-sgpio.c:150:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected struct device const *dev @@ got int @@ drivers/gpio/gpio-npcm-sgpio.c:150:17: sparse: expected struct device const *dev drivers/gpio/gpio-npcm-sgpio.c:150:17: sparse: got int >> drivers/gpio/gpio-npcm-sgpio.c:150:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected struct device const *dev @@ got int @@ drivers/gpio/gpio-npcm-sgpio.c:150:17: sparse: expected struct device const *dev drivers/gpio/gpio-npcm-sgpio.c:150:17: sparse: got int >> drivers/gpio/gpio-npcm-sgpio.c:152:16: sparse: sparse: Using plain integer as NULL pointer >> drivers/gpio/gpio-npcm-sgpio.c:534:20: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned int *sft_clk @@ got unsigned int const * @@ drivers/gpio/gpio-npcm-sgpio.c:534:20: sparse: expected unsigned int *sft_clk drivers/gpio/gpio-npcm-sgpio.c:534:20: sparse: got unsigned int const * >> drivers/gpio/gpio-npcm-sgpio.c:535:20: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned int *clk_sel @@ got unsigned int const * @@ drivers/gpio/gpio-npcm-sgpio.c:535:20: sparse: expected unsigned int *clk_sel drivers/gpio/gpio-npcm-sgpio.c:535:20: sparse: got unsigned int const * drivers/gpio/gpio-npcm-sgpio.c:540:20: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned int *sft_clk @@ got unsigned int const * @@ drivers/gpio/gpio-npcm-sgpio.c:540:20: sparse: expected unsigned int *sft_clk drivers/gpio/gpio-npcm-sgpio.c:540:20: sparse: got unsigned int const * drivers/gpio/gpio-npcm-sgpio.c:541:20: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned int *clk_sel @@ got unsigned int const * @@ drivers/gpio/gpio-npcm-sgpio.c:541:20: sparse: expected unsigned int *clk_sel drivers/gpio/gpio-npcm-sgpio.c:541:20: sparse: got unsigned int const * vim +150 drivers/gpio/gpio-npcm-sgpio.c 134 135 static void __iomem *bank_reg(struct npcm_sgpio *gpio, 136 const struct npcm_sgpio_bank *bank, 137 const enum npcm_sgpio_reg reg) 138 { 139 switch (reg) { 140 case READ_DATA: 141 return gpio->base + bank->rdata_reg; 142 case WRITE_DATA: 143 return gpio->base + bank->wdata_reg; 144 case EVENT_CFG: 145 return gpio->base + bank->event_config; 146 case EVENT_STS: 147 return gpio->base + bank->event_status; 148 default: 149 /* actually if code runs to here, it's an error case */ > 150 dev_WARN(true, "Getting here is an error condition"); 151 } > 152 return 0; 153 } 154 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki