From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F280D1C6A9 for ; Fri, 1 Dec 2023 09:58:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="POVNK/b8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA0CBC433C9; Fri, 1 Dec 2023 09:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701424734; bh=MyorjKQYbtVSpbBJboZrJOBowqJDICf5+G93U5kPraI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=POVNK/b8fBIwpTZKLT1FLBnnQTMvkV3Or4wWeZmfpB9NTZNZju7zAy6/NhB1b8AN3 WEJAp6lHgj1VFZbe+MptFZHuQpmGC94byOaNr27CwRWhV2IbxOsdjQNOXJIzDeLqZN epNLsucZxb12CUzwI5a+G7gZAJdVf8HZ1PjlmgAiaQA82/VAncBYjl/tID9Fzh/XiE Zgg0jwIpEh2MG97PXRMVLC8kjoXIA524beqMX1sUINGYzDGD8Jsc+A87UVLKIKhOu7 JrjCw7mAw1JPT1Kfi/Fe1nHhzzc7QeHYik+wLZpUIkzSBWVdfDcp6XGnhA+MGRkHuW aoKQmkXQhpKVw== Date: Fri, 1 Dec 2023 09:58:48 +0000 From: Simon Horman To: Jan Glaza Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Andrii Staikov , Sachin Bahadur Subject: Re: [PATCH iwl-next] ice: ice_base.c: Add const modifier to params and vars Message-ID: <20231201095848.GT32077@kernel.org> References: <20231129073611.8816-1-jan.glaza@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231129073611.8816-1-jan.glaza@intel.com> On Wed, Nov 29, 2023 at 02:36:11AM -0500, Jan Glaza wrote: > Add const modifier to function parameters and variables where appropriate > in ice_base.c and corresponding declarations in ice_base.h. > > The reason for starting the change is that read-only pointers should be > marked as const when possible to allow for smoother and more optimal code > generation and optimization as well as allowing the compiler to warn the > developer about potentially unwanted modifications, while not carrying > noticable negative impact. Hi Jan, it's probably not worth respinning for this, but: noticeable > > Reviewed-by: Andrii Staikov > Reviewed-by: Sachin Bahadur > Signed-off-by: Jan Glaza > --- > This change is done in one file to get comment feedback and, if positive, > will be rolled out across the entire ice driver code. The nit above notwithstanding, this looks good to me. Reviewed-by: Simon Horman