Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp336349ybm; Fri, 29 May 2020 01:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys5TnhA0hWO/3oXSPY6Vrhb363hAkYKXhJ1dIvaCBlFqmVwV9zzgKgnRsGcxtyXQwyi0mU X-Received: by 2002:a05:6402:16d6:: with SMTP id r22mr6693191edx.289.1590739718353; Fri, 29 May 2020 01:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590739718; cv=none; d=google.com; s=arc-20160816; b=W2Acf23oomJk9KE0ikwuCvsEq5wRMRS7yleilhnbsGCGEtb2Z/9XAOYaWu5yjus9Re I3GYU5kb0wD640Ne0Mnrl4HXT3jZzf/hxqaR1o02OHXrOKLBouPTI3/tupkwk1C2tJ43 3H4OhyX3Eju0RDFXjNmUuwvmWlC3RpJNw5uQND3dxuCLU9q0t9/pm3TOqCDL7KR5rIS8 IS+OIoViBPRyHMWBf9ZW6gxO+MyIWLL0PkpefSmJTMz5Pjtj8Vx11dcDXoFzAQhhIivt HQS54OLclHpsoeX6U3MygUdMwf6OMdgZ+NlHcv+i0Dc/msyowkYI61pcPjoRehOPRMgs Ws3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9DWqaUiRQej+ka08SYyj05I/+9gF9H6Ma43GnC4K6ws=; b=GRYgtUCBtnnt6lj82FTGIWY+6Yp5ofNNe2YDEb5iNrjh4um9Cc+GwEgB4wWSfepNCs +VKczzRFRVUJ0aWIdqX3QpYrrfDNbv6juNHF9l2J3xcprICJceXlgVh73Ne0HLgGyOUG 8mJc7a2IURt3rplMHuutIK+tw7MkSuHRZCXd/D95z0GzZ78XJrrCxEiQoaxuvZ8Rlvgq x2w7BfFrIsJvsIu+Eokg5BdOAcpiX35vZlit18Uk68aDKoLUUCTD/TlYZEoWiuVNVoUw UkkoKZ+Lt2tge7ctcfElo/e7GsztOnxMMOlseF3BmgfIWVR/wl63BsV8C1JZG6d/OC3h y+dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si5325918ejr.96.2020.05.29.01.08.15; Fri, 29 May 2020 01:08:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbgE2IGL (ORCPT + 99 others); Fri, 29 May 2020 04:06:11 -0400 Received: from elvis.franken.de ([193.175.24.41]:43199 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726519AbgE2IF5 (ORCPT ); Fri, 29 May 2020 04:05:57 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jea1Y-0001El-00; Fri, 29 May 2020 10:05:52 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 70A20C05BD; Fri, 29 May 2020 09:56:43 +0200 (CEST) Date: Fri, 29 May 2020 09:56:43 +0200 From: Thomas Bogendoerfer To: Huacai Chen Cc: Tiezhu Yang , "open list:MIPS" , LKML , Xuefeng Li Subject: Re: [PATCH] MIPS: Fix build warning about "PTR_STR" redefined under CONFIG_TEST_PRINTF Message-ID: <20200529075643.GA7031@alpha.franken.de> References: <1590654459-10827-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 09:24:06AM +0800, Huacai Chen wrote: > Hi, Tiezhu, > > On Thu, May 28, 2020 at 4:28 PM Tiezhu Yang wrote: > > > > Replace PTR_STR with INST_PTR_STR to fix the following build warning when > > CONFIG_TEST_PRINTF is set: > > > > CC lib/test_printf.o > > lib/test_printf.c:214:0: warning: "PTR_STR" redefined > > #define PTR_STR "ffff0123456789ab" > > ^ > > In file included from ./arch/mips/include/asm/dsemul.h:11:0, > > from ./arch/mips/include/asm/processor.h:22, > > from ./arch/mips/include/asm/thread_info.h:16, > > from ./include/linux/thread_info.h:38, > > from ./include/asm-generic/preempt.h:5, > > from ./arch/mips/include/generated/asm/preempt.h:1, > > from ./include/linux/preempt.h:78, > > from ./include/linux/spinlock.h:51, > > from ./include/linux/seqlock.h:36, > > from ./include/linux/time.h:6, > > from ./include/linux/stat.h:19, > > from ./include/linux/module.h:13, > > from lib/test_printf.c:10: > > ./arch/mips/include/asm/inst.h:20:0: note: this is the location of the previous definition > > #define PTR_STR ".dword" > > ^ > > > > Fixes: e701656ec4db ("MIPS: inst.h: Stop including asm.h to avoid various build failures") > > Signed-off-by: Tiezhu Yang > Thank you for catching this issue, but I think this is not the best > solution. Maciej suggest another solution, and I will send a patch to > fix it. thank you, I was about to fix it myself. Not sure about your plan, but my idea would be to move the unaligned stuff into it's another or a new header file. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]