Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2376515rwb; Fri, 11 Nov 2022 08:28:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JF4+dYAAYFI4YSn8Y/dzzJ4bnzyrPFD02eiLEuWKKBKiin+s+Xygvt+jDl/+uYYS2e74s X-Received: by 2002:a05:6a00:88c:b0:56b:e1d8:e7a1 with SMTP id q12-20020a056a00088c00b0056be1d8e7a1mr3453592pfj.28.1668184092468; Fri, 11 Nov 2022 08:28:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668184092; cv=none; d=google.com; s=arc-20160816; b=W9TwSsuH/OrsniDZ5YHNG4Mb0jY3NJHtbvXYYCtcMT94sFsOKat3jC54wqfvu6NSP8 k0w+f66eTmMd8VfW/es9mDiM7FRdmJpYO+uYOCE9Bdp5//tuh3aWyWq7tSsfGuy/D8Di dfe+e9rY/rkfwovbVBKeatddWWGwvRl7lMv8CnyeFAwHJPWtXewzeGbl2BvF3SIkdDOu UiJu0W6+8d/D8LN3cM5fYFawiVlB5MdeIiADdOHSKHUKOkVRJv7NORkvR+oAeVV54Wpz panG4fsVZzDoRpd+9dNixObKvKBIIH3bjOIesHQq+Dm5zsKpuXMHY8Yk8mbPvOQe28da QtrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6a8Gc14TZmPYbAkai6SAww0RLD40BRw1RbABWjmzB0g=; b=XcTnOfG2/RteHumFRGqRmnTmtupvwZH9XT4DgJCMK+PCcdzngd9+b7Oj1r00gdMFzO LctRPXMRHQyr7gzYlwCkFplfgwW6EwE6dzfFW/YJ2JzjkKP1dxs/wuXt8JVthhR1X35h b+xnHovwLueItmf4mDno8LqeG4o4mEz6UAccsyGVYCm9cwLaadgPOFnilB3ZcmXl5G4M rlb/BUHBNLiqEWdrxuLYRJ14yo4Dz9TRMEwATjCd0S/VkUom0gFHfjswyzmz/ynl/NtJ R1R8JNerCHWnDSLl+Xq9i9lT1LP39ntooFu3IGrv8ovGOuwKoZATyzPmr9A5wx75I6DR bufQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a17090322d100b001889ad0e644si3149537plg.42.2022.11.11.08.27.59; Fri, 11 Nov 2022 08:28:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235006AbiKKPJK (ORCPT + 91 others); Fri, 11 Nov 2022 10:09:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234907AbiKKPID (ORCPT ); Fri, 11 Nov 2022 10:08:03 -0500 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E21F46A74A; Fri, 11 Nov 2022 07:06:47 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1otVcD-00037d-00; Fri, 11 Nov 2022 16:06:45 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id D41D1C116A; Fri, 11 Nov 2022 16:03:35 +0100 (CET) Date: Fri, 11 Nov 2022 16:03:35 +0100 From: Thomas Bogendoerfer To: Rongwei Zhang Cc: Ralf Baechle , Maxim Uvarov , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] MIPS: fix duplicate definitions for exported symbols Message-ID: <20221111150335.GA13465@alpha.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=ham 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 Wed, Nov 02, 2022 at 08:27:39PM +0800, Rongwei Zhang wrote: > Building with clang-14 fails with: > > AS arch/mips/kernel/relocate_kernel.o > :0: error: symbol 'kexec_args' is already defined > :0: error: symbol 'secondary_kexec_args' is already defined > :0: error: symbol 'kexec_start_address' is already defined > :0: error: symbol 'kexec_indirection_page' is already defined > :0: error: symbol 'relocate_new_kernel_size' is already defined > > It turns out EXPORT defined in asm/asm.h expands to a symbol definition, > so there is no need to define these symbols again. Remove duplicated > symbol definitions. > > Fixes: 7aa1c8f47e7e ("MIPS: kdump: Add support") > Signed-off-by: Rongwei Zhang > --- > arch/mips/kernel/relocate_kernel.S | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]