Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755537AbcJSXnQ (ORCPT ); Wed, 19 Oct 2016 19:43:16 -0400 Received: from alt22.smtp-out.videotron.ca ([70.80.0.73]:5088 "EHLO alt22.smtp-out.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755426AbcJSXnN (ORCPT ); Wed, 19 Oct 2016 19:43:13 -0400 X-Authority-Analysis: v=2.1 cv=L469O7n8 c=1 sm=1 tr=0 a=keA3yYpnlypCNW5BNWqu+w==:117 a=keA3yYpnlypCNW5BNWqu+w==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=CH0kA5CcgfcA:10 a=3jpGb2rOdDYmujBgfZUA:9 From: Nicolas Pitre To: John Stultz , Richard Cochran , Yann E MORIN Cc: Thomas Gleixner , Josh Triplett , netdev@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] make POSIX timers optional with some Kconfig help Date: Wed, 19 Oct 2016 19:42:49 -0400 Message-Id: <1476920573-14384-1-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfAi3PXjjfkeqUzWEzCViAU1UTSRoMEJk4AVz/iAwQuiTFhBjSb7M4TpMTVYLNjqnW8CzkExJ1vSdPUkcYGCRCZCIKfvYrLqEiEfEA0rl0SAeEIWbj3Is fuEvkf1KHqYiwiRP0st5136WpcY8bRDvz205eicDjR0v5um33fI4VjGmITIfpvu4kq8xuCbBwwP10y0vKpmCgF/ZzjOe8ad7/PlAHBZP3pSxLFb6tzgkt8At eDV8UPq0f3sOTEAag1hmVbFMnh1Yf8Oh8HOuTK9AJpz7ZgxlGLgMPjA95WW/Ig9Aut4UmlrXG9D+U4rblXRN5+4+3YVpYPsnIuVhTZMjTQY0j4YXjmeNqswK 4WIkdTfCBe6sB1cQIa6sU8+Oi2zFyIog8zI0UC0Lqo/AvDqGGim7yQBeKGZ9ngvwkOKS7RZ0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2852 Lines: 54 Many embedded systems don't need the full POSIX timer support. Configuring them out provides a nice kernel image size reduction. When POSIX timers are configured out, the PTP clock subsystem should be left out as well. However a bunch of ethernet drivers currently *select* the later in their Kconfig entries. Therefore some more work was needed to break that hard dependency from those drivers without preventing their usage altogether. Therefore this series also includes kconfig changes to implement a new keyword to express some reverse dependencies like "select" does, named "imply", and still allowing for the target config symbol to be disabled if the user or a direct dependency says so. How to deal with the dependencies across three subsystems for potential upstream merging needs to be figured out. The bulk of the diffstat comes from the kconfig lex parser regeneration. diffstat: Documentation/kbuild/kconfig-language.txt | 28 + drivers/Makefile | 2 +- drivers/net/ethernet/adi/Kconfig | 2 +- drivers/net/ethernet/amd/Kconfig | 2 +- drivers/net/ethernet/amd/xgbe/xgbe-main.c | 6 +- drivers/net/ethernet/broadcom/Kconfig | 4 +- drivers/net/ethernet/cavium/Kconfig | 2 +- drivers/net/ethernet/freescale/Kconfig | 2 +- drivers/net/ethernet/intel/Kconfig | 10 +- drivers/net/ethernet/mellanox/mlx4/Kconfig | 2 +- drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 2 +- drivers/net/ethernet/renesas/Kconfig | 2 +- drivers/net/ethernet/samsung/Kconfig | 2 +- drivers/net/ethernet/sfc/Kconfig | 2 +- drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +- drivers/net/ethernet/ti/Kconfig | 2 +- drivers/net/ethernet/tile/Kconfig | 2 +- drivers/ptp/Kconfig | 10 +- include/linux/posix-timers.h | 28 +- include/linux/ptp_clock_kernel.h | 65 +- include/linux/sched.h | 10 + init/Kconfig | 17 + kernel/signal.c | 4 + kernel/time/Makefile | 10 +- kernel/time/posix-stubs.c | 118 ++ scripts/kconfig/expr.h | 2 + scripts/kconfig/menu.c | 55 +- scripts/kconfig/symbol.c | 26 +- scripts/kconfig/zconf.gperf | 1 + scripts/kconfig/zconf.hash.c_shipped | 30 +- scripts/kconfig/zconf.tab.c_shipped | 1581 ++++++++--------- scripts/kconfig/zconf.y | 16 +- 32 files changed, 1115 insertions(+), 932 deletions(-)