Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp789762lqm; Wed, 1 May 2024 16:24:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlsRcercST1bfVTYK4tj7mdbD1gMZO6XxMu671dWDsyuU4f2+ZJoqDKsattyn8iHfdn4zZAB/DU/tku/o6zXWJ9pnY970QAncmPO59Vw== X-Google-Smtp-Source: AGHT+IEfjC3kF2htnlcOjVD5vWysQox7krglxZK4VIbxzVKa3ddgmuZPtiWsnE/VEIIzAoeVqd2S X-Received: by 2002:a17:902:7447:b0:1e9:668d:a446 with SMTP id e7-20020a170902744700b001e9668da446mr3394138plt.20.1714605846843; Wed, 01 May 2024 16:24:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714605846; cv=pass; d=google.com; s=arc-20160816; b=sMZSjlwBrADgroP7DZ8n77zrOfUFRvFS54cu0KAMkJO7dGsp2zocVFkFnHgqIaJsHZ 0cMBivOQ8fNe5TUbSrnk1SsftRi2I1VHXEByclRRQDnX8QWO94LVywFnra0/mxw2Tfr6 xG4L5tnU8DgYsz0/KXHdPN1XtJFu9s9IEHfzbDIQBcySZA3DzfVquu89S/B93WcTgG8u sJFQYtmDvnge5zMXljyIf/AizX0OObAQ35BNEaojQbqJns5Iuzhfh+MExPdmYetqYfYL ACcDjZD6eJQDDRvRNAL5nSUVYFEKedoXKIE11GLCjtJLngUzFPJJF9s0yOVxpxD+UPa5 HYWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=XIw6/PKldmSG9/LrfELSqhhgzz+8Bg2Si7fn/vvmJOk=; fh=eRiufWnjPA3EhuPXgfdkrXSOa7zf1EnYInj/GSYzabg=; b=fOC/8vKltQOu24PWk7z75abBqngq8QC4gVZYUzJGIWpGodIhYDFsQgU8ogpD9DN2Dx vS50E5JN7yRqwXRyh7EJXk5bC7dunvs4gI24cMSx+ukpi7oUz0oaPzg0qzfUiol44DUd 23Uk8ijoJNXfsDI9JlkJg+JYykD19EueKE4yANpPoeCAok7SQePORkPLDvsjaBytae9y 0Ux1fK9e3j2Os7+w0fM+DqqZbw38VlWBhzGoA7yzKPVPKyKDmFgFnMtU7SEd2Rg1Gntn JzhCZ1WR0W8G2Mq6Ce8Z631NuUFL/Ew29o+8rbVsPg5VdTlR/pgi4LnNbS0FUy0Nf+qO sghA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CwIR318X; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-165844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q9-20020a170902a3c900b001ec2c2393e1si4516749plb.261.2024.05.01.16.24.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 16:24:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CwIR318X; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-165844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 30B5E282744 for ; Wed, 1 May 2024 23:24:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF42F168B09; Wed, 1 May 2024 23:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CwIR318X" Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 7EE1117C6B for ; Wed, 1 May 2024 23:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714605841; cv=none; b=upwjjDxMPNlnTzzZD6otCHWjaTOL3mKtd8rV1/E4KYFnW3TvdjU/1a43TTydYPMQ8Js3FYTcYzwGTzayHwhQyaB5gMclHzI/Vx7f++3qEzBSeWRnzIu/4GnEIcRsa89CjmiItL+M7pBUrmOVHI3mMl8Jg5nEvVP+3MUugSZyTXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714605841; c=relaxed/simple; bh=B43LLTsmKyCt/5EeFU/pHFuKghGgXnF1UaumPgLWfsA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=klsXNTZ6gv70fPNcDmU9LZ7ky+P//iPrZzCfHfcxF8piarjcYQGxL1zajYTW8QkLzDwdZ8ESu1QCMI+VEeuzJW+dgxENEgBk0STRQ/5gSW/UOSaiaWu0KFOXAePLdwKmsHVeSWLzBZdeLIrVcbH2GnOxvGewF1lO53n87+H8pPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=CwIR318X; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Wed, 1 May 2024 16:23:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714605837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XIw6/PKldmSG9/LrfELSqhhgzz+8Bg2Si7fn/vvmJOk=; b=CwIR318XR52sEpnTL4RO3i1X+4dQ+U3QZKExq/aC9oWFt9polR9so4pmRHJFZJZ50Vf5UB tfTKq0bzqy0lZvrVF217hew6F1IKVh51rJP97F2hLd3RY1DkkgW+i3zICMe3beohIz1fEm I37ZzTGz90rVD6Zqqan5+n9ALvD8QiE= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Shakeel Butt Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Muchun Song , Yosry Ahmed , "T . J . Mercier" , kernel-team@meta.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 8/8] memcg: use proper type for mod_memcg_state Message-ID: References: <20240501172617.678560-1-shakeel.butt@linux.dev> <20240501172617.678560-9-shakeel.butt@linux.dev> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240501172617.678560-9-shakeel.butt@linux.dev> X-Migadu-Flow: FLOW_OUT On Wed, May 01, 2024 at 10:26:17AM -0700, Shakeel Butt wrote: > The memcg stats update functions can take arbitrary integer but the > only input which make sense is enum memcg_stat_item and we don't > want these functions to be called with arbitrary integer, so replace > the parameter type with enum memcg_stat_item and compiler will be able > to warn if memcg stat update functions are called with incorrect index > value. > > Signed-off-by: Shakeel Butt > Reviewed-by: T.J. Mercier Reviewed-by: Roman Gushchin Thanks!