[Qemu-devel] [PATCH] block: Make bdrv_{copy_on_read, crypto_luks, replication} static

Alberto Garcia posted 1 patch 5 years, 1 month ago
Test docker-clang@ubuntu passed
Test asan passed
Test checkpatch passed
Test docker-mingw@fedora passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190318154801.24890-1-berto@igalia.com
Maintainers: Max Reitz <mreitz@redhat.com>, Wen Congyang <wencongyang2@huawei.com>, Kevin Wolf <kwolf@redhat.com>, Xie Changlong <xiechanglong.d@gmail.com>
block/copy-on-read.c | 2 +-
block/crypto.c       | 2 +-
block/replication.c  | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
[Qemu-devel] [PATCH] block: Make bdrv_{copy_on_read, crypto_luks, replication} static
Posted by Alberto Garcia 5 years, 1 month ago
Signed-off-by: Alberto Garcia <berto@igalia.com>
---
 block/copy-on-read.c | 2 +-
 block/crypto.c       | 2 +-
 block/replication.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/block/copy-on-read.c b/block/copy-on-read.c
index 64dcc424b5..d670fec42b 100644
--- a/block/copy-on-read.c
+++ b/block/copy-on-read.c
@@ -134,7 +134,7 @@ static bool cor_recurse_is_first_non_filter(BlockDriverState *bs,
 }
 
 
-BlockDriver bdrv_copy_on_read = {
+static BlockDriver bdrv_copy_on_read = {
     .format_name                        = "copy-on-read",
 
     .bdrv_open                          = cor_open,
diff --git a/block/crypto.c b/block/crypto.c
index fd8c7cfac6..3af46b805f 100644
--- a/block/crypto.c
+++ b/block/crypto.c
@@ -625,7 +625,7 @@ static const char *const block_crypto_strong_runtime_opts[] = {
     NULL
 };
 
-BlockDriver bdrv_crypto_luks = {
+static BlockDriver bdrv_crypto_luks = {
     .format_name        = "luks",
     .instance_size      = sizeof(BlockCrypto),
     .bdrv_probe         = block_crypto_probe_luks,
diff --git a/block/replication.c b/block/replication.c
index b95bd28802..3d4dedddfc 100644
--- a/block/replication.c
+++ b/block/replication.c
@@ -682,7 +682,7 @@ static const char *const replication_strong_runtime_opts[] = {
     NULL
 };
 
-BlockDriver bdrv_replication = {
+static BlockDriver bdrv_replication = {
     .format_name                = "replication",
     .instance_size              = sizeof(BDRVReplicationState),
 
-- 
2.11.0


Re: [Qemu-devel] [PATCH] block: Make bdrv_{copy_on_read, crypto_luks, replication} static
Posted by Kevin Wolf 5 years, 1 month ago
Am 18.03.2019 um 16:48 hat Alberto Garcia geschrieben:
> Signed-off-by: Alberto Garcia <berto@igalia.com>

Thanks, applied to the block branch.

Kevin