From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 518E9282F19 for ; Mon, 2 Mar 2026 21:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487638; cv=none; b=P5Uk+14NiUWXoK6J8NBcEeXNGCrv7K2hmlrui7Bwb+Kei1frX7Hg/9KPPiBCMAJsW6ypPu0ylo5uusdJwbylOyk1Lw2dz6pooI90FXRXv/QFXi8uzndRR8fGD2rrjE/5xLd/QavI8+WSQWR8TdreFbCDLlorajKEhIG8VMlKkAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487638; c=relaxed/simple; bh=JjtuDCg0niWOmejJh0UG3WBDTsenifPtts4A5vaSDs0=; h=Date:Message-ID:MIME-Version:Content-Type:From:To:Cc:Subject: References:In-Reply-To; b=ZHT8lhCLLbOxkJNx6bJrqyHbDhbijCACJyudq3cYQZUqFiiIv8LH4Jc2Pbv9GKFFYisR5IKe/yT/9Oet6WI+bSyBCch3AwcXt86JLEe52U5MNoNRD59lnzd0+kNldSACKSSzrx7MPo25DHYC6aK6qcV3ilgEn8gc+z1FQP3Q7qI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=WyqAVw/1; arc=none smtp.client-ip=209.85.219.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="WyqAVw/1" Received: by mail-qv1-f46.google.com with SMTP id 6a1803df08f44-899f8c33c11so12886916d6.1 for ; Mon, 02 Mar 2026 13:40:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1772487636; x=1773092436; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :mime-version:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=1tqn5DO/sAQX2IDn7rlx3SR+INsmIuJysGd5YtipKpY=; b=WyqAVw/1raMVHsBsq04uSJIkNLQChsuL1Feq5/gdtnlG2Gu6TAPhMw1npKav5huhzv JONBEiUpvNwk+JCykGG1G7HuTfpTu8fbxHF67v6GILla1OMu634C5+hNur2QQ+QfBArn O2GXLpsjEuBWXwm0ldbnlsV/cjV4cus17NmTGqDnD/Af+/KHllS91LrXEZhSkG7ETmIq K3A+7yQvo9yLqkVN5Tzhw5AAUprPK6OtxaO8YEA0JaI6Qy26E2nTiYBgV9IWlWtAeXOr E4jLaSgmeprQdWMUlihUWrM3opJOvvSP77fQTRx7RODYTI3S2ic7sH8EPx2vhqH30Qu6 CU7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772487636; x=1773092436; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :mime-version:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1tqn5DO/sAQX2IDn7rlx3SR+INsmIuJysGd5YtipKpY=; b=TMT8Uw1L1n7nTVfpI9lU6/IsWFybwC2B0tdw5UiPfPS1oRUVZo3dLn4dRFCUGTL0Yo wtyIORGQnSreY5iafLnPup41VCiUxEcruAbmjm9JHjCQbc+6LJMRhqDvUs/Rq1DdXefj PguiWGdkn+d06MejqSM29B0rrn47E0ajarWrGBakMvktkffDQ/qE/2LREQ+zfBZhDKcc y3PEawbxlzGQkg8Wy5s8PbQzFzgV7gH5gzDoFylMR6XyndFK1eJnKqEATdD42D7GKPPY MWRcUHr+eTbk+CgJ3tKqJXykkv5tgzy1BET4YYpxBLE1DM1h6sayg2Ul5LhvjQ/kvHMX xIDg== X-Forwarded-Encrypted: i=1; AJvYcCWbdeDL1CwP/suyYwoKl/2ENEig5KnpQQMWiEE98RfcHNRo54FwabJe+oR1ocCvHskR6UhpQ9SCMEyftjg=@vger.kernel.org X-Gm-Message-State: AOJu0YzlPs+ZgsffrIfGUd06nNzbVSCxcLVRbHakT+gZDaU9UrLir6ib b7RT592St6scw7BEOzqrKFiquMaWkbqb7fVcTH0Yc4sTdP67yNK4i1Neh3Ewtzg7lQ== X-Gm-Gg: ATEYQzxhZ7/0y/750Gr0uCaVPFQ7dwxD2dVZCnA8t/foFIJeFJ43djLhYG0WjAF4cum D11j56QJIc1DQblAvCelHsbi3aDkhzzcfs2qx1Ox1pp2UxQZnfZjolIrtz3IsFPPI4CpNpEOxxj XcMNkTYJ59fAR7RkkALA3OT73p/C13d56oMzlvvNcU9Yu/lmpb17Il0/JxNkIR3eD39f3ljbSzP 8Ny0lskLh14CjUytCelHVSLMDjrTQ5gjat6gp9HPE2LT4tmaKjXK04Kwg4p7b1cOkCLkXj0c83m xaeDZGIRJhxB8xo2ChRKRg/cvjrGqnAOXzpyeIbwQtbr3NWOrUAi2vncGofO4UqorCWKP3FxAZ2 rgYwKZjSC9XtmA3LwgNyCzBH5qwVrl0KLU5f+9p86p8ju/N9QKgMwUe7Iroj2rC7WbQ/gZfIHKV d3HQCehbltnWMdZqDa7XZGeQpgh8HmRkX0cKK09uudPwTXoc91zOpr72TYlWChmPdX3w60 X-Received: by 2002:a05:6214:5190:b0:899:f6bb:24d2 with SMTP id 6a1803df08f44-899f6bb27damr88020686d6.33.1772487636191; Mon, 02 Mar 2026 13:40:36 -0800 (PST) Received: from localhost (pool-71-126-255-178.bstnma.fios.verizon.net. [71.126.255.178]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-899f71fa6adsm37816246d6.49.2026.03.02.13.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 13:40:34 -0800 (PST) Date: Mon, 02 Mar 2026 16:40:34 -0500 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailer: pstg-pwork:20260302_1612/pstg-lib:20260302_1053/pstg-pwork:20260302_1612 From: Paul Moore To: Ricardo Robaina , audit@vger.kernel.org, linux-kernel@vger.kernel.org Cc: eparis@redhat.com, Ricardo Robaina Subject: Re: [PATCH] audit: remove redundant initialization of static variables to 0 References: <20260226181338.2526777-1-rrobaina@redhat.com> In-Reply-To: <20260226181338.2526777-1-rrobaina@redhat.com> On Feb 26, 2026 Ricardo Robaina wrote: > > Static variables are automatically initialized to 0 by the compiler. > Remove the redundant explicit assignments in kernel/audit.c to clean > up the code, align with standard kernel coding style, and fix the > following checkpatch.pl errors: > > ./scripts/checkpatch.pl kernel/audit.c | grep -A2 ERROR: > ERROR: do not initialise statics to 0 > + static unsigned long last_check = 0; > -- > ERROR: do not initialise statics to 0 > + static int messages = 0; > -- > ERROR: do not initialise statics to 0 > + static unsigned long last_msg = 0; > > Signed-off-by: Ricardo Robaina > --- > kernel/audit.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Merged into audit/dev, thanks. -- paul-moore.com