Skip to contentSkip to conversation

pflash_cfi02.c: associate "cfi.pflash02" to "Storage devices" category

PATCH Applied Antony Pavlov 3 participants 4 messages Dec 7, 2014 – Dec 10, 2014

lore
Share & tools
lore
#0 lore raw

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
index 8513a17..389b4aa 100644
@@ -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
#1 lore raw
Quoted 10 lines · Antony Pavlov
---
 hw/block/pflash_cfi02.c | 1 +
 1 file changed, 1 insertion(+)
hw/block/pflash_cfi02.c +0 -0
index 8513a17..389b4aa 100644

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

#2 lore raw
Quoted 17 lines · Michael Tokarev
Quoted 16 lines · Antony Pavlov
---
 hw/block/pflash_cfi02.c | 1 +
 1 file changed, 1 insertion(+)
hw/block/pflash_cfi02.c +1 -0
index 8513a17..389b4aa 100644
@@ -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 -0
 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?

This affects nothing but help messages.

Paolo