Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3026653ybc; Thu, 14 Nov 2019 02:53:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzBGnXBY/aMgca0802F9h5op69wLr4kFkLtBbEb7hxzrFyhnHNsW2P8MA7eQ4q8ejrcf6Qm X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr7756086ejh.333.1573728804519; Thu, 14 Nov 2019 02:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573728804; cv=none; d=google.com; s=arc-20160816; b=nrIoDPARswH97bjnvdr0ACzd2KXcGI9jOwZipXSPXfOCS9bAhLOLCrG4TZxD1ywH+o YJj1avCzMjZ6/SWc2Y7sak++9+XSU3fZazOE25MZMAYrT4zK4vOhXx6xiAPhgR3hh/7m pbBiCOPc3tXT8up8s1xA/IUw3f9xFbgQuLHeeuRexLNI2o9W2RLBmSzZE5xDzsq94Osu x8y+CkHvCXAjM/nTfCM+i5rlK3MBO4HTJQjQ1F2LvJMRQaQX7OXoIIB4xeZHNkNN90Cu lInLFYH/JXYH30K3NvTUwbBpPRvzIYz6QNcL8SzaJAMxbuaXmnAZFNZjWi7Up/NinCmJ Bx9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=im3hGMSuEraeEC61/jnkQsNRDLwCzKcMEdR3FSdGxAU=; b=XrUq0Euj7MSeb4XiI2DdW8OxcZB5WmhmXyJcli7zTtELJlosX7HIdsCGbwxJa+mAb1 YEtgM6N19lEy2Kx7sZ9zOyvY1S3YbsT9VX+MVDVcoztLNWWXyPj4G7vtIW89Q3AlHf7k KMIFtmkZyl0OiK1hXd9MVEMaleHTFvEa3dzmTsyTFvYPSXkrN26SKCLr6HBnXj2OLFRj 2EDsoIPHbypObUQ9JayCmnoTtYP8kvro8ruyBdj+JmTi4Eh3IpjJdaV+nvznBVdNlu4Y 4rSsKqvE1F6qOn+/HVbsz2j46veg3ocx41TYp84ybdamVGIfYkdU7DbCT5ZfM4+uSNYa dmXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si3198481ejb.380.2019.11.14.02.53.00; Thu, 14 Nov 2019 02:53:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbfKNKwI (ORCPT + 99 others); Thu, 14 Nov 2019 05:52:08 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40267 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbfKNKwI (ORCPT ); Thu, 14 Nov 2019 05:52:08 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iVCjA-0008Ez-UZ; Thu, 14 Nov 2019 11:51:53 +0100 Date: Thu, 14 Nov 2019 11:51:52 +0100 (CET) From: Thomas Gleixner To: Ondrej Mosnacek cc: Arnd Bergmann , y2038 Mailman List , John Stultz , Paul Moore , Stephen Smalley , Eric Paris , Linux kernel mailing list , Stephen Boyd , Sebastian Andrzej Siewior , Ingo Molnar , Anna-Maria Gleixner , Al Viro , SElinux list Subject: Re: [PATCH 20/23] y2038: move itimer reset into itimer.c In-Reply-To: Message-ID: References: <20191108210236.1296047-1-arnd@arndb.de> <20191108211323.1806194-11-arnd@arndb.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Nov 2019, Ondrej Mosnacek wrote: > On Mon, Nov 11, 2019 at 11:58 AM Arnd Bergmann wrote: > > I don't see that as a problem, we rarely put declarations inside of an #ifdef. > > The main effect that would have is forcing any file that includes linux/time.h > > to be rebuilt when selinux is turned on or off in the .config. > > OK, but with this patch if someone tries to use the function > elsewhere, the build will succeed if SELinux is enabled in the config, > but fail if it isn't. Is that intended? I would suggest at least > clearly documenting it above the declaration that the function isn't > supposed to be used by new users and doing so will cause build to fail > under CONFIG_SECURITY_SELINUX=n. Come on. We have enough functions in the kernel which are only available under a certain config option and if you (ab)use them elsewhere then the build fails. So what? The #ifdef documents the limited scope and intended use clearly. If something else really needs that function, then removing the #ifdef shouldn't be rocket science either. Thanks, tglx