From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752569AbcIINmA (ORCPT ); Fri, 9 Sep 2016 09:42:00 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:48740 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbcIINlw (ORCPT ); Fri, 9 Sep 2016 09:41:52 -0400 Date: Fri, 9 Sep 2016 15:39:24 +0200 (CEST) From: Thomas Gleixner To: Nicolas Pitre cc: John Stultz , linux-kernel@vger.kernel.org Subject: Re: [RFC/PATCH] posix-timers: make them configurable In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Sep 2016, Nicolas Pitre wrote: > Small embedded systems typically don't need them. This removes about > 16KB from the kernel binary size on ARM when configured out. > Corresponding syscalls are routed to a stub logging the attempt to > use those syscalls which should be enough of a clue if they were > disabled without proper consideration. > > Signed-off-by: Nicolas Pitre > > diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig > index ee3de3421f..00e6098e9a 100644 > --- a/drivers/ptp/Kconfig > +++ b/drivers/ptp/Kconfig > @@ -6,7 +6,7 @@ menu "PTP clock support" > > config PTP_1588_CLOCK > tristate "PTP clock support" > - depends on NET > + depends on NET && POSIX_TIMERS > select PPS > select NET_PTP_CLASSIFY > help You forgot CONFIG_TIMERFD .... > +void do_schedule_next_timer(struct siginfo *info) > +{ > +} .... > +void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times) > +{ > +} You should make them static inlines in the headers so they get compiled out completely. Thanks, tglx