mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qtest/libqos: Reduce size_to_prdtl() declaration scope
Since size_to_prdtl() is only used within ahci.c,
declare it statically. This removes the last use
of "inlined function with external linkage". See
previous commit and commit 9de9fa5cf2
for rationale.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20240326171009.26696-4-philmd@linaro.org>
This commit is contained in:
parent
d6fd5d8346
commit
4fbb7687cf
2 changed files with 1 additions and 2 deletions
|
@ -662,7 +662,7 @@ unsigned ahci_pick_cmd(AHCIQState *ahci, uint8_t port)
|
|||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
inline unsigned size_to_prdtl(unsigned bytes, unsigned bytes_per_prd)
|
||||
static unsigned size_to_prdtl(unsigned bytes, unsigned bytes_per_prd)
|
||||
{
|
||||
/* Each PRD can describe up to 4MiB */
|
||||
g_assert_cmphex(bytes_per_prd, <=, 4096 * 1024);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue