pflash_cfi02.c: associate "cfi.pflash02" to "Storage devices" category
PATCH 1/1 pflash_cfi02.c: associate "cfi.pflash02" to "Storage devices" category
--- hw/block/pflash_cfi02.c | 1 + 1 file changed, 1 insertion(+)
hw/block/pflash_cfi02.c +1 -0
@@ -744,6 +744,7 @@ static void pflash_cfi02_class_init(ObjectClass *klass, void *data) dc->realize = pflash_cfi02_realize; dc->props = pflash_cfi02_properties; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); }static const TypeInfo pflash_cfi02_info = {
Signature · 1 line
2.1.3
Quoted 10 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- hw/block/pflash_cfi02.c | 1 + 1 file changed, 1 insertion(+)hw/block/pflash_cfi02.c +0
-0
hw/block/pflash_cfi02.c static void pflash_cfi02_class_init(ObjectClass *klass, void *data) · line 750
Quoted 7 lines
hw/block/pflash_cfi02.c +1
-0@@ -744,6 +744,7 @@ static void pflash_cfi02_class_init(ObjectClass *klass, void *data) dc->realize = pflash_cfi02_realize; dc->props = pflash_cfi02_properties; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); }static const TypeInfo pflash_cfi02_info = {
Hm. While the patch itself is trivial, and it _seems_ it fixes a bug, I'm not sure of possible effects of this.
What prob it has now, does this device work? If yes, why it needs fixing? Do we care about compatibility with previous versions, about migration?
Cc'ing block device people...
Thanks,
/mjt
Quoted 17 lines · Michael Tokarev
Quoted 16 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>--- hw/block/pflash_cfi02.c | 1 + 1 file changed, 1 insertion(+)hw/block/pflash_cfi02.c +1
-0@@ -744,6 +744,7 @@ static void pflash_cfi02_class_init(ObjectClass *klass, void *data) dc->realize = pflash_cfi02_realize; dc->props = pflash_cfi02_properties; +set_bit (DEVICE_CATEGORY_STORAGE , dc->categories); }
Quoted 8 lines
hw/block/pflash_cfi02.c static void pflash_cfi02_class_init(ObjectClass *klass, void *data) · line 750
Quoted 1 line
hw/block/pflash_cfi02.c +0
-0static const TypeInfo pflash_cfi02_info = {Hm. While the patch itself is trivial, and it _seems_ it fixes a bug, I'm not sure of possible effects of this.
What prob it has now, does this device work? If yes, why it needs fixing? Do we care about compatibility with previous versions, about migration?
This affects nothing but help messages.
Paolo
Michael Tokarev
AppliedApplied to -trivial, thank you!
/mjt