From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55810C54E67 for ; Wed, 27 Mar 2024 14:15:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CCFE16B009E; Wed, 27 Mar 2024 10:15:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C7FBC6B009F; Wed, 27 Mar 2024 10:15:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B46EA6B00A0; Wed, 27 Mar 2024 10:15:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 973906B009E for ; Wed, 27 Mar 2024 10:15:36 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 6704B160CA7 for ; Wed, 27 Mar 2024 14:15:36 +0000 (UTC) X-FDA: 81943017072.20.C228EA5 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by imf30.hostedemail.com (Postfix) with ESMTP id 0AF4D80011 for ; Wed, 27 Mar 2024 14:15:32 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RLMHvXQ+; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711548934; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=8g+PUatvFDKpoPWZzZBObDsCF9Q4/1aO2JgUjxnRBf8=; b=T8wtUIsvSt5WC64YzfTjD3DkdsfKvtz4MyJz3WjixKzaDUjTDSf1eCKPmpP7bs+rlFIUTA deOHiWQv2ItD7lp0+C0vQO12IO/KLjtIjhNnn9f6Qkdrge9OekM8XqAD7mLx/HxRe4OlmN 0Co8sLXQCaL/K/p/CLnc8AYKn6i0nFA= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RLMHvXQ+; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711548934; a=rsa-sha256; cv=none; b=UNOASzV974AoXohwlmQNZNgMoMsGfFfrjvbMi36fEUkbe+Dyw9vVfERtAoAK7RXxoXvmW5 uEsS6XO4stPl5bI11Y2iPO7wiTnlkEit0ofgRM9AXCRALUBuRlvfO+JjPX/eA/yx+TLU94 /zrkgBThRk5bauqX1Me2KSXyN8xf7u8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711548934; x=1743084934; h=date:from:to:cc:subject:message-id:mime-version; bh=ecjM5qPus2GHv+KnHHWKtL/eFRORD9Y5Z5eqoQ+e2c4=; b=RLMHvXQ+xB+ZuBoQhzaDkMqm6FkNsQR7U+Y07xbpKpqacPghowiy0uH2 YndqSXrl2wvT7U54n4VaePYXFZ0K4OwSty4hQW3RVYV8VVsZ9AEpPgyP3 yUI9i7W6oQM7CuyzYLQRzQi0rQ3+YiNO2IDob99hGTLYKLuvocdC81huJ o0gLYDJZjQsDHy3PBvWeYudOeeefzgglGw02hWSQOdLaWcZZie+9Lq9Ku EURsoFgytkAUnzuvAItKQaLDVbPwfqhPo/v1tvBcxZYe5hCNeSkayrFZ2 ycYXd/NnWnf2yiPWJC5VX6w2n17f7VQ4EhNCFXMkuh1vRznZ9DByQqbta g==; X-CSE-ConnectionGUID: OfWonv7lSVmI9iItDF37gw== X-CSE-MsgGUID: 9LS5s8X3Qf6hIWBy22SJhQ== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="6786293" X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="6786293" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 07:15:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,159,1708416000"; d="scan'208";a="16150147" Received: from lkp-server01.sh.intel.com (HELO be39aa325d23) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 27 Mar 2024 07:15:25 -0700 Received: from kbuild by be39aa325d23 with local (Exim 4.96) (envelope-from ) id 1rpU3o-00016m-2E; Wed, 27 Mar 2024 14:15:24 +0000 Date: Wed, 27 Mar 2024 22:15:12 +0800 From: kernel test robot To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 1131/2169] drivers/pwm/pwm-stm32.c:662:8: error: call to undeclared function 'devm_clk_rate_exclusive_get'; ISO C99 and later do not support implicit function declarations Message-ID: <202403272205.UKAQzc7v-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 0AF4D80011 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: efdqmgutr18s6oqmbc6smqmb9kz8paao X-HE-Tag: 1711548932-824646 X-HE-Meta: U2FsdGVkX18zyTPbwARgWcf7AfkPQeiVoF89JjBIL3A4TUZMIsRs9S52D9okRhVpNpErSx6PAP6NJ3DpMzZemctsqq4aKn1wVFQ3uh2QT73lzhEaFmPj8UEa1C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BLXEZqf4FsrvZCCdLY9//y5jyg4rT5ui0PiyNpbK6qTF65Vo+ahR8xHwkpcsdjHI0XVdteWKw7UZumqf7B6tRRU1oP361WzRodzHdMMb6B9KQeLS51GSS5Ozxu/4IIShxnV3M3UFaP823haJTS7hh0ScSEXxvpmoqI9aSJ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 26074e1be23143b2388cacb36166766c235feb7c commit: 50d05a09e8474fa4768ffd39cce6af7f73cf003b [1131/2169] pwm: stm32: Fix for settings using period > UINT32_MAX config: hexagon-randconfig-001-20240326 (https://download.01.org/0day-ci/archive/20240327/202403272205.UKAQzc7v-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240327/202403272205.UKAQzc7v-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/202403272205.UKAQzc7v-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/pwm/pwm-stm32.c:12: In file included from include/linux/mfd/stm32-timers.h:11: In file included from include/linux/dmaengine.h:12: In file included from include/linux/scatterlist.h:8: In file included from include/linux/mm.h:2208: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from drivers/pwm/pwm-stm32.c:12: In file included from include/linux/mfd/stm32-timers.h:11: In file included from include/linux/dmaengine.h:12: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from drivers/pwm/pwm-stm32.c:12: In file included from include/linux/mfd/stm32-timers.h:11: In file included from include/linux/dmaengine.h:12: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from drivers/pwm/pwm-stm32.c:12: In file included from include/linux/mfd/stm32-timers.h:11: In file included from include/linux/dmaengine.h:12: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ drivers/pwm/pwm-stm32.c:327:9: warning: variable 'prd' is uninitialized when used here [-Wuninitialized] 327 | div = prd; | ^~~ drivers/pwm/pwm-stm32.c:314:24: note: initialize the variable 'prd' to silence this warning 314 | unsigned long long prd, div, dty; | ^ | = 0 >> drivers/pwm/pwm-stm32.c:662:8: error: call to undeclared function 'devm_clk_rate_exclusive_get'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 662 | ret = devm_clk_rate_exclusive_get(dev, priv->clk); | ^ drivers/pwm/pwm-stm32.c:662:8: note: did you mean 'clk_rate_exclusive_get'? include/linux/clk.h:284:19: note: 'clk_rate_exclusive_get' declared here 284 | static inline int clk_rate_exclusive_get(struct clk *clk) | ^ 8 warnings and 1 error generated. vim +/devm_clk_rate_exclusive_get +662 drivers/pwm/pwm-stm32.c 627 628 static int stm32_pwm_probe(struct platform_device *pdev) 629 { 630 struct device *dev = &pdev->dev; 631 struct device_node *np = dev->of_node; 632 struct stm32_timers *ddata = dev_get_drvdata(pdev->dev.parent); 633 struct pwm_chip *chip; 634 struct stm32_pwm *priv; 635 unsigned int npwm, num_enabled; 636 unsigned int i; 637 int ret; 638 639 npwm = stm32_pwm_detect_channels(ddata->regmap, &num_enabled); 640 641 chip = devm_pwmchip_alloc(dev, npwm, sizeof(*priv)); 642 if (IS_ERR(chip)) 643 return PTR_ERR(chip); 644 priv = to_stm32_pwm_dev(chip); 645 646 mutex_init(&priv->lock); 647 priv->regmap = ddata->regmap; 648 priv->clk = ddata->clk; 649 priv->max_arr = ddata->max_arr; 650 651 if (!priv->regmap || !priv->clk) 652 return dev_err_probe(dev, -EINVAL, "Failed to get %s\n", 653 priv->regmap ? "clk" : "regmap"); 654 655 ret = stm32_pwm_probe_breakinputs(priv, np); 656 if (ret) 657 return dev_err_probe(dev, ret, 658 "Failed to configure breakinputs\n"); 659 660 stm32_pwm_detect_complementary(priv); 661 > 662 ret = devm_clk_rate_exclusive_get(dev, priv->clk); 663 if (ret) 664 return dev_err_probe(dev, ret, "Failed to lock clock\n"); 665 666 /* 667 * With the clk running with not more than 1 GHz the calculations in 668 * .apply() won't overflow. 669 */ 670 if (clk_get_rate(priv->clk) > 1000000000) 671 return dev_err_probe(dev, -EINVAL, "Failed to lock clock\n"); 672 673 chip->ops = &stm32pwm_ops; 674 675 /* Initialize clock refcount to number of enabled PWM channels. */ 676 for (i = 0; i < num_enabled; i++) 677 clk_enable(priv->clk); 678 679 ret = devm_pwmchip_add(dev, chip); 680 if (ret < 0) 681 return dev_err_probe(dev, ret, 682 "Failed to register pwmchip\n"); 683 684 platform_set_drvdata(pdev, chip); 685 686 return 0; 687 } 688 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki