[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202409220008.Y6HbRYac-lkp@intel.com>
Date: Sun, 22 Sep 2024 01:17:47 +0800
From: kernel test robot <lkp@...el.com>
To: Christian Marangi <ansuelsmth@...il.com>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, linux-watchdog@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Lorenzo Bianconi <lorenzo@...nel.org>, upstream@...oha.com
Cc: oe-kbuild-all@...ts.linux.dev
Subject: Re: [PATCH 2/2] watchdog: Add support for Airoha EN7851 watchdog
Hi Christian,
kernel test robot noticed the following build errors:
[auto build test ERROR on robh/for-next]
[also build test ERROR on groeck-staging/hwmon-next linus/master v6.11 next-20240920]
[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/Christian-Marangi/watchdog-Add-support-for-Airoha-EN7851-watchdog/20240919-203006
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20240919122759.10456-2-ansuelsmth%40gmail.com
patch subject: [PATCH 2/2] watchdog: Add support for Airoha EN7851 watchdog
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240922/202409220008.Y6HbRYac-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240922/202409220008.Y6HbRYac-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409220008.Y6HbRYac-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/watchdog/airoha_wdt.c: In function 'airoha_wdt_probe':
>> drivers/watchdog/airoha_wdt.c:155:33: error: implicit declaration of function 'FIELD_MAX' [-Wimplicit-function-declaration]
155 | wdog_dev->max_timeout = FIELD_MAX(WDT_TIMER_VAL) / airoha_wdt->wdt_freq;
| ^~~~~~~~~
vim +/FIELD_MAX +155 drivers/watchdog/airoha_wdt.c
125
126 static int airoha_wdt_probe(struct platform_device *pdev)
127 {
128 struct device *dev = &pdev->dev;
129 struct watchdog_device *wdog_dev;
130 struct airoha_wdt_desc *airoha_wdt;
131 int ret;
132
133 airoha_wdt = devm_kzalloc(dev, sizeof(*airoha_wdt), GFP_KERNEL);
134 if (!airoha_wdt)
135 return -ENOMEM;
136
137 airoha_wdt->base = devm_platform_ioremap_resource(pdev, 0);
138 if (IS_ERR(airoha_wdt->base))
139 return PTR_ERR(airoha_wdt->base);
140
141 ret = device_property_read_u32(dev, "clock-frequency",
142 &airoha_wdt->wdt_freq);
143 if (ret)
144 return -EINVAL;
145
146 /* Watchdog ticks at half the bus rate */
147 airoha_wdt->wdt_freq /= 2;
148
149 /* Initialize struct watchdog device */
150 wdog_dev = &airoha_wdt->wdog_dev;
151 wdog_dev->timeout = heartbeat;
152 wdog_dev->info = &airoha_wdt_info;
153 wdog_dev->ops = &airoha_wdt_ops;
154 /* Bus 300MHz, watchdog 150MHz, 28 seconds */
> 155 wdog_dev->max_timeout = FIELD_MAX(WDT_TIMER_VAL) / airoha_wdt->wdt_freq;
156 wdog_dev->parent = dev;
157
158 watchdog_set_drvdata(wdog_dev, airoha_wdt);
159 watchdog_set_nowayout(wdog_dev, nowayout);
160 watchdog_stop_on_unregister(wdog_dev);
161
162 ret = devm_watchdog_register_device(dev, wdog_dev);
163 if (ret)
164 return ret;
165
166 platform_set_drvdata(pdev, airoha_wdt);
167 return 0;
168 }
169
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists