Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3867951pxv; Mon, 19 Jul 2021 10:39:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH9+RmnhCYmjFvPTmbrF9kvv3F4dHCUt4HAjL68KhyfbM3IxSGEInAZCxmEebvn2LB2Oob X-Received: by 2002:a17:906:a2c4:: with SMTP id by4mr9563764ejb.521.1626716288561; Mon, 19 Jul 2021 10:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626716288; cv=none; d=google.com; s=arc-20160816; b=JVOdPLHFDacx9S7MLcH/XlR1NBtvmglz2JFsBlE3apMoMXJB0pepGKnG3yXdRkpqvO Q6sd5xlKQ9f9BWUovq3PeYkZ8emYUMdgyZNYNHrWu6Tg1KqYwfvb/skBHSZffAAExh0P yN8f3Ea1HCUxsvF2plnwCRZjCKmTdGFMLbCyk413eRfNHw4KszqRczpgFTjhVaFWcUUu zgc0hdQMcBbk9+UPCOX7Gp7n3IC9+0crEA0DjXWtikHR2LPjW6IjzhuWkQyFNxmEHV5c rtq0Fhdq19K5O/uWNgkU9JFoMUbkVD+/gFd7AYWlDoQRDOkqhDezbJAjph6dewOj4+uI bCEg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gj4h1Vq4od2Ml3+7oWeJUORnMk8UC77G7b7PXwNHqYM=; b=c32trgYWD9Sbbw7gzv682B4ATngzN0P9Z1w6k7kHwWKGDcGRPfHOYGLKLQ9m3k50c/ XrTxte1A5scOVm8yo8mIkjAF9tlsV5OEUyPwAMYL1EAPiyyva508+iczccpwQz4KE1+y 42ecUUpYi8p9oC9mDlNGz36XGTLkKdkDoiOO8X9164IQbmCAsF5+QWrLHgGnHdx6gTZd 5D2VbpCtCh2CeM65ga3+DSMMxJ3ZrsFrrBGocBsHcm6oxSc7QstaWOwBTCZ8aG6rQfP/ dgii4U4ieLcdcGahCaJFzAefWyA7nIt5QN9Mo2zIHgz1tfwOZuqdtN6kLI+sipRJO9yO YbZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aPz3O+Qc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si14866195ejj.684.2021.07.19.10.37.45; Mon, 19 Jul 2021 10:38:08 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aPz3O+Qc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357286AbhGSQv0 (ORCPT + 99 others); Mon, 19 Jul 2021 12:51:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:40236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348027AbhGSPYT (ORCPT ); Mon, 19 Jul 2021 11:24:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4F52B6135D; Mon, 19 Jul 2021 16:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710444; bh=OwA5QZYq2jFhyFahTJ1Ej3yiVjxkMNWVrLHImZjzpBY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aPz3O+QcGP3LGmBDarxqnL0HOFtiq1gIMxR24RCWDCoO1D1iPavOn4zDOuntqTTqU Og+GW1NpJrAbTgxAXSkKM9Sw89U468boHpX0MOmHRu8a56kmGF0L+t/naXbF1xxNKi h2zi7jTgPb8ztq1+nWlQE6/M+SX2VuZBLLIviX+4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Brian Cain , David Rientjes , Oliver Glitta , Vlastimil Babka , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.10 185/243] hexagon: use common DISCARDS macro Date: Mon, 19 Jul 2021 16:53:34 +0200 Message-Id: <20210719144946.896046694@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit 681ba73c72302214686401e707e2087ed11a6556 ] ld.lld warns that the '.modinfo' section is not currently handled: ld.lld: warning: kernel/built-in.a(workqueue.o):(.modinfo) is being placed in '.modinfo' ld.lld: warning: kernel/built-in.a(printk/printk.o):(.modinfo) is being placed in '.modinfo' ld.lld: warning: kernel/built-in.a(irq/spurious.o):(.modinfo) is being placed in '.modinfo' ld.lld: warning: kernel/built-in.a(rcu/update.o):(.modinfo) is being placed in '.modinfo' The '.modinfo' section was added in commit 898490c010b5 ("moduleparam: Save information about built-in modules in separate file") to the DISCARDS macro but Hexagon has never used that macro. The unification of DISCARDS happened in commit 023bf6f1b8bf ("linker script: unify usage of discard definition") in 2009, prior to Hexagon being added in 2011. Switch Hexagon over to the DISCARDS macro so that anything that is expected to be discarded gets discarded. Link: https://lkml.kernel.org/r/20210521011239.1332345-3-nathan@kernel.org Fixes: e95bf452a9e2 ("Hexagon: Add configuration and makefiles for the Hexagon architecture.") Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Acked-by: Brian Cain Cc: David Rientjes Cc: Oliver Glitta Cc: Vlastimil Babka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/hexagon/kernel/vmlinux.lds.S | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/hexagon/kernel/vmlinux.lds.S b/arch/hexagon/kernel/vmlinux.lds.S index 20f19539c5fc..57465bff1fe4 100644 --- a/arch/hexagon/kernel/vmlinux.lds.S +++ b/arch/hexagon/kernel/vmlinux.lds.S @@ -61,14 +61,9 @@ SECTIONS _end = .; - /DISCARD/ : { - EXIT_TEXT - EXIT_DATA - EXIT_CALL - } - STABS_DEBUG DWARF_DEBUG ELF_DETAILS + DISCARDS } -- 2.30.2