From: kernel test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-acpi@vger.kernel.org, devel@acpica.org,
linux-pm@vger.kernel.org,
Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Subject: [rafael-pm:bleeding-edge 74/77] drivers/thermal/thermal_of.c:444:34: error: initializing 'struct thermal_zone_device_ops *' with an expression of incompatible type 'struct thermal_zone_device_ops'; take the address with &
Date: Fri, 9 Feb 2024 13:34:43 +0800 [thread overview]
Message-ID: <202402091355.DUYRncj7-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: 976b96a64c53e1e3d0fa71c97be2bcbe1a64feb1
commit: c483d4c88bfcd98d7819a722f48edb0adb89c32f [74/77] thermal: core: Store zone ops in struct thermal_zone_device
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240209/202402091355.DUYRncj7-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240209/202402091355.DUYRncj7-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/202402091355.DUYRncj7-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/thermal/thermal_of.c:444:34: error: initializing 'struct thermal_zone_device_ops *' with an expression of incompatible type 'struct thermal_zone_device_ops'; take the address with &
struct thermal_zone_device_ops *ops = tz->ops;
^ ~~~~~~~
&
1 error generated.
vim +444 drivers/thermal/thermal_of.c
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 432
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 433 /**
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 434 * thermal_of_zone_unregister - Cleanup the specific allocated ressources
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 435 *
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 436 * This function disables the thermal zone and frees the different
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 437 * ressources allocated specific to the thermal OF.
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 438 *
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 439 * @tz: a pointer to the thermal zone structure
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 440 */
ac614a9b4c35bf Daniel Lezcano 2023-04-04 441 static void thermal_of_zone_unregister(struct thermal_zone_device *tz)
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 442 {
8fb5b71ed37dbe Daniel Lezcano 2022-08-09 443 struct thermal_trip *trips = tz->trips;
8fb5b71ed37dbe Daniel Lezcano 2022-08-09 @444 struct thermal_zone_device_ops *ops = tz->ops;
8fb5b71ed37dbe Daniel Lezcano 2022-08-09 445
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 446 thermal_zone_device_disable(tz);
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 447 thermal_zone_device_unregister(tz);
8fb5b71ed37dbe Daniel Lezcano 2022-08-09 448 kfree(trips);
8fb5b71ed37dbe Daniel Lezcano 2022-08-09 449 kfree(ops);
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 450 }
3fd6d6e2b4e80f Daniel Lezcano 2022-08-05 451
:::::: The code at line 444 was first introduced by commit
:::::: 8fb5b71ed37dbe469eaa930e2ddc93ec9e305f3c thermal/of: Fix free after use in thermal_of_unregister()
:::::: TO: Daniel Lezcano <daniel.lezcano@linaro.org>
:::::: CC: Daniel Lezcano <daniel.lezcano@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-02-09 5:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202402091355.DUYRncj7-lkp@intel.com \
--to=lkp@intel.com \
--cc=devel@acpica.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rjw@rjwysocki.net \
--cc=stanislaw.gruszka@linux.intel.com \
/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