Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1614746pxa; Thu, 6 Aug 2020 11:35:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi3XBbKT2EEVlyz0sl8NMIep5EL3iJ1bhsT6/6QDDfqtftPV8tVs42/EqWeWpcY6M99N/w X-Received: by 2002:a17:906:1c56:: with SMTP id l22mr5581863ejg.84.1596738946606; Thu, 06 Aug 2020 11:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596738946; cv=none; d=google.com; s=arc-20160816; b=TfPTqgqc3LOfrw154ECSu6hGwLup/x8519NSEB/CaQMgL/YRBO7EOfRE6PTl8BkS0e I5nzH4ipcTb+q3gwyVgqarE6WvtcfLMKh3o0+IYnnS99n5FOwmd+6V4rk33tAygT86BP sIhf4gYHSqI/+tBeuyPwGbq05O8Jb4vvbhQjHFinwxwEfVdaEL9daIX6EhkRYChM+S+W BhAr3dC7CQn4qqiZg2H2ETglufKo3HAdO9yejJw22dd0ddSy2t6VYaJ+7g07+4X2VBFT m4qYkMSCqO+b73oCYDQJyNeocXl1hEjfiFpAavSL6EoOSJRAabaud4Cps8SRShHkHmSY TLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6Lwo0h1UUt/TkFfE8EDJeJnCBcomQmQ6I+GLf07iiXg=; b=rnLmKRTS9p9riJPjuIHRG7EhsLNjnNBlcYK6B9jYpoYORhK7M2UxTRXpFZJ5cbXzWx Ncf8SioCPfoXHIdUvTKHrx+18GriTL29yFp5xidoo6Kuw3uRu7GnhWGP0SapZbM06kO4 5q5Gf1rO7FxnRKPEFsqhot2Mx3gV2UOSypsc0WNrXY87Ki5R/xC0fkY7h300Cwz0fRcE c+bQev0TUfkFdV8EjLkLbJcNVJcZu8H9ZIxDYVb2G8o/OfrP7X4oCOAG8gCgYC2sI6RI Nk04EoP22pAnUnRdAJFO8eAhFUx7N1F3KDmoXmJuZDwV0qrBdVi5EwKwkDg1CTozQgV9 +UXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=bgSPmGpC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si3715899ejd.595.2020.08.06.11.35.24; Thu, 06 Aug 2020 11:35:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=bgSPmGpC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729207AbgHFSeV (ORCPT + 99 others); Thu, 6 Aug 2020 14:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728343AbgHFSeC (ORCPT ); Thu, 6 Aug 2020 14:34:02 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA116C0617A2 for ; Thu, 6 Aug 2020 11:34:00 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id qc22so36598241ejb.4 for ; Thu, 06 Aug 2020 11:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6Lwo0h1UUt/TkFfE8EDJeJnCBcomQmQ6I+GLf07iiXg=; b=bgSPmGpCYS5e5FW3E8UqQvh0DrBkVffrlqEPzxjQ13CfvimfhTStK2fLoQVOYd9W2w 1f6gndjCwBqLRVnufF94mWiG+N80jMFrUzBIoHEFmw/O5M1BxMiSmJU+FsIMbeM1ZZ8m B1DOF1T+PwYCGXan6+xPmqtgc3jSc4lGG9rjT1dMfhKIMkixlBv3AJWf+Kd4+fU0DRj4 mhZxQKFBp7vrNdEkcGJxFELeOpKh7KjxGwP6RgEP7Rzkxxp7enGlVMq/pZSwDTiofbVL o4Gn3Sn9KJpfg8ZpNjspxEkq6zTvwgSbaYyp1KpP8KbMF5n4z1blX7BVt4aylgklE54o mn4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6Lwo0h1UUt/TkFfE8EDJeJnCBcomQmQ6I+GLf07iiXg=; b=V2cKehBEZkTJx+dlJ/PMWy7cckMS/gddzVlIcU+Uq5b8qOdQZWt84auoMVYZV3L6pJ ppisdnkH5TkRteLJ4KLFJpS4Q5Y5i9T7V02resul1U7xZ/cCJsjg97JcupfPWmYSV/uF S8+jTCqPfde+NjzJ/7NVZocX12wFoapbgr8p8HE2w/LokzDWosreKvRCQPidV1lyEswA /buo0Sf3n3PCBIJnG1jjYngXAMj3L+qKIx0+gbgLDZK4YIbyvm7OZuVxOAKNkynTDGYU SrSl6ERhsCg9fvfmxrmi+9NrUl7diuCackLQr8v3KGgA2mi6JUhYKeJUZgS/OB9ePRuQ lglQ== X-Gm-Message-State: AOAM533jF2KAWyOzswvHAPLKZILfp5yXHn/gSRcqzM0pxA7qAABVkscr /yNIUhquOBXwhBrZjA/l/TgTKPlCOI8Vxwcz2PNHduCquA== X-Received: by 2002:a17:906:1403:: with SMTP id p3mr5592371ejc.106.1596738839416; Thu, 06 Aug 2020 11:33:59 -0700 (PDT) MIME-Version: 1.0 References: <20200803123439.83400-1-jbi.octave@gmail.com> <20200803123439.83400-2-jbi.octave@gmail.com> In-Reply-To: <20200803123439.83400-2-jbi.octave@gmail.com> From: Paul Moore Date: Thu, 6 Aug 2020 14:33:48 -0400 Message-ID: Subject: Re: [RESEND PATCH 1/2] audit: change unnecessary globals into statics To: Jules Irenge Cc: linux-kernel@vger.kernel.org, Eric Paris , "moderated list:AUDIT SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 3, 2020 at 8:35 AM Jules Irenge wrote: > > Variables sig_pid, audit_sig_uid and audit_sig_sid > are only used in the audit.c file across the kernel > Hence it appears no reason for declaring them as globals > This patch removes their global declarations from the .h file > and change them into static in the .c file. > > Signed-off-by: Jules Irenge > --- > kernel/audit.c | 6 +++--- > kernel/audit.h | 4 ---- > 2 files changed, 3 insertions(+), 7 deletions(-) Thanks Jules, this looks reasonable although I'm not going to merge them into audit/next until after the merge window closes. I'll send another reply once this has been merged. -- paul moore www.paul-moore.com