Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp346578ybm; Fri, 29 May 2020 01:27:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8/8PyEJ4wS+iKtMtyKeyyabYtgjui1YAkVCZUnlYIZv0F8mV2vzHNjEUMiH/1rQeqkxFB X-Received: by 2002:a17:906:d1c5:: with SMTP id bs5mr6724697ejb.117.1590740874899; Fri, 29 May 2020 01:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590740874; cv=none; d=google.com; s=arc-20160816; b=WTiCfkP1qAnSjaO+53bQXSaUKpAWbfVHZ6uS3/mI95daIVt4QA2UmGDjwSbQ+R3cjC FK40vuZBWmnRQQk75jQ2QMeAUoFzue3Beu+jJvnEc9NeVpe/vapakATdgFMvCwsM7WKm 9UsyyZpnoabSnmGvIpYMu9z3iv5R0TKpQ4r/YKCHCVQpU2HEAzteo//HhO5MrG0wJJuA DJS7jQS0FxG/E5zvtDyKQUBKZyu/T+0F5815BJfSw51cpGFgYJxjezLWNk9ANxwVmT94 7Ys+RDl6qYi1e3xFxpdpomtzsi6Sf28vm5w34gOh7JColB7P98xsEeyyhx0jYCGX2/gY mMWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=udSgGJX5D7f8dF71fgMGsCTDginSHbzEq5a5xZZSsIU=; b=oOLQwkTrMr8oUV9q3g8ejqjBWqRpi0dPxy2o2IVpXvCawVojNg+w0qDJaIKYlUddgA 2iRyZlIUmzQ/DHt2l4WUCSRiGfWdX+5dH4EFNxoYLbM+gAVgaoJQKWntXnkuhGpIJi3U iz4Muze0gGcMQWtdC/Z72joGth8khnl4LQzVyOsarkVi9Bqsytd0oMNrwLMN2vovLB/C OqYc90lIr/F/TE21z4ixdEpHASFioq53ph7sHRe6NCnQUg337fRtWTiTJGyA1i8io0lD Hz0RescdBBMfeXiGsEPQH7OzY2VcGRbknJ2NQTUsDPIaT3zC/2ZVmEMfeVdctySUeNt8 g2ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GTIejjtG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd24si583476edb.336.2020.05.29.01.27.31; Fri, 29 May 2020 01:27:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GTIejjtG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbgE2IXc (ORCPT + 99 others); Fri, 29 May 2020 04:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbgE2IX3 (ORCPT ); Fri, 29 May 2020 04:23:29 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59133C03E969; Fri, 29 May 2020 01:23:29 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id p5so534871ile.6; Fri, 29 May 2020 01:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=udSgGJX5D7f8dF71fgMGsCTDginSHbzEq5a5xZZSsIU=; b=GTIejjtGmRpSWdjR1S9urhWKmO5wC4PecZevnBZspqWdiuMXe6VvQpVpC9P2/45Sjy 4mNsI7LqDKEIp8hPf6DWRXAEOfvodH/S8gRqBDshCAnFm+E2YZ4B3F77gnpaWg5bRqTb od2MSmPr3CF5UKe3NV1u2w08Sm6GXskjzRG4pNrDuLr5oSjco27Z90D1CvOD4STkZ6tQ 2Nx1mGrG5detn9G8q5Eh/8jiUiWRoRNAfocE1bIm597Cwf7XqWCuIseH3w+pKtJywGIJ k21illywZfrczyMjd2IJl9auLpOG33RJODi2GSGxd6Zv8VnAO5quBSy5aWz5nBdkfnLt YnCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=udSgGJX5D7f8dF71fgMGsCTDginSHbzEq5a5xZZSsIU=; b=M/dMaWOVX0Do1OjDMhVYzjY0QDWERJyr56iKoneEcMpgkgsOc6Qf67LrhABNUgRlVd WS1nbw8LHxXoT3/rAydPoaSBnJfU0lwYzBvxLeZYEnQ23G1ctjT40xbd/OrrsTBeSHIQ KoM/ope0Ca1K+AFgb5SR+0iFs7mMuTl5zCyjL6LkJ7pFW/UtUGN2aVyb8RgCsEPPll2O Ac7Fm+QB/4NwpF0Z7jlUWmDa1sKOIlu0DEFgvu4gucKZAOkLFCAni2OoUbFbEHSmxL77 ya6meFr3gFYiExuo0qz9wl5Wq9dViER3cBVKmPaPI49/fTvMgjtNCk025Pa2OttGNcyo ctKw== X-Gm-Message-State: AOAM533/M9Y484yYjL3N0JNSccjBMYMigrev+6QsjKxJ+MtXIdW1jccW nnEj0P+n9WTkt4zq3ozFxfNne0xNlCs6WEBepYc= X-Received: by 2002:a05:6e02:503:: with SMTP id d3mr6497766ils.208.1590740608663; Fri, 29 May 2020 01:23:28 -0700 (PDT) MIME-Version: 1.0 References: <1590654459-10827-1-git-send-email-yangtiezhu@loongson.cn> <20200529075643.GA7031@alpha.franken.de> In-Reply-To: <20200529075643.GA7031@alpha.franken.de> From: Huacai Chen Date: Fri, 29 May 2020 16:23:16 +0800 Message-ID: Subject: Re: [PATCH] MIPS: Fix build warning about "PTR_STR" redefined under CONFIG_TEST_PRINTF To: Thomas Bogendoerfer Cc: Tiezhu Yang , "open list:MIPS" , LKML , Xuefeng Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thomas, On Fri, May 29, 2020 at 4:05 PM Thomas Bogendoerfer wrote: > > 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. Yes, this is also Maciej's suggestion, and I have sent the patch one minute ago... Huacai > > Thomas. > > -- > Crap can work. Given enough thrust pigs will fly, but it's not necessarily a > good idea. [ RFC1925, 2.3 ]