Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2161153rwd; Thu, 15 Jun 2023 23:23:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7eiSJqFdK4/b99foxoToUd0cMgn43S2Yv5MINbk18Qk8jDGqHgc44R4MZsA+wZjn6SnUj7 X-Received: by 2002:a92:d686:0:b0:33d:16b6:3df8 with SMTP id p6-20020a92d686000000b0033d16b63df8mr1482441iln.24.1686896584033; Thu, 15 Jun 2023 23:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686896584; cv=none; d=google.com; s=arc-20160816; b=A1Z3c2AUqljeeuXRf4tE8KwTh+bxQdW+sletvfZVc5KvJYKXHv1Csn47cJmmtclEFG CxFzdVVO0Z31c5vGcWXifjTE1Ph6xN5yFEkLzFsxIBlpaDj2UlcaPbwiTzUaWsENSQ4Q mTgt5TjTcKITPuanpkw2dL8GtCjOwyaBzapX5wGCzxXq3GChm2tnpZK68yqqz/BdfEp5 RBbs4Zld8kRRyHEA5f7AccqXZ1nb7nfIA7nSlbDBu2HlWDiurcQr94fx5Rt5SAgI6WA5 2qThD17M8sIIW7GKiTAXFU5T63Ro8D/7ngY+tzHTSj15jNq/J7wg541TdevZalSRsQN9 8F1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=5PdFheA3XpcExv0qwVdQstShnWn4lsFA9u6zQexx1to=; b=zUWwGdeyc+ts4eiJB7g+L1T+ICzYC+XqaaaGLwKqV5GSdTecisp6e/obfLGBdooWF/ RpYuPF41Ib3K96EI5t46uQuglXyyfA13EnhANbZRzmavHqHO93yn+i5C0ceUgdZX0fB/ sdpA3vucZSTRv/66Y5LNzLdmXAEB74puqLYgRaAYpqDmKd9hYPjjdVKx+eHNFpd/SvSJ fj4SEaPQHCaR8JbTT7pKQesKjtBAj7gPrlhygzveDol1PKcfimolLQLp0nIONnIYuQE7 qWWnljdAvc/ipeOUymOLj8u3eBB748yGdtyAjHBo8I4c2fILUSlHi+865YmSiJS+M9o8 bCHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu25-20020a632959000000b005529b8e496bsi2219054pgb.436.2023.06.15.23.22.52; Thu, 15 Jun 2023 23:23:03 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229468AbjFPGLJ (ORCPT + 99 others); Fri, 16 Jun 2023 02:11:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242303AbjFPGLH (ORCPT ); Fri, 16 Jun 2023 02:11:07 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E5318D for ; Thu, 15 Jun 2023 23:10:58 -0700 (PDT) Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Qj7xK4lwhzGpkt; Fri, 16 Jun 2023 14:07:49 +0800 (CST) Received: from [10.174.179.160] (10.174.179.160) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 16 Jun 2023 14:10:54 +0800 Message-ID: Date: Fri, 16 Jun 2023 14:10:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] mm/memcg: remove return value of mem_cgroup_scan_tasks() To: kernel test robot , , CC: , , , , , , , , , References: <20230616021955.872413-1-zhangpeng362@huawei.com> <202306161306.9YKbncNT-lkp@intel.com> Content-Language: en-US From: "zhangpeng (AS)" In-Reply-To: <202306161306.9YKbncNT-lkp@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.160] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 2023/6/16 13:13, kernel test robot wrote: > Hi Peng, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on akpm-mm/mm-everything] > > url: https://github.com/intel-lab-lkp/linux/commits/Peng-Zhang/mm-memcg-remove-return-value-of-mem_cgroup_scan_tasks/20230616-102145 > base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything > patch link: https://lore.kernel.org/r/20230616021955.872413-1-zhangpeng362%40huawei.com > patch subject: [PATCH] mm/memcg: remove return value of mem_cgroup_scan_tasks() > config: x86_64-randconfig-r005-20230616 (https://download.01.org/0day-ci/archive/20230616/202306161306.9YKbncNT-lkp@intel.com/config) > compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) > reproduce (this is a W=1 build): > mkdir -p ~/bin > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git > git fetch akpm-mm mm-everything > git checkout akpm-mm/mm-everything > b4 shazam https://lore.kernel.org/r/20230616021955.872413-1-zhangpeng362@huawei.com > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=x86_64 prepare > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202306161306.9YKbncNT-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > In file included from arch/x86/kernel/asm-offsets.c:14: > In file included from include/linux/suspend.h:5: > In file included from include/linux/swap.h:9: >>> include/linux/memcontrol.h:1370:2: error: void function 'mem_cgroup_scan_tasks' should not return a value [-Wreturn-type] > return 0; Thanks for reporting. I'll drop this line. > ^ ~ > 1 error generated. > make[2]: *** [scripts/Makefile.build:114: arch/x86/kernel/asm-offsets.s] Error 1 shuffle=3878817758 > make[2]: Target 'prepare' not remade because of errors. > make[1]: *** [Makefile:1287: prepare0] Error 2 shuffle=3878817758 > make[1]: Target 'prepare' not remade because of errors. > make: *** [Makefile:226: __sub-make] Error 2 shuffle=3878817758 > make: Target 'prepare' not remade because of errors. > > > vim +/mem_cgroup_scan_tasks +1370 include/linux/memcontrol.h > > 5660048ccac873 Johannes Weiner 2012-01-12 1366 > 5044a2e0ddbf82 ZhangPeng 2023-06-16 1367 static inline void mem_cgroup_scan_tasks(struct mem_cgroup *memcg, > 7c5f64f84483bd Vladimir Davydov 2016-10-07 1368 int (*fn)(struct task_struct *, void *), void *arg) > 7c5f64f84483bd Vladimir Davydov 2016-10-07 1369 { > 7c5f64f84483bd Vladimir Davydov 2016-10-07 @1370 return 0; > 7c5f64f84483bd Vladimir Davydov 2016-10-07 1371 } > 7c5f64f84483bd Vladimir Davydov 2016-10-07 1372 >