Re: [PATCH 1/3] GenWQE: Delete an error message for a failed memory allocation in genwqe_user_vmap()

From: haver
Date: Mon Jan 08 2018 - 08:42:57 EST


On 2018-01-08 14:24, SF Markus Elfring wrote:
@@ -593,7 +593,6 @@ int genwqe_user_vmap(struct genwqe_dev *cd, struct
dma_mapping *m, void *uaddr,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ sizeof(struct page *) + sizeof(dma_addr_t),
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ GFP_KERNEL);
ÂÂÂÂ if (!m->page_list) {
-ÂÂÂÂÂÂÂ dev_err(&pci_dev->dev, "err: alloc page_list failed\n");

Are there different printouts which cover this?

Is this error message redundant?


I mean the debug printout is not appearing all the time,
it must be enabled, if I remember correctly.

Would you like to clarify corresponding configuration possibilities any more?


So why do you suggest to remove it?

Can the Linux allocation failure report be sufficient for this use case already?

Regards,
Markus

According to Dans message in parallel, it should be redundant and I am fine with removing it.

Acked-by: Frank Haverkamp <haver@xxxxxxxxxxxxxxxxxx>