Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1000333imn; Sat, 30 Jul 2022 11:08:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR5SLX6FAJd4DqGS1YHqm4Og9iu03GgmhfEgLEmCRWFx2x4cL9uYH52zT/cy124x8+HgCp5g X-Received: by 2002:a17:90b:380c:b0:1f2:460a:2b30 with SMTP id mq12-20020a17090b380c00b001f2460a2b30mr10894501pjb.103.1659204515142; Sat, 30 Jul 2022 11:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659204515; cv=none; d=google.com; s=arc-20160816; b=Dslt/ln8e2om1Z1aLWDwCHU5nWI4lwWbtwsBKQpnWUTY4A05tvWOcgRaj97n5NMGA5 aKVB7mME0yl2oDVaFf6dn6G0XczsWrqDDRTwCAistjQP3U0xcLpiK6qW4pvH5/BAX5Bu mWu5Z70golSN2VNrR5wTJ/3XY3GALzJqp6kp/ksAxzjbDNDD8t3wq+cJ26FOnb800jYO qgtBBcq6me+TNxffSrjXUkNme9T+yKYqefu2Q+Wj5rRITB8mLxxVJSIQww848l/QxuER GI7WO1g/zR8pJmvvInClqkJGrZqqpnF1Ow5dYbj+2eeCMQ6aBjI4+uLeot2i0zkO+LNK DMng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=6qVoxOFybVIZw2PUGjoIGqId1JG7AuoiXXZ4w7M9+lQ=; b=HOcyEdceMUzSASb+lA6cWjZYqcJ7zLf9VptqjVIxqGHWr3laHC0GgspBGU9Lm8lejK 1NR+albjsBgrGOW4XHyncHmvmXOLHt66oBsH+ui/mqBn4PSXm+X5F9LdFw4ZbJrEM6ye fVQdeN3bQTDo1TcB4g7Cux4Oi4wFU3M7hKLWRBqXUkX2OZzJu+o5YtScCPvXIMxX2xYB sjhiZx+wr97JUoIqYtAVaRrHGGEz+vuP/p8tlsazpb66/HvjSeEJpbXJbKNxxFP9F5WO /yu2AvPp4O6GPAZ6xC9fb44I/gXfWzhDAKyZMsq5hZ23wl2gav+Qb8ggipC8COknIpIe v/hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JgFWAuog; 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 185-20020a6300c2000000b0041bbca71cb5si2900231pga.208.2022.07.30.11.08.20; Sat, 30 Jul 2022 11:08:35 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JgFWAuog; 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 S235445AbiG3Rhz (ORCPT + 99 others); Sat, 30 Jul 2022 13:37:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235393AbiG3Rhu (ORCPT ); Sat, 30 Jul 2022 13:37:50 -0400 Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47B7215A00; Sat, 30 Jul 2022 10:37:49 -0700 (PDT) Received: from localhost.localdomain (133-32-177-133.west.xps.vectant.ne.jp [133.32.177.133]) (authenticated) by conuserg-10.nifty.com with ESMTP id 26UHad9b015991; Sun, 31 Jul 2022 02:36:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 26UHad9b015991 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1659202600; bh=6qVoxOFybVIZw2PUGjoIGqId1JG7AuoiXXZ4w7M9+lQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JgFWAuog3tIvAJbXlRNQZCZV04LW+eLeE3PMW6++84sM/2DUqpnpeXb315Yd7QgvH cvqbgeRlHOfKsKYiTMVQwOoBHv8E3DrzgHOgIIw71i3gBBev6Bxio0ZccSgAR8HLiL GLapMKgHMts2vBDlkOrRD8TI7zlFOcyETRtEDNS8vNdzJF7Cn4EAHzzK7xhNIYZuep 57HVawRZSG9MNnxT8oFeStp0ioPVTn+mUuB3JVVi4hCOe1MF2KW9kX3WeIYeUZPkLn ATDIEBUVn7BYatTTCfW8D+T5It/13scTYg/vAvtvgHEKm76fngcodtvA9/5BQKRcTB JanDoz0UU3A2w== X-Nifty-SrcIP: [133.32.177.133] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in modpost" Date: Sun, 31 Jul 2022 02:36:36 +0900 Message-Id: <20220730173636.1303357-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220730173636.1303357-1-masahiroy@kernel.org> References: <20220730173636.1303357-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL 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 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 --- 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