Messages in this thread | | | Date | Wed, 8 Apr 2020 21:16:44 +0200 | From | Christoph Hellwig <> | Subject | Re: [PATCH] dma-debug: fix displaying of dma allocation type |
| |
On Wed, Apr 08, 2020 at 10:13:55PM +0300, Grygorii Strashko wrote: >>> -static const char *type2name[5] = { "single", "page", >>> +static const char *type2name[5] = { "single", >>> "scather-gather", "coherent", >>> "resource" }; >> >> To make sure this doesn't happen anymore, can you switch to >> named initializers? >> > > Just to clarify. > Do you mean > [dma_debug_coherent] = "coherent", > ?
Yes.
| |