OSDN Git Service

virtio-mem: Fix build error due to improper use 'select'
authorWeilong Chen <chenweilong@huawei.com>
Fri, 19 Jun 2020 08:03:33 +0000 (16:03 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 30 Jul 2020 15:28:17 +0000 (11:28 -0400)
commita96b0d061d476093cf86ca1c2de06fc57163588d
tree56b833a7534a95a8cf95835261d893bd4d84324a
parent168c358af2f8c5a37f8b5f877ba2cc93995606ee
virtio-mem: Fix build error due to improper use 'select'

As noted in:
https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
"select should be used with care. select will force a symbol to a
value without visiting the dependencies."
Config VIRTIO_MEM should not select CONTIG_ALLOC directly.
Otherwise it will cause an error:
https://bugzilla.kernel.org/show_bug.cgi?id=208245

Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Link: https://lore.kernel.org/r/20200619080333.194753-1-chenweilong@huawei.com
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
drivers/virtio/Kconfig