Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1437067pxa; Sun, 2 Aug 2020 07:38:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfBeI7H5JRrqKcCdIudBQNjOVri6xo+uv7Rhs6GJNiqszOmEwgkh7Lusi9BXkMP1Fg0NG1 X-Received: by 2002:a17:906:7c86:: with SMTP id w6mr12328231ejo.178.1596379100346; Sun, 02 Aug 2020 07:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596379100; cv=none; d=google.com; s=arc-20160816; b=TPd3a9t3GAMmzovVoONkTeZcGJx3N8RG1GeqY02WarcV1TIOnbQBa6hyipAC/a3xzI cWmIn+YE6MIvdcSRqsEBm9OsFhw40y3uHgrb7MIzPXGiWxHE1OscyFXpGVJNixBO+v+3 ks61I/FO1L3CWOquqpkF17gxSDZmqKeUA/zkCffwqh0qCJRGL6H/NseVVLckCdOa6cB7 nIDyzRFc3S5CR31za3X1a9whKl98rllzXZlNAdcGRdbiLUS5JVxNJfF1Lc1m3qQW2c+s ONRWZnRtS1yROnwnQ6RvxBSQGlcKmm1lMB/eeLQO5hoyz0o7KeykowFIrlNOIPAAExOE Uorw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:date:from:dkim-signature; bh=9PypgIJJvqCkuITTRt+jUQNytQ0pFV6e29FYNAjaOQI=; b=0VsoeGnVL2B6tYJBwRlP8dm4wa6TvpdJ6z1cR3cCQCsls4MGLK/mIUJLEEEb/31VSb mQ8aVxKEPgvs3OQsJlkxTxNwg9qEjthZyW76i6oDNvI/CEFeR+5S8V6csUBVuA84zcif Mqh7z4/ZWIuNFxAIczK/up+TRGhZcfvM4j6FAUQ9SvSpHp0SqhpuUXR7PHW++fN5EZL9 NHRBN+Hh2Vyd0+dwuHeTIIKJ5/P1LP+8xQsbzEbPthGq/4wvP9Cum4zjfTWrSf4h+TyB 2++2R8CfzNJszPhsTvjcT7PsTi/dPb0iHeqSNhzJ8Ei3CPOwwXViSd9psNrnc1xDWtPy NrHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qGrbhJWX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si8940290ejd.178.2020.08.02.07.37.57; Sun, 02 Aug 2020 07:38:20 -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=@gmail.com header.s=20161025 header.b=qGrbhJWX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725951AbgHBOdv (ORCPT + 99 others); Sun, 2 Aug 2020 10:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgHBOdu (ORCPT ); Sun, 2 Aug 2020 10:33:50 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E4EC06174A for ; Sun, 2 Aug 2020 07:33:50 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id r12so31838308wrj.13 for ; Sun, 02 Aug 2020 07:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=9PypgIJJvqCkuITTRt+jUQNytQ0pFV6e29FYNAjaOQI=; b=qGrbhJWXHWHX18WDV/YUY5AHxTIU7XH/26nLWUu4CvISbkjD+qlu3aUGdtlEFxajNR S+0nrYR0fJ6fM9KTK+W024dHbJ6jECNtG/EGVZechrvd8FNg135fG3oPbGtX5qLIdQXE bS1vDIXDJUTOGPZWjoJ0fjCi45CWQFIgKRv2ApBhqk+1FZxKXLX2UeX9EdKa1oVPJiHl uobnJflc5WCVHBv201zj+MjCDK18WYeMm70w0ZgcihptLzGhn3bB0hS5qtXDpR0wtFXP R5yFDBbJH1O3lkg5ozs4A4ZRVIlMg8CmKDL62qlvXpTFfKhKsfIGvil42QZleVeivg4N 7tbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=9PypgIJJvqCkuITTRt+jUQNytQ0pFV6e29FYNAjaOQI=; b=Tuj2iNPNR5aclTQsdJ2m58R92fo0T+gDCdcB4pNJCIMQTikUYF72k9pYIIH++arZH+ RyTBXIdnA2qWDyBsYpiOce0OcfSMDd50DC+shdAF+uz9SQ0nUOWCvAXdHTKoM28XhvkV aWTsRApNJ9kIpFf5pzqvwbHR0vPwv55XmsB5+nhMLXrW/48Gdd/Ywp+m8aEnLR4RjlLw axlI0xF+bnM2UHKUtExX1bsM3fG5LiGZ335hmLcTypnJ1S9fDmQc4RPvcGonRj0XTQts /Ow8Xnzk607o1hvVsZcEFnaPP1/ivHeT4ogaTQpPPtC+ILIcQP1TZrosY/dMOFSLRiYG lqvg== X-Gm-Message-State: AOAM533SvfJ0RVcZJry6Y8o+c6tftFCT9exAgOA3qaz8ChAJZ7E5jPFj L6q/bSLLI99rPGPhukw4iw== X-Received: by 2002:a5d:4ad1:: with SMTP id y17mr11961751wrs.132.1596378828966; Sun, 02 Aug 2020 07:33:48 -0700 (PDT) Received: from localhost.localdomain (host-92-25-238-49.as13285.net. [92.25.238.49]) by smtp.gmail.com with ESMTPSA id v67sm21189228wma.46.2020.08.02.07.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 07:33:48 -0700 (PDT) From: Jules Irenge X-Google-Original-From: Jules Irenge Date: Sun, 2 Aug 2020 15:32:08 +0100 (BST) X-X-Sender: jules@localhost To: Joe Perches cc: Jules Irenge , linux-kernel@vger.kernel.org, Paul Moore , Eric Paris , "moderated list:AUDIT SUBSYSTEM" Subject: Re: [PATCH 2/4] audit: uninitialize global variable audit_sig_sid In-Reply-To: <91c6c45f0d8ec0d031c216711cd8d7f6e9aad7ad.camel@perches.com> Message-ID: References: <0/4> <20200801184603.310769-1-jbi.octave@gmail.com> <20200801184603.310769-3-jbi.octave@gmail.com> <91c6c45f0d8ec0d031c216711cd8d7f6e9aad7ad.camel@perches.com> 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 Sat, 1 Aug 2020, 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. > Thanks for reply, I will resend a second version with the recommendation, namely make the above static and remove them from the .h file. Jules