Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1004867pxa; Sat, 1 Aug 2020 13:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqMv2SwjRhx4ZMFvhlIL+ap8JfdlLHV+BVQSH+Wq655+22+pGLlBnCRhirjI4HpgbcXRY2 X-Received: by 2002:a50:baea:: with SMTP id x97mr9493890ede.337.1596313767585; Sat, 01 Aug 2020 13:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596313767; cv=none; d=google.com; s=arc-20160816; b=Lh4YmtXAIQP/btJcf0fDB/3HLZ+QNLsTC2SOFnT63I6HP8niBKJJtx1X0g9qf9Q14k Isu09ewDF62HpVql//E+tMM5VyGXMDIFvspPLOnHoq2DRW+yrvstHs3wtYEHU6h9Hanu eiO4cNTyXtoVawsiV0ytZ65xUWplEvztuCLqbzoeoMq6IPP9w4nUMmf0Q1jIg/dd9R23 NAA3bLLlIXiTrofj5+lnV8H4mpLXxX9/k61DUccMg6prir/aAef8yRGs1WHVq1IMhYzV HBvsIw1vBDYH/1XyNEA+4Z/Oe2CvC3yxC/eczKR1+AfVXXKIGWC/YoSIm2wfIHG9ZZwy +oRA== 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=+a0yGWWLvkimp+sCjAPTJ7AG+vTG8fsI+soOkfq3Pko=; b=ga/ddbFkSptH7EHJNtiDR34jPMZU/ZQ9q8PISboDGqpsQT4/AL5olmDEknaAbk80ed aLTtmRR9l5NBGrgeCDySxQqmWxyh86/utDAu3StjvsNCLVR5j69rvjtloFeTxY7DcUls UXGZ1wn6AjfQRgKUYxE63lWdT5LE4pD2/iGAJAUDBsi1kA2YNB1Rv3p7fdsgk01lHcc/ ZLc3w5d16a1vhuzQQcUtihrpId9g1btLEUUfiv4Cb88lvpGjeAs9g+32VdV6TK/s8vWP ORvljsIq/HUsYImi/5ITzr1LKcau9xOoaHg2aDAipgyc8CFAL6h6iXLBElkZ33u4zk6P ul4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=N5BlGEIX; 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 ov12si7406437ejb.671.2020.08.01.13.29.04; Sat, 01 Aug 2020 13:29:27 -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=N5BlGEIX; 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 S1727790AbgHAU0U (ORCPT + 99 others); Sat, 1 Aug 2020 16:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbgHAU0U (ORCPT ); Sat, 1 Aug 2020 16:26:20 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B85C06174A for ; Sat, 1 Aug 2020 13:26:20 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id qc22so19975379ejb.4 for ; Sat, 01 Aug 2020 13:26:20 -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=+a0yGWWLvkimp+sCjAPTJ7AG+vTG8fsI+soOkfq3Pko=; b=N5BlGEIXsHi8EpCipphyP8VliOgOo4GRnkefnH7vphNqt0wn2AruvHwtHbKE9jJL4j RUHCkue/PDymY1HlwrUyNlxvqcFs9lyxGzGzOi9NuFt22jMj+nStfWYjvzJBHJlNt8uA KnpvjY+uFyXkC5AAQAIBP8+bGtZMA5VMSl1S638s2NuYX7Kqjdxw7Ks4ZDLe4c7UoCqA IpxFRZ7ZkDybofZLmpYQpaBtoG7+7Kp7dGdEtZzww8WcvE7xujp97imyxMcLDossN6rQ ik+fwFC7l8pat7BwuvJ6fhygzTvDNoxWOfm6mWfVgFFtOF7CeIFIfwdZ6zxDjMslQpaD kYpQ== 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=+a0yGWWLvkimp+sCjAPTJ7AG+vTG8fsI+soOkfq3Pko=; b=VkGVFwbsxQfLXhYtvymLk5xTqvhol4rIp0oVPJvKMNoeRms+CVYdtgJ1AhmqAz/SUM Sc9ecijOkzwro64CafIuBsbdSHKCED5o0DCrARHTHbrJhOnGO4R6+39v5z3+dfJZu7DY sKMR6LGQAfe6rC6DpDTGa3pfSYV1YEIAtjSY30a10mTINCyJ/ZhyTAetJ4HYZ+JKtI0P /bj+iV9B928K9mI0WzIiBViXfL71jdFHM3DgSR0Hx/OCnRWzi0UzVEXAV2Xms0unSeil 7J+ZQndS/m5Q9l6EV2dXs1n0FTBjtiFVBasZrYUfNn1PuQSx7yYL1dutilo9pZXZv7ba tLkQ== X-Gm-Message-State: AOAM53099CmH/nQ7Ag+V3lQXrqUQgNZtO4uf1NQXDMcY1rjOFY08XWwV V9YnDbmBCz9P+yUF8GiaL8WfgW6MdXNNL4wjCGTr X-Received: by 2002:a17:906:7c86:: with SMTP id w6mr9625303ejo.178.1596313578663; Sat, 01 Aug 2020 13:26:18 -0700 (PDT) MIME-Version: 1.0 References: <20200801184603.310769-1-jbi.octave@gmail.com> <20200801184603.310769-3-jbi.octave@gmail.com> <91c6c45f0d8ec0d031c216711cd8d7f6e9aad7ad.camel@perches.com> In-Reply-To: <91c6c45f0d8ec0d031c216711cd8d7f6e9aad7ad.camel@perches.com> From: Paul Moore Date: Sat, 1 Aug 2020 16:26:07 -0400 Message-ID: Subject: Re: [PATCH 2/4] audit: uninitialize global variable audit_sig_sid To: Joe Perches , 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 Sat, Aug 1, 2020 at 2:55 PM Joe Perches wrote: > On Sat, 2020-08-01 at 19:46 +0100, Jules Irenge wrote: > > Checkpatch tool reports an error at variable audit_sig_sid declaration > [] > > diff --git a/kernel/audit.c b/kernel/audit.c > [] > > @@ -125,7 +125,7 @@ static u32 audit_backlog_wait_time = AUDIT_BACKLOG_WAIT_TIME; > > /* The identity of the user shutting down the audit system. */ > > kuid_t audit_sig_uid = INVALID_UID; > > pid_t audit_sig_pid = -1; > > -u32 audit_sig_sid = 0; > > +u32 audit_sig_sid; > > All of these are unused outside of audit.c and might as > well be static and removed from the .h file. There's plenty of time before the merge window closes, doing this would definitely make this patch much more useful than the typical checkpatch noise. -- paul moore www.paul-moore.com