Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp261196pxb; Sat, 10 Apr 2021 01:55:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxueFgpmuydFN7N7bAV+DJE0bobfD2jqakJBoOSzaipL3M3sNzn9AY44+eY2Wd2XRGpkxHe X-Received: by 2002:a17:90b:4010:: with SMTP id ie16mr17413338pjb.85.1618044956967; Sat, 10 Apr 2021 01:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618044956; cv=none; d=google.com; s=arc-20160816; b=tah27d9AeWYlcrNRRZXSBWTpT8tH56EaMdimvyw8RHUYqzscQRxkZCjaQfACTjEEEd W9/7POG8kdiv4tU4uiaBUY71ZaWpy3zUPv25lmLK9zrmyZdVHdIj/+8349zHUd5tDbyP lBzVzGOx3dkf0p2rb5KKioLEroX8pj7MP7bnt3+GS25k+nfezsk7TIaplXVOMnV0JMBp xDmig+dponHAl7G6NNrq0Gp6pHJF4LeHvMJsEnD03fV6eAO2hOnoTp6gAegy17qCbXAi vbdUo35dfehmXNzBZCxFhdYzv2e3FQJ+q4uGGMGDNkIcTf+mwfMsICEwobFfq1FiTtFH EHqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=5uGzC6LNv+sAq4wwCUhA+ZWu3IK7ZSq0aFCqAf14d0Q=; b=HitglL8DGe6gOkOOUgVJXx/0ocfS4towYs8OW+A1CDLOQfJ+K2CabZArSzef16vOlV R/ehoWFxvRNupCFZ3zdOYYPGlsYcI+2yyR22+85fG9RAxUep7PjjDGKg0uHES3fdIHp6 Dz2uobByyA+/ZnhZ/9XdgJXCS85ixx0T1mh52r7JbdXi9GAV12owEl+xzXrGDgGTO3yK kigRFVkAnigs4sJ+comY0NzbNJ9t4GfJNxOB7Y9LxEWMnCEacgfpQfIN4JrvWvyzPZNU wxzLTfpA+BYeQEtBsAmUiK+xZ5eh57Kv1KDFrbBGzOIzgS83w11F+xCk5qEnMcTuDzY/ qD0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=HvEYZVKw; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mx0MeMsx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc2si2633989pjb.50.2021.04.10.01.55.44; Sat, 10 Apr 2021 01:55:56 -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=@kroah.com header.s=fm3 header.b=HvEYZVKw; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mx0MeMsx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231279AbhDJIzX (ORCPT + 99 others); Sat, 10 Apr 2021 04:55:23 -0400 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:47811 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbhDJIzW (ORCPT ); Sat, 10 Apr 2021 04:55:22 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id CA907580837; Sat, 10 Apr 2021 04:55:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 10 Apr 2021 04:55:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=5uGzC6LNv+sAq4wwCUhA+ZWu3IK 7ZSq0aFCqAf14d0Q=; b=HvEYZVKwKybrc+hwpLOCV+3kvgyZcCQBYLg58PghLeW IMOEZPNGoMnr25CBiUYz1hn9InOHocNBB2g6xAKJJ5axfLc63pifdZdbvF0Oz7tw Ao65ZccGjGnWmdRrqEitT9yDuzOjyS/y1UZ455gTrzu9V95E9J7gF4i7Cf1UNfcH ehLHpZvN2GlIWntBcdiUlnigpdCjRJymqkV2LUDwi9GtxOl6g78/3tlKZhfEa3HE QhguJhj2sl+8S3QcLrXMq8bEF3ny0foTx3/46eplso4PdCAjj+A11TENwvZdmkzC 5cRepQVGyuGRQdWgdTzOyP9WskGFu1L07b6mCIGte/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5uGzC6 LNv+sAq4wwCUhA+ZWu3IK7ZSq0aFCqAf14d0Q=; b=mx0MeMsxHvtgYZV3LIeuBu eHQUZaRqosNpEDt0qOm1Bse4BLOXyrEpNuPUrrqJy6ajjh+54SBIbrmpA8MvKVmf L/g4hNy+ku9uzklKEkPojfoUQ1kSIAHN6n2r0g1EVUk/aILzHX3v2zTTT2zrFLK3 38ykYJ2jHuav+i8ERK4JhMj1fmEFq09BjvMdruQFEHPmsOkXEOjHXfn1XPc5D9uU CLdavAbKvR/JD3+oQ1ouH9mp11bwQSflo7mwUESF+tV0W1wQdpekHXe0xFdvcj6U T5/Ge8A15F80aEKQFRyvT19rSDf4b/vc8OEp++Egj96A7I8K6M1rVC9dOWOg6WYA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekfedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevueehje fgfffgiedvudekvdektdelleelgefhleejieeugeegveeuuddukedvteenucfkphepkeef rdekiedrjeegrdeigeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id CCA9B24005D; Sat, 10 Apr 2021 04:55:03 -0400 (EDT) Date: Sat, 10 Apr 2021 10:55:01 +0200 From: Greg KH To: SeongJae Park Cc: akpm@linux-foundation.org, SeongJae Park , Jonathan.Cameron@huawei.com, acme@kernel.org, alexander.shishkin@linux.intel.com, amit@kernel.org, benh@kernel.crashing.org, brendanhiggins@google.com, corbet@lwn.net, david@redhat.com, dwmw@amazon.com, elver@google.com, fan.du@intel.com, foersleo@amazon.de, gthelen@google.com, guoju.fgj@alibaba-inc.com, mgorman@suse.de, minchan@kernel.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, riel@surriel.com, rientjes@google.com, rostedt@goodmis.org, rppt@kernel.org, shakeelb@google.com, shuah@kernel.org, snu@amazon.de, vbabka@suse.cz, vdavydov.dev@gmail.com, zgf574564920@gmail.com, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v27 07/13] mm/damon: Implement a debugfs-based user space interface Message-ID: References: <20210408134854.31625-1-sj38.park@gmail.com> <20210408134854.31625-8-sj38.park@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210408134854.31625-8-sj38.park@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 01:48:48PM +0000, SeongJae Park wrote: > +static int dbgfs_fill_ctx_dir(struct dentry *dir, struct damon_ctx *ctx) > +{ > + const char * const file_names[] = {"attrs", "target_ids"}; > + const struct file_operations *fops[] = {&attrs_fops, &target_ids_fops}; > + int i; > + > + for (i = 0; i < ARRAY_SIZE(file_names); i++) > + debugfs_create_file(file_names[i], 0600, dir, ctx, fops[i]); > + > + return 0; > +} Why do you have a function that can only return 0, actually return something? It should be void, right? thanks, greg k-h