From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbcG2KPG (ORCPT ); Fri, 29 Jul 2016 06:15:06 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:40710 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752693AbcG2KPD (ORCPT ); Fri, 29 Jul 2016 06:15:03 -0400 X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6+dev To: Andrew Morton cc: linux-kernel@vger.kernel.org Subject: [PATCH] init/Kconfig - add clarification for out-of-tree modules From: Valdis Kletnieks Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 29 Jul 2016 06:14:52 -0400 Message-ID: <10177.1469787292@turing-police.cc.vt.edu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It doesn't trim just symbols that are totally unused in-tree - it trims the symbols unused by any in-tree modules actually built. If you've done a 'make localmodconfig' and only build a hundred or so modules, it's pretty likely that your out-of-tree module will come up lacking something... Hopefully this will save the next guy from a Homer Simpson "D'oh!" moment. Signed-off-by: Valdis Kletnieks --- diff --git a/init/Kconfig b/init/Kconfig index 55c07b855e90..b4c9eb8119c0 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -2083,7 +2083,7 @@ config TRIM_UNUSED_KSYMS (especially when using LTO) for optimizing the code and reducing binary size. This might have some security advantages as well. - If unsure say N. + If unsure, or if you need to build out-of-tree modules, say N. endif # MODULES