Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp12945lqm; Tue, 30 Apr 2024 11:09:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ0digZ3s3IU8d0bV8T+oHg9oSDIduoFVv3WmwwMKFnmXfwtVRzyqH8tSahyoj85KuhE7B8jbMUujhAjjqxa07hRnjBCa80E7/8Z8Org== X-Google-Smtp-Source: AGHT+IFESYIqzkdETWMfASepVdwsqv56aINk3H/GflkAq7MiCUXlO6SuRpLry25TX2N8MLjM6cDi X-Received: by 2002:a17:907:1047:b0:a58:c0a1:f22e with SMTP id oy7-20020a170907104700b00a58c0a1f22emr377698ejb.2.1714500574331; Tue, 30 Apr 2024 11:09:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714500574; cv=pass; d=google.com; s=arc-20160816; b=uUfuxnToaQpizqxNidOGx7w8roRy06wZZtUC+gJ2ledcUFWNYoygEB45/3oB7BQYWu PMsF0+BA42nh1yctWuRNco2fcZ9RJNdXeYab3H38e/IuYtsE3iqf/WJZihSqUoCkR/7D kKy1lCm0b4yPeCHSy9j4m9TVk90bjHpTWHsUBsMzLDYYvUZA96Z+eQQ3FWO+vuyw4x/0 jOPMLeoXwRXbqzaAwTIVBkho7klu98OZQSPMz2kAAVF1s1mU3KVhpSulmV5pCFX9ict8 6aXN3df61kC3JtXgGxBz3GHbL2s80WNl+RsDstW4Jt2sHdSGf/TnEOeI44xajEB3uevF 9Ynw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=WMNTCdm5svpxXWjpVt60+t7ZBqUkllAdM5ompQ7ypY8=; fh=jIlWJn2GkhqFcSfdBSnFh1LhdSwnpNncMv0xBYL/EU8=; b=gwGiv8JCiz7cbalvjCFxFaFX4Z7R6cgmA1W8IwMyZAA4KJgg7Ac0Em2gqyelHNTAZJ WNgG8Fs5ThEgwaWEO6whSCmI/PKOVU5iGoHMH8c/y+PCw8Xk0+IlZs87EhwPr2iBVGAs 7EpARwpqR5gfSbJutuyN06UKvAvHXfadqka/9HuUvzBNLQKILxrx0jK8wTe2UXaQsDxg jUC6cF+xUWfChzhIqKBjgXolaJFFh/Ihlzo/04RawLkQIuKcw9xaBsX++05chH4bjML9 /RhBlAJ35PJmpG9qi9qTKGov9vYvY5WLEpAclGXorK+CKdB6qM9m4JyZ0k9E5HBlrrGd VWZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VSNhCnjh; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bt7-20020a170906b14700b00a4e69584d12si15208479ejb.781.2024.04.30.11.09.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 11:09:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=VSNhCnjh; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-164571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E3C1D1F23172 for ; Tue, 30 Apr 2024 18:09:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E4CD181CE8; Tue, 30 Apr 2024 18:09:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VSNhCnjh" Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 F1984180A62 for ; Tue, 30 Apr 2024 18:09:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714500565; cv=none; b=IGeGc2AjFPiqXqTSW0ag+0MWXSEcS+caHR8XFaNrMHOBZG8OKtNMainBLicHmWHqCn3HutrhopN9icAN5CSLyUXIBtkCTSe1eMClkSpCqfj8nYTnVWlLXvq7Hc0FIivqlCLFRnSLnb0ka7W6v6Sy57jdOR1P6ELTy8D7l1Izegg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714500565; c=relaxed/simple; bh=WMNTCdm5svpxXWjpVt60+t7ZBqUkllAdM5ompQ7ypY8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NgRNMU4l8H+N9cMWmhbOm3PF7ZJJrqXCTqqkyfUfkZQVC3Ux8ib/kZ4N9zdrgYRBIoWGWQ5r+RVw1+VBpbAcgVEG3PE5HVeTuUF8SiYgutL2YQo4bce9EJqkSKhXCLCnzCpVPukNcZBgmFQz7Rk4VTYJjAKK4K0BTx7AQ1NL6HY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=VSNhCnjh; arc=none smtp.client-ip=209.85.128.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-61bed738438so9016547b3.2 for ; Tue, 30 Apr 2024 11:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714500563; x=1715105363; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=WMNTCdm5svpxXWjpVt60+t7ZBqUkllAdM5ompQ7ypY8=; b=VSNhCnjhAsLxX4IG6kGWD2eekEQSNFADq7KFMewa8xTu7Je33HxhBdZpnHLRWfYssJ v/Da1aHbJRfadOUxA3iGRfYkVpDvRAr1VMtlbPbQQI5sH3KhMTM/iiDjaURG7YQZ6eRW d8eMenyChU+ZIBieTN7DgxFKM5mJXHGDFSYOLZgtUx+CiL4ku3UN9Rft9IaAGivgyqLS 7mlDV14CXqo5FyEj4NlEAu21l/9xcL8Wt4yzsZiEzYiwVpOcfj4xjIbpY+a79zE3dHt4 M02c1AJMck0rv/7e59LA4jgEb08PFE6+4dJ4O9lzURT7yMO2DqBowjXmoHP+9lGoRYSB gWlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714500563; x=1715105363; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WMNTCdm5svpxXWjpVt60+t7ZBqUkllAdM5ompQ7ypY8=; b=Pe8+X/H4SUZRs9jgieG6mTgA5XGx5JGMdYNjFj92Eb5/01xCK076XVP/btDG48uGfp xBV90ccgoKGPnwlUQg/rTFtzgr0Qpl+gWth3fZ/FMLGBxhef5HzQfJ46UIgCtNv0FDL0 ++2EDW4lmADeL5XdbzR3HXBytNEDwISEKcpwar5pmlhO7yHm5YqSdqSHY9jr0VWM/Oqa deV4m02ZYDyTqSPOflcbOrz9SJ7y+TGWJRj096CxQfZK8ZA187201DKS8XzPiyINpf9O 4HCHRWQg7OlqMqEFYsnTNtgRHzwWtBovGc4hrbmQM0geCiVj8onJ3P1gVQplQhFZlZR1 Qt8Q== X-Forwarded-Encrypted: i=1; AJvYcCXiviLCT1b7zjA3JYf0xxXic6zd3v2fKm+EOH9GxWEPIjJ+/XUqIZlYZU8doW8P3U8nvmNStUrZ3eZvt/2X39FtVJs4MYTIVldbtkhZ X-Gm-Message-State: AOJu0Yz775FE8Nv5TKH9/nbpRWUKuoNSl+w8mQOkLuYAqFSNuhQNqM+1 djQVYx+uyM3T95yrx7Mgy2sCVaYz2GV4LK/NPiPTSNNUXDdOEvA4CW5Apt2w0WdRvOdQ5Rez/5D cFy17kPe3hO8pkIKHLo6J3BWnzRrqZHoT4M60 X-Received: by 2002:a25:97c3:0:b0:de0:e7f2:a03d with SMTP id j3-20020a2597c3000000b00de0e7f2a03dmr359262ybo.3.1714500562637; Tue, 30 Apr 2024 11:09:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240430060612.2171650-1-shakeel.butt@linux.dev> <20240430060612.2171650-9-shakeel.butt@linux.dev> In-Reply-To: <20240430060612.2171650-9-shakeel.butt@linux.dev> From: "T.J. Mercier" Date: Tue, 30 Apr 2024 11:09:11 -0700 Message-ID: Subject: Re: [PATCH v3 8/8] memcg: use proper type for mod_memcg_state To: Shakeel Butt Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Yosry Ahmed , kernel-team@meta.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 29, 2024 at 11:06=E2=80=AFPM 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