Skip to contentSkip to conversation

avoid compiler warning about redefined macro

Drbd-dev David Butterfield 2 participants 2 messages Jun 5, 2019 – Jun 12, 2019 DRBD driver

lore
Share & tools
lore
#0 lore raw

In drbd_dax_pmem.h:35:
-#define arch_wb_cache_pmem(A, L) do { } while (0) +#define arch_wb_cache_pmem(A, S) do { } while (0)

Avoid compiler warning by making the macro definition exactly match the one in linux/libnvdimm.h:
drbd_dax_pmem.h:35: warning: "arch_wb_cache_pmem" redefined

maintainer
#1 lore raw
Quoted 7 lines · David Butterfield

In drbd_dax_pmem.h:35:

(quoted diff) +1 -1
-#define arch_wb_cache_pmem(A, L) do { } while (0)
+#define arch_wb_cache_pmem(A, S) do { } while (0)

Avoid compiler warning by making the macro definition exactly match the one in linux/libnvdimm.h:
drbd_dax_pmem.h:35: warning: "arch_wb_cache_pmem" redefined

Well, it should not have to define the same macro,
so there is likely some compat ifdef missing (or just an ifndef)

also I'm pretty sure the original in our code was copy pasted from their code...

Lars