From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: [PATCH 1/6] cgroup: make cftype->private a unsigned long Date: Thu, 25 Jun 2015 17:38:52 -0400 Message-ID: <1435268337-1738-2-git-send-email-tj@kernel.org> References: <1435268337-1738-1-git-send-email-tj@kernel.org> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=FxoiENMtuKd9o4xi/T8DNoNR1DaOiLZJOX43N1bFRR8=; b=sL6MN8wFZUyvsvPi4aqxJ5zHSmPj3COUhgi07O2zoCcECQSTmTf25K+i6JGtoQkW2n 9yAqPlGPQ0pwGA0U2MxanCLtsSYGsT8f5GFIPZoqjZ9Kcf+Hm5m3xF6jE7uJC8pFUCqF J/JnHqvG2kEVE5u27owwh+E0XV0DpkqZcg8eJ2kJSHTgsQIPOHvjqZp9WpK+hpAToFmG aujVExaCx5RLdMqRT4kD/BSiOI8xzP5d2WFGr7gj3rZjYK6sILStMIze9U/rl97N/kIJ 3CREVfGiol/8oPQjZ5Ec7+PADcYG8hISwpCC60kvjg6MJU71CatPtsAjB8cZqHwsERP6 75hg== In-Reply-To: <1435268337-1738-1-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, avanzini.arianna-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, kernel-team-b10kYP2dOMg@public.gmane.org, Tejun Heo , Johannes Weiner , Li Zefan It's pretty unusual to have an int as a private data field and it makes it impossible to carray a pointer value through it. Let's make it an unsigned long. AFAICS, this shouldn't break anything. Signed-off-by: Tejun Heo Cc: Johannes Weiner Cc: Li Zefan --- include/linux/cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index e7da0aa..5571f9f 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -417,7 +417,7 @@ struct cftype { * end of cftype array. */ char name[MAX_CFTYPE_NAME]; - int private; + unsigned long private; /* * If not 0, file mode is set to this value, otherwise it will * be figured out automatically -- 2.4.3 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbbFYVjU (ORCPT ); Thu, 25 Jun 2015 17:39:20 -0400 Received: from mail-yh0-f50.google.com ([209.85.213.50]:35112 "EHLO mail-yh0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbbFYVjC (ORCPT ); Thu, 25 Jun 2015 17:39:02 -0400 From: Tejun Heo To: axboe@kernel.dk Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, vgoyal@redhat.com, avanzini.arianna@gmail.com, kernel-team@fb.com, Tejun Heo , Johannes Weiner , Li Zefan Subject: [PATCH 1/6] cgroup: make cftype->private a unsigned long Date: Thu, 25 Jun 2015 17:38:52 -0400 Message-Id: <1435268337-1738-2-git-send-email-tj@kernel.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1435268337-1738-1-git-send-email-tj@kernel.org> References: <1435268337-1738-1-git-send-email-tj@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's pretty unusual to have an int as a private data field and it makes it impossible to carray a pointer value through it. Let's make it an unsigned long. AFAICS, this shouldn't break anything. Signed-off-by: Tejun Heo Cc: Johannes Weiner Cc: Li Zefan --- include/linux/cgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index e7da0aa..5571f9f 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -417,7 +417,7 @@ struct cftype { * end of cftype array. */ char name[MAX_CFTYPE_NAME]; - int private; + unsigned long private; /* * If not 0, file mode is set to this value, otherwise it will * be figured out automatically -- 2.4.3