Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2538432pxf; Sun, 14 Mar 2021 03:11:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqitQaVWDZ7F961s5EHwyWoJCs7D91wItyE21xsK4Vs7bRU3cp3TNlLGeSTEOeUMFFZE8H X-Received: by 2002:a17:906:cd05:: with SMTP id oz5mr18271972ejb.345.1615716673101; Sun, 14 Mar 2021 03:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615716673; cv=none; d=google.com; s=arc-20160816; b=t548V4QosWDgcEs9la5tNC6oT3Zt6BktsgzKoB+JRmbj4uPeylOaLvP/DcfFw8pCQb Pxs4saM4MBRc0BY4yqmiTaAzq+5ilU2Vj0WIM+wz6jim3+YGYIefagK6IbI9tocuDHim 2Ttz5l99sjXGPwz3fGtq4Llgloi4oih3X5iD1o+YtHITtD9/bhvT6AG+DekTRtoMvjiK eB5gj/Vo9EGAy2Bvsx1b/b8deFiddEdQSEBeiaFQHOxkleRFsHqMFHXC3UVfXe3hINrF 83XgxOsZZy/qCIhhq949XmT84yixsxnmiI/UARC0IZ6QaLVsIHDlmmQO0FuyYFU/q9WP U+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:references:in-reply-to :cc:to:from; bh=1UzXv0PXDVlqVbLsGdpSGnwbkHJZTtXShiK3OrNBW8Q=; b=Y3ULldaV4hkyqOg0PbTeNL/dLth+aOg1LULwdjG4qkKefVrTjstk0c/qvGMFcignql pgqQW40QXUCBzGZcXKHmuL6sPgGwiQvbZUseg852LgcaLCfGiMT090Ozf+85ANk5cpuC bGUV7zWl1OhNZM7vAixWk2J/rk2cIzENzCOtKUpMnTwKMCr34loxoCTlPjt/VICWJkos bZyy+kvXidDgE1Z2cpFYYcn6yFK+tRo7OoYbLF9fauW/tOk+knr8TBTPO3NmEUE4t+C0 ax64ihz69R3/A8MeIZwrt9IUukwL7Hfc++vJkpGotnXH8phpRNgNnzd/yIXqetDMv0QN NL4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si8307631ejr.429.2021.03.14.03.10.50; Sun, 14 Mar 2021 03:11:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235116AbhCNKB7 (ORCPT + 99 others); Sun, 14 Mar 2021 06:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbhCNKBW (ORCPT ); Sun, 14 Mar 2021 06:01:22 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE8A2C061762 for ; Sun, 14 Mar 2021 03:01:21 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4Dyw734P9Lz9sWK; Sun, 14 Mar 2021 21:01:19 +1100 (AEDT) From: Michael Ellerman To: Michael Ellerman , Paul Mackerras , Christophe Leroy , Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH] powerpc: Force inlining of mmu_has_feature to fix build failure Message-Id: <161571587146.138988.4861060770867592113.b4-ty@ellerman.id.au> Date: Sun, 14 Mar 2021 21:01:19 +1100 (AEDT) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 27 Feb 2021 16:30:48 +0000 (UTC), Christophe Leroy wrote: > The test robot has managed to generate a random config leading > to following build failure: > > LD .tmp_vmlinux.kallsyms1 > powerpc64-linux-ld: arch/powerpc/mm/pgtable.o: in function `ptep_set_access_flags': > pgtable.c:(.text.ptep_set_access_flags+0xf0): undefined reference to `hash__flush_tlb_page' > powerpc64-linux-ld: arch/powerpc/mm/book3s32/mmu.o: in function `MMU_init_hw_patch': > mmu.c:(.init.text+0x452): undefined reference to `patch__hash_page_A0' > powerpc64-linux-ld: mmu.c:(.init.text+0x45e): undefined reference to `patch__hash_page_A0' > powerpc64-linux-ld: mmu.c:(.init.text+0x46a): undefined reference to `patch__hash_page_A1' > powerpc64-linux-ld: mmu.c:(.init.text+0x476): undefined reference to `patch__hash_page_A1' > powerpc64-linux-ld: mmu.c:(.init.text+0x482): undefined reference to `patch__hash_page_A2' > powerpc64-linux-ld: mmu.c:(.init.text+0x48e): undefined reference to `patch__hash_page_A2' > powerpc64-linux-ld: mmu.c:(.init.text+0x49e): undefined reference to `patch__hash_page_B' > powerpc64-linux-ld: mmu.c:(.init.text+0x4aa): undefined reference to `patch__hash_page_B' > powerpc64-linux-ld: mmu.c:(.init.text+0x4b6): undefined reference to `patch__hash_page_C' > powerpc64-linux-ld: mmu.c:(.init.text+0x4c2): undefined reference to `patch__hash_page_C' > powerpc64-linux-ld: mmu.c:(.init.text+0x4ce): undefined reference to `patch__flush_hash_A0' > powerpc64-linux-ld: mmu.c:(.init.text+0x4da): undefined reference to `patch__flush_hash_A0' > powerpc64-linux-ld: mmu.c:(.init.text+0x4e6): undefined reference to `patch__flush_hash_A1' > powerpc64-linux-ld: mmu.c:(.init.text+0x4f2): undefined reference to `patch__flush_hash_A1' > powerpc64-linux-ld: mmu.c:(.init.text+0x4fe): undefined reference to `patch__flush_hash_A2' > powerpc64-linux-ld: mmu.c:(.init.text+0x50a): undefined reference to `patch__flush_hash_A2' > powerpc64-linux-ld: mmu.c:(.init.text+0x522): undefined reference to `patch__flush_hash_B' > powerpc64-linux-ld: mmu.c:(.init.text+0x532): undefined reference to `patch__flush_hash_B' > powerpc64-linux-ld: arch/powerpc/mm/book3s32/mmu.o: in function `update_mmu_cache': > mmu.c:(.text.update_mmu_cache+0xa0): undefined reference to `add_hash_page' > powerpc64-linux-ld: mm/memory.o: in function `zap_pte_range': > memory.c:(.text.zap_pte_range+0x160): undefined reference to `flush_hash_pages' > powerpc64-linux-ld: mm/memory.o: in function `handle_pte_fault': > memory.c:(.text.handle_pte_fault+0x180): undefined reference to `hash__flush_tlb_page' > > [...] Applied to powerpc/fixes. [1/1] powerpc: Force inlining of mmu_has_feature to fix build failure https://git.kernel.org/powerpc/c/acdad8fb4a1574323db88f98a38b630691574e16 cheers