From: kernel test robot <lkp@intel.com>
To: Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>,
Drew Fustini <dfustini@oss.tenstorrent.com>,
Joel Stanley <jms@oss.tenstorrent.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-riscv@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, joel@jms.id.au, fustini@kernel.org,
mpe@kernel.org, mpe@oss.tenstorrent.com,
npiggin@oss.tenstorrent.com, agross@kernel.org,
agross@oss.tenstorrent.com, bmasney@redhat.com
Subject: Re: [PATCH v2 3/3] clk: tenstorrent: Add Atlantis clock controller driver
Date: Fri, 23 Jan 2026 15:03:50 +0800 [thread overview]
Message-ID: <202601231402.YbzFbWJb-lkp@intel.com> (raw)
In-Reply-To: <20260122-atlantis-clocks-v2-3-c66371639e66@oss.tenstorrent.com>
Hi Anirudh,
kernel test robot noticed the following build errors:
[auto build test ERROR on 9448598b22c50c8a5bb77a9103e2d49f134c9578]
url: https://github.com/intel-lab-lkp/linux/commits/Anirudh-Srinivasan/dt-bindings-soc-tenstorrent-Add-tenstorrent-atlantis-syscon/20260123-064135
base: 9448598b22c50c8a5bb77a9103e2d49f134c9578
patch link: https://lore.kernel.org/r/20260122-atlantis-clocks-v2-3-c66371639e66%40oss.tenstorrent.com
patch subject: [PATCH v2 3/3] clk: tenstorrent: Add Atlantis clock controller driver
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260123/202601231402.YbzFbWJb-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260123/202601231402.YbzFbWJb-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601231402.YbzFbWJb-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/tenstorrent/atlantis-ccu.c: In function 'atlantis_cadev_release':
>> drivers/clk/tenstorrent/atlantis-ccu.c:832:9: error: implicit declaration of function 'kfree' [-Wimplicit-function-declaration]
832 | kfree(to_atlantis_ccu_adev(adev));
| ^~~~~
drivers/clk/tenstorrent/atlantis-ccu.c: In function 'atlantis_ccu_adev_register':
>> drivers/clk/tenstorrent/atlantis-ccu.c:852:17: error: implicit declaration of function 'kzalloc' [-Wimplicit-function-declaration]
852 | cadev = kzalloc(sizeof(*cadev), GFP_KERNEL);
| ^~~~~~~
>> drivers/clk/tenstorrent/atlantis-ccu.c:852:15: error: assignment to 'struct atlantis_ccu_adev *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
852 | cadev = kzalloc(sizeof(*cadev), GFP_KERNEL);
| ^
vim +/kfree +832 drivers/clk/tenstorrent/atlantis-ccu.c
827
828 static void atlantis_cadev_release(struct device *dev)
829 {
830 struct auxiliary_device *adev = to_auxiliary_dev(dev);
831
> 832 kfree(to_atlantis_ccu_adev(adev));
833 }
834
835 static void atlantis_adev_unregister(void *data)
836 {
837 struct auxiliary_device *adev = data;
838
839 auxiliary_device_delete(adev);
840 auxiliary_device_uninit(adev);
841 }
842
843 static int atlantis_ccu_adev_register(struct device *dev,
844 struct atlantis_ccu *ccu,
845 const struct atlantis_ccu_data *data,
846 const char *adev_name)
847 {
848 struct atlantis_ccu_adev *cadev;
849 struct auxiliary_device *adev;
850 int ret;
851
> 852 cadev = kzalloc(sizeof(*cadev), GFP_KERNEL);
853 if (!cadev)
854 return -ENOMEM;
855
856 cadev->regmap = ccu->regmap;
857
858 adev = &cadev->adev;
859 adev->name = adev_name;
860 adev->dev.parent = dev;
861 adev->dev.release = atlantis_cadev_release;
862 adev->dev.of_node = dev->of_node;
863
864 ret = auxiliary_device_init(adev);
865 if (ret)
866 goto err_free_cadev;
867
868 ret = auxiliary_device_add(adev);
869 if (ret) {
870 auxiliary_device_uninit(adev);
871 return ret;
872 }
873
874 return devm_add_action_or_reset(dev, atlantis_adev_unregister, adev);
875
876 err_free_cadev:
877 kfree(cadev);
878
879 return ret;
880 }
881 static int atlantis_ccu_probe(struct platform_device *pdev)
882 {
883 const struct atlantis_ccu_data *data;
884 struct device *dev = &pdev->dev;
885 int ret;
886
887 struct atlantis_ccu *ccu = devm_kzalloc(dev, sizeof(*ccu), GFP_KERNEL);
888
889 if (!ccu)
890 return -ENOMEM;
891
892 ccu->dev = dev;
893
894 ccu->base = devm_platform_ioremap_resource(pdev, 0);
895 if (IS_ERR(ccu->base))
896 return dev_err_probe(dev, PTR_ERR(ccu->base),
897 "Failed to map registers\n");
898
899 ccu->regmap = devm_regmap_init_mmio(dev, ccu->base,
900 &atlantis_ccu_regmap_config);
901 if (IS_ERR(ccu->regmap))
902 return dev_err_probe(dev, PTR_ERR(ccu->regmap),
903 "Failed to init regmap\n");
904
905 data = of_device_get_match_data(dev);
906
907 ret = atlantis_ccu_clocks_register(dev, ccu, data);
908 if (ret)
909 return dev_err_probe(dev, ret, "failed to register clocks\n");
910
911 ret = atlantis_ccu_adev_register(dev, ccu, data, data->reset_name);
912 if (ret)
913 return dev_err_probe(dev, ret, "failed to register resets\n");
914
915 return 0;
916 }
917
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-01-23 7:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 22:36 [PATCH v2 0/3] Add Tenstorrent Atlantis Clock/Reset Controller Anirudh Srinivasan
2026-01-22 22:36 ` [PATCH v2 1/3] dt-bindings: soc: tenstorrent: Add tenstorrent,atlantis-syscon Anirudh Srinivasan
2026-01-23 7:10 ` Krzysztof Kozlowski
2026-01-24 1:34 ` Anirudh Srinivasan
2026-01-22 22:36 ` [PATCH v2 2/3] reset: tenstorrent: Add reset controller for Atlantis Anirudh Srinivasan
2026-01-23 13:00 ` Philipp Zabel
2026-01-23 16:15 ` Anirudh Srinivasan
2026-01-26 7:23 ` Philipp Zabel
2026-01-22 22:36 ` [PATCH v2 3/3] clk: tenstorrent: Add Atlantis clock controller driver Anirudh Srinivasan
2026-01-23 7:03 ` kernel test robot [this message]
2026-01-23 11:41 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202601231402.YbzFbWJb-lkp@intel.com \
--to=lkp@intel.com \
--cc=agross@kernel.org \
--cc=agross@oss.tenstorrent.com \
--cc=asrinivasan@oss.tenstorrent.com \
--cc=bmasney@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dfustini@oss.tenstorrent.com \
--cc=fustini@kernel.org \
--cc=jms@oss.tenstorrent.com \
--cc=joel@jms.id.au \
--cc=krzk@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mpe@kernel.org \
--cc=mpe@oss.tenstorrent.com \
--cc=mturquette@baylibre.com \
--cc=npiggin@oss.tenstorrent.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox