Extern declaration of the entity XXX is treated as a static definition

I attempted to add two global device pointers in aten/native/cuda/CUDALoops.cuh to support a certain functionality. These pointers are defined in another file, myKernel.cu, and declared as extern in myKernel.cuh.
However, when I include myKernel.cuh inside CUDALoops.cuh and try to use these pointers, I encounter the following warning:

warning #20044-D: extern declaration of the entity at::native::my_ptr is treated as a static definition

How should I resolve this issue? Is there a recommended way to share global device pointers across .cu files without triggering this warning?