Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp318605pxb; Sat, 10 Apr 2021 04:01:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySifhj/nVb8w/cv+x3uKYZrzIO1d8FsHrwPI1z8dnuqoAahDUP6MqPun1a0FZwzFWtZzCH X-Received: by 2002:a17:90b:4a8a:: with SMTP id lp10mr17152203pjb.27.1618052512193; Sat, 10 Apr 2021 04:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618052512; cv=none; d=google.com; s=arc-20160816; b=H7w95U/+GnEM5ODlnICqG9PquIrcTblgxGHKsSHWWhkWnBxjAS6xJ1WFdvXtANu3Xa UCDUPOAV7+pNjnj72O+xOH6f8n9oLRqbQQtQ8azaxJqwoQUhbZ1kilHellehDw9bk5Qq Qfx5iW9lDMHJvsyXGncUWfMjSFSUKeOGtQWqDJjHXINNrTiGSdYb8tmKp9MaBzA8U83e O85c0NzaVVf/HU9eTA5V9jAaGFRKTlT6GJdy2fNOn+KzNEqyjcXsghf1AnRIJS4nA+R+ 2gzG1oYDVFPm1ABQ73CMuwWk558v7q4uiv1nm0Ca0by6yfG0NSzG1So+TIrnes20ZMmF Al3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rXYsHG3mre/V1Rg4udvEnf6Zyhecq0scL5Z8jX06kJE=; b=oeIK7jSilXowvMBW6HZ6a6J3jJqriI+X+ua01+lcMESXzbMuUnDRtPBoiUOxEqNieI JE/NUJljtOILQF1o1cLuGuk6fam8IZRhWcq4SG5dlz3L7UdCd00OHvprlYZnp9NT8mOg kVcABIZg/NbX66JNclsp5lqZlQqWiGfOVOmNdhOEgodSMCwaStB7Ow76u1p3i4byp3i5 8t44IvPvw+ECYBxdT7j/p1C5XKX8dGAABgHvNOSwDilP/RI8L4JaVlkPiCQpOWQU5X4k S6TLqNCBvVzFneNszqwR8Qzbb3tEbGLNk36GbCn9p+OooK5Re0Jbr8aaDRLH1Td0DESY PthQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ejFKL3jo; 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 s13si5998179pjp.59.2021.04.10.04.01.25; Sat, 10 Apr 2021 04:01:52 -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=20161025 header.b=ejFKL3jo; 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 S234580AbhDJK6c (ORCPT + 99 others); Sat, 10 Apr 2021 06:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234507AbhDJK6b (ORCPT ); Sat, 10 Apr 2021 06:58:31 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78A6FC061762; Sat, 10 Apr 2021 03:58:16 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id r22so9378006edq.9; Sat, 10 Apr 2021 03:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to; bh=rXYsHG3mre/V1Rg4udvEnf6Zyhecq0scL5Z8jX06kJE=; b=ejFKL3jofImx/+4W0WfCPMDVP9qon0V8sVEmSSrzDl+mN+CFVeLw+Ccojknv+GEVSb 4FQBxrp+0hG62BC79GScl9tYP4gxbToBy9xJM3FXuzE/7CGeQwJN0YOAGUiGgsMtk3ay j3soYxvidxwpRKaEuHBmNSIwyweUMOz31QYMjE5daL0oTRKnIvHdJ0KTUfTViHr1+Umz 22ud7RMUhSfNcDQzA8ZC4abiyXCPFewq+Vemow3N8zAn1r/ZfaEk+lkBiv/m2+ogCMoQ K8VEDtAjHVJUIQVPAORgdxRfWc5MpPsXE6WVqnbxYgf32r6ejAihkAtJMkA45OnCWd3D G9QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=rXYsHG3mre/V1Rg4udvEnf6Zyhecq0scL5Z8jX06kJE=; b=ffumJx2PJyfUuRr5mP3RROBcM1mjWcVJaF8OyJezT9RQHMnbyUzl6VWu43ehDKv4Wy DxRoNeCFcPNchZuro7g8m00Ddzlr32zKLvUMYCWZVaBMKYYwST9IamtL/LEt327tV9oB 1s1xJfJKZZ8pW+mAqnrCXbcDd1ac6QKLS2vqAqhNA0sfTdqbwjsz50IRp0xId+voOubX aYauFmkbEUBVixblffUfZZ0oN6XpclPx060aeyBcY+HaLSk8arZmyA5pGDQawc5pJLx2 kWAFy9P1LEu76/9Kif0S7/DpCTZrZ9CvMEQzkur8XC4+zKR+Ve0x52Luds+61POyGR50 th+A== X-Gm-Message-State: AOAM532lyR3UsqxuR13wLCL9a5pPlLYPWsy+hVbp5ghQdSyOX1OavByJ Vtv5ycKcKeiYwAwkqVEzIxo= X-Received: by 2002:a05:6402:350b:: with SMTP id b11mr20899457edd.288.1618052295285; Sat, 10 Apr 2021 03:58:15 -0700 (PDT) Received: from localhost.localdomain ([2a02:2454:826:3e00:ced:ed1a:293:c96]) by smtp.gmail.com with ESMTPSA id o17sm2888503edt.10.2021.04.10.03.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 03:58:14 -0700 (PDT) From: SeongJae Park To: Greg KH Cc: SeongJae Park , 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 Date: Sat, 10 Apr 2021 12:57:59 +0200 Message-Id: <20210410105759.12611-1-sj38.park@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park On Sat, 10 Apr 2021 10:55:01 +0200 Greg KH wrote: > 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? You're right, I will make it return void in the next spin. Thanks, SeongJae Park > > thanks, > > greg k-h >