Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2145942rdb; Tue, 3 Oct 2023 11:35:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjAkRQt9wONqe/PJHd8+faGEe7vyBJmwc7YrDvXkqGEJYPkK08DKMcTXA9DGe11VXioEd5 X-Received: by 2002:a05:6a20:9384:b0:15d:facd:f20c with SMTP id x4-20020a056a20938400b0015dfacdf20cmr283837pzh.41.1696358142935; Tue, 03 Oct 2023 11:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696358142; cv=none; d=google.com; s=arc-20160816; b=jVms4xWO4SStp/0YVpYJIhq9bvKW/fuvQF6NldTGMScxwvjjnTSbwAjZ3z99bRN5lX u9nZnR4WFzZwFrxOKRN+j3hzcs9xrqY/5UzBKCdtxOxUfNFLran4L+51numfl0KwFe0i m/9RxpVp+9LAqz+dXjqQpW5xkcq18aHbv+geiOw0qFpY6krAG7ynOyLt9ZSABUoyMGCf kkG37abOdxNupacG5/4L2FGz6Y+rRH3JPpqxplOoPfJEVDOvUjc7RQIZtKpcOGY1xdsB q2iI9m6IbL5cBTr4E+IhCUequxt/NuVGfp/FRaxMTyva0dpixZdOM2dTGTlF6cYL3HxC 0UYw== 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=Y8kAqPVa/w2jQEVAt5eSKGE2wcL105Mwt7CBkD01qW8=; fh=Ooj11h2mUP6PiGwRw8I3M216KacwlSIP+MUMNznZStE=; b=GdYbIoQo2gROoCRhQcSiZ8hzI0HRd8EJE7HL4mpB5BUe4mcuaUcCozo4Ex/0t8fB3g UdVoH+sRSS1t+Ev562vJW1X4ymSI4i+evylxx13PkIZSkGhICNUD9Jsgctb8FkjkYcK3 pdzzE4jby/HnPTRrBZQThGe628aTWBV6iCc3zRlET7pvvVk9LTeOUmjcS44xuJKUWUuR mYXTZ7fi2EuXpA6wqV4TbTwF1bQL5xgY9BOEcCWO+xRfS7ftBeaqUndmSjb/42CRYZEm f3LQBiMS52DTKE+el+Wb0Cv2ZsFhpHxdtL3Xh2qg3uThfaIBt7HsAUtJhvLPHdZK4oXw J8hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=amX5lHa9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id e19-20020a170902f1d300b001bbc138af04si1793642plc.158.2023.10.03.11.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 11:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=amX5lHa9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id BF39780DE603; Tue, 3 Oct 2023 11:35:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240802AbjJCSfb (ORCPT + 99 others); Tue, 3 Oct 2023 14:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240772AbjJCSfa (ORCPT ); Tue, 3 Oct 2023 14:35:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08416AF; Tue, 3 Oct 2023 11:35: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=1696358125; x=1727894125; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=W1efFUb+6PT2mcTSVJjAVd93d/gbP7EU4t5/Y7eNlYo=; b=amX5lHa9EN6ufnuEvwVe0jRyMvrotxOg1VtyqE9HHm/6Tc2OlFU445x1 LegIpRt7enCuarJZtkuT1hhl58MbsgtZdTmaMtHjQKZCP1DdZlj5ggxxM g7/JvOLiAOD4CFQJOYV6Xx9UVRgy4QIFJwvDmXCVD4iSSBRKh519B2V8S 7qxsTWC9/FCTjWADfZn5/Q8shGUfH9VzkesKQdru1IJOpJW7mUsyKXtBn Hzav6un5YTaV9FUHJGD2K2U8IoekCaBhQXlcmkyQSrENnVY88BN+oTl2M nYT0sbfO6+QEZtOF6Kj+6dLEq3z5qU+9kgd3U/Nb2W8dY49F3aIelRhgy A==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="362315126" X-IronPort-AV: E=Sophos;i="6.03,198,1694761200"; d="scan'208";a="362315126" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 11:35:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="816804585" X-IronPort-AV: E=Sophos;i="6.03,198,1694761200"; d="scan'208";a="816804585" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 03 Oct 2023 11:35:23 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qnkEp-0008K5-0l; Tue, 03 Oct 2023 18:35:19 +0000 Date: Wed, 4 Oct 2023 02:34:04 +0800 From: kernel test robot To: Bartosz Golaszewski , Linus Walleij , Andy Shevchenko Cc: oe-kbuild-all@lists.linux.dev, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 30/36] pinctrl: remove old GPIO helpers Message-ID: <202310040236.w3AOZ94W-lkp@intel.com> References: <20231003145114.21637-31-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231003145114.21637-31-brgl@bgdev.pl> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 11:35:39 -0700 (PDT) Hi Bartosz, kernel test robot noticed the following build warnings: [auto build test WARNING on linusw-pinctrl/devel] [also build test WARNING on linusw-pinctrl/for-next next-20231003] [cannot apply to brgl/gpio/for-next geert-renesas-drivers/renesas-pinctrl linus/master v6.6-rc4] [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/Bartosz-Golaszewski/pinctrl-remove-unneeded-extern-specifiers-from-consumer-h/20231003-225540 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel patch link: https://lore.kernel.org/r/20231003145114.21637-31-brgl%40bgdev.pl patch subject: [PATCH 30/36] pinctrl: remove old GPIO helpers config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231004/202310040236.w3AOZ94W-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231004/202310040236.w3AOZ94W-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/202310040236.w3AOZ94W-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/pinctrl/core.c:338: warning: Excess function parameter 'offset' description in 'pinctrl_ready_for_gpio_range' vim +338 drivers/pinctrl/core.c 2744e8afb3b763 Linus Walleij 2011-05-02 321 51e13c2475913d Haojian Zhuang 2013-02-17 322 /** 51e13c2475913d Haojian Zhuang 2013-02-17 323 * pinctrl_ready_for_gpio_range() - check if other GPIO pins of 51e13c2475913d Haojian Zhuang 2013-02-17 324 * the same GPIO chip are in range 4b4af250917e1a Bartosz Golaszewski 2023-10-03 325 * @gc: GPIO chip structure from the GPIO subsystem 4b4af250917e1a Bartosz Golaszewski 2023-10-03 326 * @offset: hardware offset of the GPIO relative to the controller 51e13c2475913d Haojian Zhuang 2013-02-17 327 * 51e13c2475913d Haojian Zhuang 2013-02-17 328 * This function is complement of pinctrl_match_gpio_range(). If the return 51e13c2475913d Haojian Zhuang 2013-02-17 329 * value of pinctrl_match_gpio_range() is NULL, this function could be used 51e13c2475913d Haojian Zhuang 2013-02-17 330 * to check whether pinctrl device is ready or not. Maybe some GPIO pins 51e13c2475913d Haojian Zhuang 2013-02-17 331 * of the same GPIO chip don't have back-end pinctrl interface. 51e13c2475913d Haojian Zhuang 2013-02-17 332 * If the return value is true, it means that pinctrl device is ready & the 51e13c2475913d Haojian Zhuang 2013-02-17 333 * certain GPIO pin doesn't have back-end pinctrl device. If the return value 51e13c2475913d Haojian Zhuang 2013-02-17 334 * is false, it means that pinctrl device may not be ready. 51e13c2475913d Haojian Zhuang 2013-02-17 335 */ 2afe8229687ec2 Haojian Zhuang 2013-03-28 336 #ifdef CONFIG_GPIOLIB 4b4af250917e1a Bartosz Golaszewski 2023-10-03 337 static bool pinctrl_ready_for_gpio_range(struct gpio_chip *gc) 51e13c2475913d Haojian Zhuang 2013-02-17 @338 { 51e13c2475913d Haojian Zhuang 2013-02-17 339 struct pinctrl_dev *pctldev; 51e13c2475913d Haojian Zhuang 2013-02-17 340 struct pinctrl_gpio_range *range = NULL; 942cde724075f8 Tony Lindgren 2015-09-03 341 44d5f7bbead9e7 Linus Walleij 2013-05-16 342 mutex_lock(&pinctrldev_list_mutex); 44d5f7bbead9e7 Linus Walleij 2013-05-16 343 51e13c2475913d Haojian Zhuang 2013-02-17 344 /* Loop over the pin controllers */ 51e13c2475913d Haojian Zhuang 2013-02-17 345 list_for_each_entry(pctldev, &pinctrldev_list, node) { 51e13c2475913d Haojian Zhuang 2013-02-17 346 /* Loop over the ranges */ 5ffbe2e6138732 Axel Lin 2013-08-18 347 mutex_lock(&pctldev->mutex); 51e13c2475913d Haojian Zhuang 2013-02-17 348 list_for_each_entry(range, &pctldev->gpio_ranges, node) { 51e13c2475913d Haojian Zhuang 2013-02-17 349 /* Check if any gpio range overlapped with gpio chip */ 4b4af250917e1a Bartosz Golaszewski 2023-10-03 350 if (range->base + range->npins - 1 < gc->base || 4b4af250917e1a Bartosz Golaszewski 2023-10-03 351 range->base > gc->base + gc->ngpio - 1) 51e13c2475913d Haojian Zhuang 2013-02-17 352 continue; 5ffbe2e6138732 Axel Lin 2013-08-18 353 mutex_unlock(&pctldev->mutex); 44d5f7bbead9e7 Linus Walleij 2013-05-16 354 mutex_unlock(&pinctrldev_list_mutex); 51e13c2475913d Haojian Zhuang 2013-02-17 355 return true; 51e13c2475913d Haojian Zhuang 2013-02-17 356 } 5ffbe2e6138732 Axel Lin 2013-08-18 357 mutex_unlock(&pctldev->mutex); 51e13c2475913d Haojian Zhuang 2013-02-17 358 } 44d5f7bbead9e7 Linus Walleij 2013-05-16 359 44d5f7bbead9e7 Linus Walleij 2013-05-16 360 mutex_unlock(&pinctrldev_list_mutex); 44d5f7bbead9e7 Linus Walleij 2013-05-16 361 51e13c2475913d Haojian Zhuang 2013-02-17 362 return false; 51e13c2475913d Haojian Zhuang 2013-02-17 363 } 2afe8229687ec2 Haojian Zhuang 2013-03-28 364 #else 4b4af250917e1a Bartosz Golaszewski 2023-10-03 365 static bool pinctrl_ready_for_gpio_range(struct gpio_chip *gc) { return true; } 2afe8229687ec2 Haojian Zhuang 2013-03-28 366 #endif 51e13c2475913d Haojian Zhuang 2013-02-17 367 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki