Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5871559ioo; Wed, 1 Jun 2022 14:35:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSBsVuKk2K0f9ZrNj2LJQYhF6WIyyRrf1jP5c6FyqtQwX9T1cM/WSSvxKyG9wVmakUr/bf X-Received: by 2002:a17:90b:1a86:b0:1e0:311e:39c8 with SMTP id ng6-20020a17090b1a8600b001e0311e39c8mr1448069pjb.151.1654119309396; Wed, 01 Jun 2022 14:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654119309; cv=none; d=google.com; s=arc-20160816; b=LAXVpH2JVI/7lCrqzbW307srBoYT8o1LzbTIAff6GvjeJ0NEPN9UqGErnQS8r0tLNF sJrIDlU4k/0v/ezYcz/+mOEBo2BDkST/RuDHKW/z9tcx/SLCFuZ/PtOhtTc3QzbpHB/y r5Amy8s03FlTBEaQLFEWIR63C9eVfmwmeg3NB1khNHG579OK/2qw8ekwLR/OLxCGfqT3 LfiNv1dtyS7qImb/RJM7NWFye6dns2HHuSbJWUlfSTKA/9hOJLE9Jr5whb/IlraU/Xgv O/qXs4X6G0loZAFOZ6B/DnX3n8Tej32zgEi83Dm8P4uVpC6xhQM0SfgBoWUfHTpvr3wd FJJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AsRDHoP8T3DHlrOkeygBP7G4RsOZjA3M+52eXg4oiwk=; b=YpbFUz3KRnQQvfhrpBMpensu4aPqdqwQDA+SPGfWzRif4/AiDIpUaM1iBKtbcLpVSK VpxW5rbLLoOOX4MY4BFWllxshBSvJGqpA4c1I3GKA64kxVzUa8PmXsrEt01sQjjwGA+D 5NfUTadI9KMf24QzimcCzxD7ip0GkhhYcwUHGw0W0gnsfiYe4GndnrrkABpxcDjmfGdD yuSzFrVunZoeAP5IySJcPiR+8vD2SjeKQfet9Eo3GF/eVhRFgHLTv6Arpysu3H6cSiRE bTji+SAWPCOzieFSKLSHFEtzvn9aKFzl64dNVx/+1ea4YW+wu8/E62tyhZyZ8ddYg8QY CcgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=uhjVYNRy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b16-20020a170903229000b0015eb2ef130dsi3828382plh.417.2022.06.01.14.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=uhjVYNRy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F02C025DFBA; Wed, 1 Jun 2022 13:42:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348816AbiFAAlv (ORCPT + 99 others); Tue, 31 May 2022 20:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbiFAAlt (ORCPT ); Tue, 31 May 2022 20:41:49 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B540D110B; Tue, 31 May 2022 17:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1654044103; bh=gAA/T6RmFtJ8e1KmZkGo7oW84DFSEfMlvKn6/ylyuf0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uhjVYNRyqBoD6KwGoMOam9BA2X3FFe4lh4HVCU56n5uxcuDR8qAjGPmL87LsIT0Qc W0+AUC8UNdzT31FvW+2zBxeC7+eJTsyV/VHrypPQhnc3qNSc+ORdo/bR0vVYuNYh4j 0CK2jp+rnLLoUsef2u6AaRh9KuelLXGg/BK8K9cI= Received: from [192.168.9.172] (unknown [101.88.28.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id B8D83600FF; Wed, 1 Jun 2022 08:41:42 +0800 (CST) Message-ID: <1dbaed5d-fb83-be70-85fc-4b819fa7d47c@xen0n.name> Date: Wed, 1 Jun 2022 08:41:42 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Thunderbird/103.0a1 Subject: Re: [musl] Re: [GIT PULL] asm-generic changes for 5.19 To: Arnd Bergmann , Huacai Chen Cc: musl@lists.openwall.com, WANG Xuerui , Linus Torvalds , linux-arch , GNU C Library , Yoshinori Sato , Peter Zijlstra , Marc Zyngier , Masahiro Yamada , Linux Kernel Mailing List , Jiaxun Yang , ACPI Devel Maling List , Jianmin Lv , linux-pci , Ard Biesheuvel , Huacai Chen References: <358025d1-28e6-708b-d23d-3f22ae12a800@xen0n.name> Content-Language: en-US From: WANG Xuerui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/22 04:40, Arnd Bergmann wrote: > lib/test_printf.c:215: warning: "PTR" redefined > 215 | #define PTR ((void *)0xffff0123456789abUL) > | > In file included from /git/arm-soc/arch/loongarch/include/asm/vdso/vdso.h:9, > from > /git/arm-soc/arch/loongarch/include/asm/vdso/gettimeofday.h:13, > from /git/arm-soc/include/vdso/datapage.h:137, > from /git/arm-soc/arch/loongarch/include/asm/vdso.h:11, > from /git/arm-soc/arch/loongarch/include/asm/elf.h:13, > from /git/arm-soc/include/linux/elf.h:6, > from /git/arm-soc/include/linux/module.h:19, > from /git/arm-soc/lib/test_printf.c:10: > /git/arm-soc/arch/loongarch/include/asm/asm.h:182: note: this is the > location of the previous definition > 182 | #define PTR .dword > | > > Not sure what the best fix is for this, maybe the contents of asm/asm.h could > just be hidden in an "#idef __ASSEMBLER__" check. This can be a follow-up > patch when the branch is merged. Ah, the dreaded PTR... This has plagued Loongson users since antiquity (i.e. the MIPS era). It must have been the case that the arch/loongarch was based on an earlier version of arch/mips, that didn't have the commit fa62f39dc7e25 ("MIPS: Fix build error due to PTR used in more places"). So the fix would be simple: just rename the PTR to something else. MIPS changed that to PTR_WD and maybe we could re-use that name. But I agree that wrapping the whole asm/asm.h with an #ifdef __ASSEMBLY__ is very reasonable regardless. Maybe both could be done.