From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbdKTQJH (ORCPT ); Mon, 20 Nov 2017 11:09:07 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:58056 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbdKTQJF (ORCPT ); Mon, 20 Nov 2017 11:09:05 -0500 Date: Mon, 20 Nov 2017 16:08:53 +0000 From: Alan Cox To: peter enderborg Cc: Romain Perier , John Stultz , Thomas Gleixner , Stephen Boyd , , Linux Kernel Mailing List Subject: Re: [PATCH] time: Make NTP optionnal Message-ID: <20171120160853.2a1bb7b2@alans-desktop> In-Reply-To: <24617dd4-66ed-d7c9-4c2c-8ad2faac7b72@sony.com> References: <20171102182950.6129-1-romain.perier@gmail.com> <24617dd4-66ed-d7c9-4c2c-8ad2faac7b72@sony.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Nov 2017 16:22:06 +0100 peter enderborg wrote: > On 11/20/2017 04:00 PM, Romain Perier wrote: > > Hi, > > > > 2017-11-20 15:10 GMT+01:00 peter enderborg : > >> I think it should return a error code at least. > > In which case ? The idea was to don't change the behaviour of these > > functions (from the "API" point of view) and to avoid regressions in > > the kernel components that depend on these NTP feature. > > (so be transparent the most as possible) > > > > Thanks, > > Romain > > > > do_adjtimex should return -ENOSYS in my opinion, however it is not in the manual > that it can return ENOSYS. The standards specifications state what must be returned for certain error cases, they don't forbid other errors being added. Old old Linx will of course already return -1,ENOSYS to this call. Alan