Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp1177447rdb; Fri, 1 Sep 2023 15:41:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiiNoYDK1L5VW+x51bhiw9qC+sHOzNIahBXQpoN2OSinLO3k1koD9r36tnpWtmDxiyVDS7 X-Received: by 2002:a05:6871:892:b0:1c0:1caf:3324 with SMTP id r18-20020a056871089200b001c01caf3324mr4735257oaq.44.1693608113591; Fri, 01 Sep 2023 15:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693608113; cv=none; d=google.com; s=arc-20160816; b=aOhi/F4ctBnz6qmuKvRqWtk7f7/RH6Pz5djpoZAXkxWdx+B4p5ZjWhvA2RrnZ67SUs AMdOZPVb0YWCE7eORS6yeNs0DpR02ZMNl5qIn+hnFjK+QYeVcbrX4NHR0/xZ/visaatb GUj257xlZC8Q33UfRwAMZ6jL4o+Ke/DGnziFLv0pFlk1/ZeRJ8WqwqL3BlcHFT2s6YuR z3xdoMuBCKt0Ax33OQjVq9fl3YRvVjebhAZ4KbCkH97wHs7+Tf2NGGHcOR9uh1DkDkq6 pKwpafOrDKsHsztnw6pWeyletMxI23FcfjPLnboI0KTMjPXpQGfNbn5BJaqLsBpkBiAW xE3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=drcv5mKJ9RhO4L7vLkvVuevPSBYeBJBAmcU4Oua4F00=; fh=mB7mRPZ2Xi6BQ5NvEOuBTN77f77gQBiZhHEKMGfyRHw=; b=i+y614Zk/rJPc1gZrQjaqxXHOJrQNi3MCMDW1u7aBVX+hxBIBBRjXN7kyW5aiXhIYV zOTC5P7vpE1zjvfU93DMWY4chIQoRs/lDUpONbz7Hd5yq71zV2RAzo8doDuXzI7aKJni sWQkA2jHiyr0VE2AD6UHM10YOLiu4tzsjwVvs8DdYs6GHBW6zonVTCq5S3yv7TmFWdHu bDZEEZ67JnhnVr9NOEMOX3M22TSiQGz87jabx+wF6w3A/kIZoXOcIEEnzyAddi/ZE9r4 ZKf/bWkU1QCmbWifnHHdCXAPcH4FARmFLt/mDdH3dT33vr7/FV31TbzhpbOYDH4tVM4X WUbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=yTA644q6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq18-20020a17090b381200b002636d222400si6746667pjb.14.2023.09.01.15.41.48; Fri, 01 Sep 2023 15:41:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=yTA644q6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjHaQks (ORCPT + 30 others); Thu, 31 Aug 2023 12:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241511AbjHaQkr (ORCPT ); Thu, 31 Aug 2023 12:40:47 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99383122 for ; Thu, 31 Aug 2023 09:40:44 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9a5be3166a2so113878766b.1 for ; Thu, 31 Aug 2023 09:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1693500043; x=1694104843; 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=drcv5mKJ9RhO4L7vLkvVuevPSBYeBJBAmcU4Oua4F00=; b=yTA644q6Seh2/5aVPQn7DTe+hvJiKfe7COTZEj1glHSCcL7fDKUK/1sywwKG5n8iER c4jKh5yEDHpRWaHqY8tLVG/EaKE13MuC1zzhih6R08Gl3r11V6dmrcPiVlPJ6+1hdLxr MNj+XFgUQRpFcNJBHOJS3VVexBB0SlFXPaIq0rDfY5ot3dGgaazyxPwdJKTso9TOV0qL C2RJzRP2Nkc2zBrwxQKX6VJstxV/lUoRx2JbIue0do+mgbBYv//842aKyqUQHTU5v1pZ DEMVfaBX/tx/xlIDLq/Nb+X/9NajYL7H3DmtV2sPrev7+uWLU0tcbTYRa65363Zz6saF uTKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693500043; x=1694104843; 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=drcv5mKJ9RhO4L7vLkvVuevPSBYeBJBAmcU4Oua4F00=; b=iHOsDdUgK+uigFAZI00eUlqw2HxdewbsCPM5IWO69JWPyli2oiiB1FMwQz1U3Weu2r 2+wro9MCjodtvP/gHdLCcqz343kQFamauSBxWlrnj5UTR4nVixEQi5cIT+GOOhsC2Mi5 OILCEPfw34w6EbO4aha0UTIjw1IHQr+Wzg82jcBbKsK4inz4klIUXF5GzpdwB1Py8jrU WXhbkUU2BHnpnxHNAiS+BGEmJ8E7601jsIT1Kz2F8e0WZ2SzFTui7Sgy39RD3tGhWBwR IOs8TUWzQZ5Kbo8D5Bwf9P5HKfWHYxtY6qeKExQOr3pgyZT0B5Zuv/9t5wY1QtaxLdBw FtWA== X-Gm-Message-State: AOJu0Yy0w31HNPiJtbztzeRyOYXdJjGAwzla5LXY5UfFfLcYudmojac7 jjs9sf3o89JMk47WZ/3dhW2Q3enYIAlGbxkzsEWyPA== X-Received: by 2002:a17:906:8450:b0:9a1:db2e:9dbb with SMTP id e16-20020a170906845000b009a1db2e9dbbmr4355097ejy.0.1693500042855; Thu, 31 Aug 2023 09:40:42 -0700 (PDT) MIME-Version: 1.0 References: <20230830175335.1536008-5-yosryahmed@google.com> <202308311025.538QuXBV-lkp@intel.com> In-Reply-To: <202308311025.538QuXBV-lkp@intel.com> From: Yosry Ahmed Date: Thu, 31 Aug 2023 09:40:03 -0700 Message-ID: Subject: Re: [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads To: kernel test robot Cc: Andrew Morton , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Ivan Babrou , Tejun Heo , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Waiman Long , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 30, 2023 at 8:08=E2=80=AFPM kernel test robot w= rote: > > Hi Yosry, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on akpm-mm/mm-everything] > [also build test WARNING on linus/master next-20230830] > [cannot apply to v6.5] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Yosry-Ahmed/mm-mem= cg-properly-name-and-document-unified-stats-flushing/20230831-015518 > base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-ev= erything > patch link: https://lore.kernel.org/r/20230830175335.1536008-5-yosryah= med%40google.com > patch subject: [PATCH v3 4/4] mm: memcg: use non-unified stats flushing f= or userspace reads > config: i386-randconfig-r013-20230831 (https://download.01.org/0day-ci/ar= chive/20230831/202308311025.538QuXBV-lkp@intel.com/config) > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git = ae42196bc493ffe877a7e3dff8be32035dea4d07) > reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archi= ve/20230831/202308311025.538QuXBV-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202308311025.538QuXBV-lkp= @intel.com/ > > All warnings (new ones prefixed by >>): > > >> mm/memcontrol.c:667:6: warning: no previous prototype for function 'me= m_cgroup_user_flush_stats' [-Wmissing-prototypes] > void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg) > ^ > mm/memcontrol.c:667:1: note: declare 'static' if the function is not i= ntended to be used outside of this translation unit > void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg) > ^ > static > 1 warning generated. Ah silly mistake on my end. Will send v4 after making mem_cgroup_user_flush_stats() static. > > > vim +/mem_cgroup_user_flush_stats +667 mm/memcontrol.c > > 658 > 659 /* > 660 * mem_cgroup_user_flush_stats - do a stats flush for a user read > 661 * @memcg: memory cgroup to flush > 662 * > 663 * Flush the subtree of @memcg. A mutex is used for userspace rea= ders to gate > 664 * the global rstat spinlock. This protects in-kernel flushers fr= om userspace > 665 * readers hogging the lock. > 666 */ > > 667 void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg) > 668 { > 669 mutex_lock(&stats_user_flush_mutex); > 670 do_stats_flush(memcg); > 671 mutex_unlock(&stats_user_flush_mutex); > 672 } > 673 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki