Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3778924pxv; Mon, 19 Jul 2021 08:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHCDcDnYqibgEWqWyuaFwblOqQq1esu6eWglPowdDEJdxTfYzMZudj1C7hSIOvu5oyoaLc X-Received: by 2002:a02:9109:: with SMTP id a9mr22515363jag.93.1626708757584; Mon, 19 Jul 2021 08:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626708757; cv=none; d=google.com; s=arc-20160816; b=IJ29QdJme66RVC6eB8k/IbnzgbaoS4WstS4uejNJWqc/yEuVXS87SoTURgRsoG7XmD jbv/hRYZYV77ELtLRHuVhICykNJKfdj+ubCuXcO5T0PgEXY/YgALVyyynkxZAd038pFU P8CUB4AtOeEwaQ0e+mTQ2OP8IqItnuSR1YaXQ1zluMDW9ujKdQyNaLtFN/OZ0yXOnCQ4 BHf9rsicVhlodoBfP6Z0s8TtfQXtsorJ6BJtoSChh+qUiUJiSzcC5EqXVnvnl0gZCrIV uSwSA5WcLMfl2wKzl1H5LmiIXb+ofP0jPwIPtj7AL2KXkuwc0EqG9y9um2gazb0Arwbp gxmA== 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=ZyOOxZ0ArQNbcB12YCzDeod/CeZbMPrNpBpD6lUeLbY=; b=V90UoBGCFuNOpSwFkNmi77zkSvF4uRln0531SKWKDBuBCHti2ef3gCHAgUoDIfLhYE KXJAO6SwfShdXLZGuSvs47vRg6onl3be8qZFvsDytW2LHO8svqM8nscw13Ud36x8UgIJ xsZjGdz15Zk3otcLMJychLTGCDMKyYEeHy9mh5XoSjNlwqtBb6qFyV9fDkEg2QWYNe3f EnpGFCApbThj7+EhcfyQ7BZ/0W3HJe0KqTogvu8tyNt7V6Y8FsywZEMrfcwXTwo/j1iJ EUalEWizjOyfvCULo0pwOFA+QNDoEeBXSm4LH6WGL/UlxzBs1kS9cbhgDtlq78knHED7 SHnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M976k2tZ; 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 k15si21342595jad.51.2021.07.19.08.32.25; Mon, 19 Jul 2021 08:32:37 -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=M976k2tZ; 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 S237934AbhGSOtb (ORCPT + 99 others); Mon, 19 Jul 2021 10:49:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:47266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244586AbhGSOeO (ORCPT ); Mon, 19 Jul 2021 10:34:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1164761264; Mon, 19 Jul 2021 15:13:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626707610; bh=VvtALEWSNEAVWuiRWv20AZYkGoMKH7GeHM9YHnFQOUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M976k2tZ+ctRva/Vn5wsVmLdaWt/vld+5vbzbjNMx9g+Nhir7DiEYCDLONkcpsZO4 ueUJE1dEEk4AY6BMuOQuqx6pkMvJbp6BfpzGOuQ1uTXF3vXWIiKWTLtiUjkImQFmWT 4F0wLCoT/CE2krrsRbwCAPKLM/DvPCiRG7kVsBVM= 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 4.9 233/245] hexagon: use common DISCARDS macro Date: Mon, 19 Jul 2021 16:52:55 +0200 Message-Id: <20210719144947.914888880@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.288257948@linuxfoundation.org> References: <20210719144940.288257948@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 ec87e67feb19..22c10102712a 100644 --- a/arch/hexagon/kernel/vmlinux.lds.S +++ b/arch/hexagon/kernel/vmlinux.lds.S @@ -71,13 +71,8 @@ SECTIONS _end = .; - /DISCARD/ : { - EXIT_TEXT - EXIT_DATA - EXIT_CALL - } - STABS_DEBUG DWARF_DEBUG + DISCARDS } -- 2.30.2