From patchwork Wed Jan 6 20:08:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 358919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C61BC433E6 for ; Wed, 6 Jan 2021 20:09:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B23C23131 for ; Wed, 6 Jan 2021 20:09:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbhAFUJi (ORCPT ); Wed, 6 Jan 2021 15:09:38 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:21079 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbhAFUJh (ORCPT ); Wed, 6 Jan 2021 15:09:37 -0500 Date: Wed, 06 Jan 2021 20:08:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609963734; bh=FmvdsZCHCCE79sjLAYIX/gq7paKAr3hB9iXFALHlrb4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=gt36kiA0CRoN8rChYplX9XqLtn9UKfAR9usnM1uWIFAHUshGzRBlLI+zwggTmGMTj JGbxJM4w/rbrz6YpzayyOgJDU3WL9EPMzb0fdstFh7URQ0qsVgdyosMuc8I2kr6ZLK N+/yCp4qh0juzn28oXa86sRonFMHbUw24GUwou1j1osqEgAqV/hnswyuNFZF9ksmvv JuaB+wbuFWd84McudMSzsxDvg5RiznS19PwJATCwjKJ2ltv4q/FhugFRPtJEl/7voc mV/t33M0CBHvU2KPJcsIFKdJ9yNmLzMYWgRX9Fym1bWK8jyjcr4d62mSdCFvcMKAyp 44mx+EOvo34pw== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Nathan Chancellor , Kees Cook , Fangrui Song , Jiaxun Yang , Alex Smith , Ralf Baechle , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 mips-next 4/4] MIPS: select ARCH_WANT_LD_ORPHAN_WARN Message-ID: <20210106200801.31993-4-alobakin@pm.me> In-Reply-To: <20210106200801.31993-1-alobakin@pm.me> References: <20210106200713.31840-1-alobakin@pm.me> <20210106200801.31993-1-alobakin@pm.me> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Now, after that all the sections are explicitly described and declared in vmlinux.lds.S, we can enable ld orphan warnings to prevent from missing any new sections in future. Signed-off-by: Alexander Lobakin --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index d68df1febd25..d3e64cc0932b 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -18,6 +18,7 @@ config MIPS select ARCH_USE_QUEUED_SPINLOCKS select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU select ARCH_WANT_IPC_PARSE_VERSION + select ARCH_WANT_LD_ORPHAN_WARN select BUILDTIME_TABLE_SORT select CLONE_BACKWARDS select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)