Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1391178pxj; Fri, 21 May 2021 13:05:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywEoARg9pd6RFSLsshsEKNSubrozzrQjF420emz6kTGwSOOBx7cIstDANxQ0/18gx2JqqY X-Received: by 2002:a05:6638:1382:: with SMTP id w2mr7240736jad.78.1621627530844; Fri, 21 May 2021 13:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627530; cv=none; d=google.com; s=arc-20160816; b=qv3ah2M1EMQJZgUdzThDuxouzqmxEa0cPsLuiTkvFGBZX3fFe5zKPPt5gdokGyjH9K f4UnTFer2yMtqyWS5WG2P0++cE1Y6Dhib5OUeGg+Ep0OBinWFSAnOlCp2BqtlG1Sc1Ho IqPh1TbYVSHxfPJqVMY12JPhhV+C/VkLEVjH7H6lVaq9lR946uwxrF7g0jbcRcP+H20K stXlpJsoMK2BhAJqV3TccmB93zkSKoYXMkoUQnqSTL4KiFXnyKWNbGMX0ZVuLelPyiEt 8xKXcoONrT5rMBEwFbvfwmiQeFZf9UZuee+XSdvuhUeGKCd9z3nmfXQcDtCjRN8zk8Aj 6GLA== 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; bh=cwe0i51SCZk3CLQMaY5KY1wqqj2RiORqp23tnMHlSrg=; b=lhP+ntXrghYZ8cTUdWkYUR4awiIShA6CtXHgo/WlZuVVsTRQ1SZG7SfSu2+Oqucfbc 9lL/oJduFCAqA74ZRbTUSKw6228V43zA9zwUrdNegPkGrRGnusvt6Fqt+3A2uRXnn88/ EObNnTUXFOmLqgGkjbFzMxjRxDdG6V3K2cjtHEthdcUTTPbVTeEWLVGyrFdiC9yhSHc5 WS67r4C7uC1yC+1ESsaei3hwXS6aSHWWu5jI6cQK71qH37nIfSLHv+AUV561SRDa3+uR zc0u3U/NFjRX/rOrRQKrwhNbY+m9xJBsMPvqNwKDJOncTwzZTbRTS0PJQsDN1JfG0jRz A4Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wa3x4reI; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si5997879iot.47.2021.05.21.13.05.17; Fri, 21 May 2021 13:05:30 -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=@kernel.org header.s=k20201202 header.b=Wa3x4reI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236399AbhEUBOs (ORCPT + 99 others); Thu, 20 May 2021 21:14:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:51206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236385AbhEUBOs (ORCPT ); Thu, 20 May 2021 21:14:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C4D6561353; Fri, 21 May 2021 01:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621559606; bh=Q53uLt058VqqMq7piTaVF16wJNWWvSaaXUZvYmks+k0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wa3x4reIsA97+00X/REPgrpX59dUttps4HSTPOhCqH07y/eUa4+/8zgqQ/3khDt6G RIJCLNkrFpEn+absROamc2tuQukdS4TaT8wAzI/xfz5W9R7MVKwgFHupVqK8csuB+F 8Z+fbFbpVeSW+gTOW7czbbwG+fbCd/GWUhPhJ09Mm2hSBcTGcty/9Mj+oHQZtz3XTz 4ysVq6gN3lUB/zeQu80ySO+wbMrGcuJh10xZ2y4TP0+P6CPSrdKxLRz9SLeVhfUiKn kfoVlg+NGOPzJ1YEQ428QJRywPr6TNt3DCY59UTJF+FDEdeW7aRLSqug1qUGPSPoIE twCmlhgyvNXyA== From: Nathan Chancellor To: Brian Cain , Andrew Morton Cc: Nick Desaulniers , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH 2/3] hexagon: Use common DISCARDS macro Date: Thu, 20 May 2021 18:12:38 -0700 Message-Id: <20210521011239.1332345-3-nathan@kernel.org> X-Mailer: git-send-email 2.32.0.rc0 In-Reply-To: <20210521011239.1332345-1-nathan@kernel.org> References: <20210521011239.1332345-1-nathan@kernel.org> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Fixes: e95bf452a9e2 ("Hexagon: Add configuration and makefiles for the Hexagon architecture.") Signed-off-by: Nathan Chancellor --- 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.32.0.rc0