Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp196009otr; Thu, 4 Aug 2022 00:26:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR7shkr3E24ocIFusbqN9ayuTD4UHjtDQ46oZR9ArXmuWWdRu0K/ApkaZ5Tc7iJ1Dn9agW8u X-Received: by 2002:a17:903:2043:b0:16e:e3b6:6819 with SMTP id q3-20020a170903204300b0016ee3b66819mr630732pla.166.1659597960137; Thu, 04 Aug 2022 00:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659597960; cv=none; d=google.com; s=arc-20160816; b=IV9MJQoAcp0en8/Hnh8UlPodUtdVtInBsLJ0bDeLDStFx8QphmmtJpv/+uJaiaREes njxfCTWLS14WeJBx9CmrSGq+2SlF64kxDWpbWmZQ+z8YQVXIP6YLe6pcn6Q0NJ12RgeL m+gAm9Hwmz3uKBHz/zNTIuQM4HbEWIS21VHUQx05dnJR1YJoAgT5fUnlpsac46ShJS7T VAoyjBcHoNZkdGhMOpO9HWdatPsGpUAa4LQS+eBlvD68RSrVPARcuuwSfhY5f43jFu7h Qgy06+K7/Og9by/O5QMu+MjWWljGihmPuga2F+gjszlllZCehVmJDyD2iNgpsRuerupi OrGg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=5C7rvtcpzk2BbJJ0+B6At0AsmYoyb/SdIgBeDzMA0yw=; b=uMwy3Cnr0v/ylAu0XVl1uuctjmIxjHxAcL+vtsVLdlGOEKU6mLW5q9DDrfreQxwxdx O0f5NIluQBu6yiHbXVer/q78LK0wgPbWwjTI7R7ZCot83Vv0jipqdcykYSCI5FYGFFyy JD1ZXvioxTVgZo8d6Jg4VgyEQ24e4cL5fop7YS6k4ZfwZVCd7Zexb31rCn/D4Bknu/1o BHK5HEIJ7yPX069pR4Z80Uo/7eorjGcRQKSpzkE99sj+giP+MV2Iab89nfxItkkwjsCv ihU2IaBkFXgkRmHDUzz9sAkdW9GLtP/VNfuFGchXqY55OX8lQvcFU9BwqWQy3jBAzaxE KxqQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902ead100b0016dc443af5asi55288pld.458.2022.08.04.00.25.44; Thu, 04 Aug 2022 00:26:00 -0700 (PDT) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238832AbiHDGsF (ORCPT + 99 others); Thu, 4 Aug 2022 02:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238727AbiHDGsB (ORCPT ); Thu, 4 Aug 2022 02:48:01 -0400 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42E4C3AB22; Wed, 3 Aug 2022 23:48:00 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id c24so4397491ejd.11; Wed, 03 Aug 2022 23:48:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=5C7rvtcpzk2BbJJ0+B6At0AsmYoyb/SdIgBeDzMA0yw=; b=JvjS4jjIqUdPWZrpG240FrCuxC3k7i3vLDQqYyXzRn5it71GvZ9zGxNTIz18KBueC0 LmFhlJ+d43I5qQWELVnJGK0ExTEjrG/Ysj604VJN5qaqUKLmrFbjDmPXA1xyCrwu8TiN r5atRq72cMqsNsft/bowoiFZsepULTJH49kLihiQtBLHfjjS1ZjPw1CuTTMeLdOJFvVD /Ns4WhC8r6ajAUwgn5W41C8irapRfKt8Q12BVM8+Fatz5gkGhVfhFXEpnS8HmftqOa9j FkAE6Gao2uvzl4A/QmWdAC6g7qPvy2W4g6dVX3aG0kKVxTA+wPgMsTc0czXjKr/NnLoi jJPw== X-Gm-Message-State: ACgBeo3k0Ezqvx+sIHpBqWCDFEFm5pYfmNZb2FsTWzhlYKCmfzI76zsI 5vg6uSPFTs2sZkuoMI9CFxM= X-Received: by 2002:a17:906:cc50:b0:730:b5fd:89cf with SMTP id mm16-20020a170906cc5000b00730b5fd89cfmr331349ejb.221.1659595678841; Wed, 03 Aug 2022 23:47:58 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id t22-20020a05640203d600b0043ce5d4d2c3sm205165edw.14.2022.08.03.23.47.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 23:47:58 -0700 (PDT) Message-ID: Date: Thu, 4 Aug 2022 08:47:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 3/3] Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in modpost" Content-Language: en-US To: Nick Desaulniers , Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Michal Marek , linux-kernel@vger.kernel.org, Andi Kleen , "H. Peter Anvin" References: <20220730173636.1303357-1-masahiroy@kernel.org> <20220730173636.1303357-3-masahiroy@kernel.org> From: Jiri Slaby In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no 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 02. 08. 22, 20:04, Nick Desaulniers wrote: > On Sat, Jul 30, 2022 at 10:37 AM Masahiro Yamada wrote: >> >> This reverts commit 77ab21adae509c5540956729e2d03bc1a59bc82a. >> >> That commit was 8 years old, and it said "This is a workaround". >> If this is needed for GCC LTO, it should be added in a proper way. >> >> Signed-off-by: Masahiro Yamada > > Please don't forget to cc the author & reviewers for a patch when > submitting a revert. > > + Jiri in case a patch needs to be carried in any downstream trees for > re-application. IMO we already got rid of -fno-toplevel-reorder (we have noreorder attribute now), so: Acked-by: Jiri Slaby > Reviewed-by: Nick Desaulniers Thanks for letting me know. >> scripts/mod/modpost.c | 3 --- >> 1 file changed, 3 deletions(-) >> >> diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c >> index c6a055c0291e..a8ee27496da7 100644 >> --- a/scripts/mod/modpost.c >> +++ b/scripts/mod/modpost.c >> @@ -1462,9 +1462,6 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf, >> from = find_elf_symbol2(elf, r->r_offset, fromsec); >> fromsym = sym_name(elf, from); >> >> - if (strstarts(fromsym, "reference___initcall")) >> - return; >> - >> tosec = sec_name(elf, get_secindex(elf, sym)); >> to = find_elf_symbol(elf, r->r_addend, sym); >> tosym = sym_name(elf, to); >> -- >> 2.34.1 >> > > -- js suse labs