From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDF3BC432BE for ; Sun, 29 Aug 2021 13:42:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 698B860F39 for ; Sun, 29 Aug 2021 13:42:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 698B860F39 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 859346B006C; Sun, 29 Aug 2021 09:42:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E2468D0001; Sun, 29 Aug 2021 09:42:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A95A6B0072; Sun, 29 Aug 2021 09:42:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0018.hostedemail.com [216.40.44.18]) by kanga.kvack.org (Postfix) with ESMTP id 56DCE6B006C for ; Sun, 29 Aug 2021 09:42:56 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 19C4A1803952E for ; Sun, 29 Aug 2021 13:42:56 +0000 (UTC) X-FDA: 78528233952.11.8BAE96B Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf21.hostedemail.com (Postfix) with ESMTP id BB150D01FD35 for ; Sun, 29 Aug 2021 13:42:55 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id E979960C41; Sun, 29 Aug 2021 13:42:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630244574; bh=2mC2K+OQa5MOJUmiCDJQk8bZb1u9vvG/t6FIRgOnrsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I85VKLrItHCoTm382U/JaD8tfiTggdM11IyEk/XTc9eEQeiFBIxJgLs9LK+naOAEo CNnK9YEafRTs82ioz0l74ZUcnz0P+S2XVt4stt7U2ZNaLOZxQHLE5Mr948FxVdPB2d tMz41wSB/Au9lqPjtGeWoKheCCFQ1JuOrmkrQNwTfqIQO7kNY2Nu3EfEHPzMvviEwa S37Y96LhI0snXmifSv431Ak1RCvxfN6QPz5PgVFxjKHQ1T+TTSWv3FGOIYjHkIxc3H u5Nru43aM+DTCNVrsYDUwEJUB67YIDYtJL5ewfV5xl9uLEQWgzWTcd7T0AQT6/AoD3 eSx171uZXL4cw== Date: Sun, 29 Aug 2021 19:12:50 +0530 From: Vinod Koul To: Sanjay R Mehta Cc: kbuild-all@lists.01.org, linux-mm@kvack.org Subject: Re: [PATCH] dmaengine: ptdma: remove PT_OFFSET to avoid redefnition Message-ID: References: <1630178908-54973-1-git-send-email-Sanju.Mehta@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1630178908-54973-1-git-send-email-Sanju.Mehta@amd.com> Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=I85VKLrI; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf21.hostedemail.com: domain of vkoul@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=vkoul@kernel.org X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: BB150D01FD35 X-Stat-Signature: 8g7di71c973wq8htqycqchcrrubjhoqi X-HE-Tag: 1630244575-683735 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000853, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 28-08-21, 14:28, Sanjay R Mehta wrote: > From: Sanjay R Mehta > > Building on ARCH=um 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 of the previous definition > 4 | #define PT_OFFSET(r) ((r) * sizeof(long)) Applied, thanks -- ~Vinod