Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3419013pxb; Mon, 4 Oct 2021 01:51:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH3fP8C1XFZdxSPiEbtx+/vl6GmlVat3yJFVFrhIQ81LY56t0OqQSFKYkwP+WY9tMfPVf8 X-Received: by 2002:a17:907:8811:: with SMTP id ro17mr15538668ejc.104.1633337478885; Mon, 04 Oct 2021 01:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633337478; cv=none; d=google.com; s=arc-20160816; b=p3batEpBwtHLtfkgWpWu5517h7S6wjvyka8KaRHBVzDyCqBNSrx4FGumS48vNw6Cw9 IDMW+oQSDAnq++uUoWiwZLBG9Jbi74mWAq4teghA2KvXqRmrZizSkl/sDBkZjo2cgQw9 nHVJTZ9uNmFZumZ+Bd0TsrcejNVpT/DT59K0cLuRawu2P5mRVcoGJ4ctnWmhlRwmpVzv i5PX2IWa1gIaDkL+nYxLlXiJJLwEht5XDPSUJdWwO1qU6Z44PeBFyd4H7y5QZM+VyMQD EULU/6HXTeh2t02thkUDJrJ18GlV57vVqqtsUOpoITovkEYebcmeVUnOcPgW8Or3xUlW haSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=mmeALFBSPw0ccXZyVUb3H3QtIHQV9aFgUitnFK9ucbw=; b=LWs0R9dvpGWAZVkjL57Dc+UFKhg6DjAA8fqjm1/rLJQhCcUi/iYFHItf7WoP1WU4Ok cAE/WWrERXNrNaWtBOWI8ig/hH7F4RQ64ISSIZvcAoDE0uxuUV7IFUbAQm99MOt6h+US URsoPjS280VK4F4pdi2PDrEsjkTvX77BmUCSUpegLVofC99y9pDI2CkzNvWz8M+jokIh gv8EB0kl5IyHdXUajGD88Rdbp19wReSuyC7tIPrFItFoWpnkDsLmhFdw+lZ1n5ZGb43N igLqd+9FqDxSwkOeV/HogpOEDp54S/jmy9ETKajwKZA4oUiD7HL/rRWmmX89ZxTnNdUa H1CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aHIWKedF; 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 e6si8924721ejl.722.2021.10.04.01.50.54; Mon, 04 Oct 2021 01:51:18 -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=20210112 header.b=aHIWKedF; 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 S230117AbhJDIvZ (ORCPT + 99 others); Mon, 4 Oct 2021 04:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbhJDIvX (ORCPT ); Mon, 4 Oct 2021 04:51:23 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2421DC061745; Mon, 4 Oct 2021 01:49:35 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id r18so61764070edv.12; Mon, 04 Oct 2021 01:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=mmeALFBSPw0ccXZyVUb3H3QtIHQV9aFgUitnFK9ucbw=; b=aHIWKedFODKrrTaJmBh4aOi/2LrXkyffWQb4L//E58fQFjBxgGnLl1ZR3xMzUMrGsp IINsD7Va/yh1OeAcM0Hv8dhy1f8zx6RwM4jg8oQd3H8d2ayx4kKD04dSuW4hrRR5Psav uVS/OI0IUD296TDCRqEFWLocB7DOp4ANoK/eABRwTpklFc5op/fopgWjEAvRQOSuFSj7 uiOzRX5EEHruPKVUPtMquNZM0PuUbb0Qxt8rfSrAunjw0FQicKuogGlHD8Yn9okOcDFh J40nrYO+O6BHfT1Nl6jxO2kVwuYBvIBCGuMP1EDMTSAP8BkaYBhwJ2kgMBKkz01zrseZ 2W9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mmeALFBSPw0ccXZyVUb3H3QtIHQV9aFgUitnFK9ucbw=; b=Inl47k2P7Q4kSeGcTRPorU9bQnfEpCCB8IM8MERFx6KWC9aGz6OaFeN6BK2LuKzq8H rCEnzKNTRXz2HXtLDFrgoRxZqdDxZfnL251GBUojy0E/HihfS/n7upZg4Eh3sK7jmyK8 j0ILAwYZo04/+6giXTtCOAhxqs2RcBO34ARmSr3jHTbyYAD1VfHhAfC+ewGckir51Kas NYeZs943898ERJBhVQwoXD/kD2Rppu2vGyzLXhgZZDeZqkoyeqxLxPYIUWlZTHUN2K+O 7kRxwDb6c20RdosjqL3tCR55EQct0XldhEt6MvaiU7gsT5ox/Efpd9WRL9Qxxz/a101D TO0A== X-Gm-Message-State: AOAM531c7ru2p9YsvmRV7zjtWlF2diEvyvCF58qRlBsBOzvHhWlB5xLH tZo/qrjeDaZyS9iyMiuqv38= X-Received: by 2002:a05:6402:1011:: with SMTP id c17mr16752684edu.144.1633337372936; Mon, 04 Oct 2021 01:49:32 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id s3sm6317427ejm.49.2021.10.04.01.49.32 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Oct 2021 01:49:32 -0700 (PDT) From: Wei Yang To: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 1/4] cgroup: a u16 is enough for cgroup_subsys.depends_on Date: Mon, 4 Oct 2021 08:49:25 +0000 Message-Id: <20211004084928.17622-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 6e5c830770f9 ("cgroup: make cgroup subsystem masks u16"), we limit the number of subsystem to be less then 16. This applies to cgroup_subsys.depends_on too. Signed-off-by: Wei Yang --- include/linux/cgroup-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index db2e147e069f..f6d80896daab 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -705,7 +705,7 @@ struct cgroup_subsys { * not visible to userland until explicitly enabled. The following * specifies the mask of subsystems that this one depends on. */ - unsigned int depends_on; + u16 depends_on; }; extern struct percpu_rw_semaphore cgroup_threadgroup_rwsem; -- 2.23.0