Content-Type: multipart/mixed; boundary="===============6117392118074237576==" MIME-Version: 1.0 From: Vinod Koul To: kbuild-all@lists.01.org Subject: Re: [PATCH] dmaengine: ptdma: remove PT_OFFSET to avoid redefnition Date: Sun, 29 Aug 2021 19:12:50 +0530 Message-ID: In-Reply-To: <1630178908-54973-1-git-send-email-Sanju.Mehta@amd.com> List-Id: --===============6117392118074237576== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 28-08-21, 14:28, Sanjay R Mehta wrote: > From: Sanjay R Mehta > = > Building on ARCH=3Dum causes a "redefined" warning, so remove this > PT_OFFSET macro to avoid the warning. > = > drivers/dma/ptdma/ptdma.h:34: warning: "PT_OFFSET" redefined > 34 | #define PT_OFFSET 0x0 > | > In file included from ./arch/um/include/asm/thread_info.h:17, > from ./include/linux/thread_info.h:60, > from ./include/asm-generic/preempt.h:5, > from ./arch/um/include/generated/asm/preempt.h:1, > from ./include/linux/preempt.h:78, > from ./include/linux/spinlock.h:55, > from ./include/linux/wait.h:9, > from ./include/linux/wait_bit.h:8, > from ./include/linux/fs.h:6, > from ./include/linux/debugfs.h:15, > from drivers/dma/ptdma/ptdma-debugfs.c:12: > ./arch/x86/um/shared/sysdep/ptrace_user.h:4: note: this is the location o= f the previous definition > 4 | #define PT_OFFSET(r) ((r) * sizeof(long)) Applied, thanks -- = ~Vinod --===============6117392118074237576==--