Skip to content

Commit

Permalink
qemu/qemu-plugin: Make qemu_plugin_hwaddr_is_io() hwaddr argument const
Browse files Browse the repository at this point in the history
Rename qemu_plugin_hwaddr_is_io() address argument 'haddr'
similarly to qemu_plugin_hwaddr_device_offset(), and make
it const.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200510171119.20827-4-f4bug@amsat.org>
Message-Id: <20200513173200.11830-4-alex.bennee@linaro.org>
  • Loading branch information
philmd authored and stsquad committed May 15, 2020
1 parent 1b9905c commit 308e754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/qemu/qemu-plugin.h
Expand Up @@ -331,7 +331,7 @@ struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qemu_plugin_meminfo_t info,
* to return information about it. For non-IO accesses the device
* offset will be into the appropriate block of RAM.
*/
bool qemu_plugin_hwaddr_is_io(struct qemu_plugin_hwaddr *hwaddr);
bool qemu_plugin_hwaddr_is_io(const struct qemu_plugin_hwaddr *haddr);
uint64_t qemu_plugin_hwaddr_device_offset(const struct qemu_plugin_hwaddr *haddr);

typedef void
Expand Down
4 changes: 2 additions & 2 deletions plugins/api.c
Expand Up @@ -275,10 +275,10 @@ struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qemu_plugin_meminfo_t info,
}
#endif

bool qemu_plugin_hwaddr_is_io(struct qemu_plugin_hwaddr *hwaddr)
bool qemu_plugin_hwaddr_is_io(const struct qemu_plugin_hwaddr *haddr)
{
#ifdef CONFIG_SOFTMMU
return hwaddr->is_io;
return haddr->is_io;
#else
return false;
#endif
Expand Down

0 comments on commit 308e754

Please sign in to comment.