From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EC78C433EF for ; Fri, 15 Jul 2022 16:30:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D053A9401FF; Fri, 15 Jul 2022 12:30:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C8DC99401FB; Fri, 15 Jul 2022 12:30:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B077B9401FF; Fri, 15 Jul 2022 12:30:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 9A6BA9401FB for ; Fri, 15 Jul 2022 12:30:42 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 6A6E0120773 for ; Fri, 15 Jul 2022 16:30:42 +0000 (UTC) X-FDA: 79689872724.11.34BD1FB Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf30.hostedemail.com (Postfix) with ESMTP id 8F2F8800AC for ; Fri, 15 Jul 2022 16:30:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657902638; x=1689438638; h=date:from:to:cc:subject:message-id:mime-version; bh=s03CUPHYKCoRdjy8uP3NGHt/qLnJi/3ehlE3QYMjTes=; b=b0j7+MjUeMr1ZbgQKcuL7iPurq6PxlK2HYRZSFqkbdu+5tctsY81Z87x 52UpQqXqe77UDYsXpOqB7bGUfJpYaFootJxAw6mmL8FQCUZY8LjRmO5d/ Xh6+nuFZVfUpGNyoPLYRRZw0ZRcegIA/iQ9edUspUJnpY7WZcAx2bQY5d 232p4B4pbA+iDmI1rV5557M0WGKxrMipSILThSvqbZE0Go548HT39mgkG SyLiwiWJxUYMIS4LXLJkv0ab0N9gNXer9ZeUJAfRlSF3acHIHIWtuKIY2 +Tfn8ELPHDAIOWtDBvFLviAF1SokRDpjlT9pIuIgyeZT/SSB14wvnXjhC A==; X-IronPort-AV: E=McAfee;i="6400,9594,10409"; a="285862261" X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="285862261" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2022 09:30:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,274,1650956400"; d="scan'208";a="923566705" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 15 Jul 2022 09:30:35 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oCOD4-0000RQ-Ly; Fri, 15 Jul 2022 16:30:34 +0000 Date: Sat, 16 Jul 2022 00:29:41 +0800 From: kernel test robot To: Dai Ngo Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Chuck Lever Subject: [linux-next:master 10517/10906] fs/nfsd/nfsctl.c:1504:17: error: use of undeclared identifier 'NFS4_CLIENTS_PER_GB' Message-ID: <202207160039.bfW3l3uk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1657902639; a=rsa-sha256; cv=none; b=3TSQwI614RVW9JJm+AnLQorONiCeVpmNEsXMU/5HztcyX2IgTJCIGWdwGQ5z4EBIBRF1+Z jBWga9V1A0n0XeKZM7k6P1a63TlHWymEghogqSL/44cNFTUX52wPkDgZyiB9CPkObmf+nP qRrf2o4MubdmUISHvUYOCOv2vfAWKPE= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b0j7+MjU; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1657902639; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=EgjDsNgvBRwB5ishn4c3VbgZppTOGD3nJTqGHXBS5hg=; b=BpOepV0+bFn/6XQJdRtZyH6Tnr4yd+Em3zpsQbraFC1OjmTyrwV7isYdgk4oKEuMTr65lD k2+GFcUQG9qtreUECW3MUk5tKMsQcVoNFbCU+3LmpVUkHXnJpS1qsPKM/XpFSqPH2F8gfq lB0nEsK53MkoeNveSVe7QMxnlXuPFag= X-Stat-Signature: r1m17okmjgk37zzxfjm8fdjo34efado5 X-Rspamd-Queue-Id: 8F2F8800AC Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b0j7+MjU; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf30.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1657902638-735655 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6014cfa5bf32cf8c5c58b3cfd5ee0e1542c8a825 commit: 05eaba9bd8c0658004f71e781568f55263da8a64 [10517/10906] NFSD: limit the number of v4 clients to 1024 per 1GB of system memory config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220716/202207160039.bfW3l3uk-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 2da550140aa98cf6a3e96417c87f1e89e3a26047) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=05eaba9bd8c0658004f71e781568f55263da8a64 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 05eaba9bd8c0658004f71e781568f55263da8a64 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/nfsd/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): fs/nfsd/nfsctl.c:1392:18: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] /* last one */ {""} ^~~~ fs/nfsd/nfsctl.c:1382:22: note: previous initialization is here [NFSD_Filecache] = {"filecache", &filecache_ops, S_IRUGO}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> fs/nfsd/nfsctl.c:1504:17: error: use of undeclared identifier 'NFS4_CLIENTS_PER_GB' max_clients *= NFS4_CLIENTS_PER_GB; ^ fs/nfsd/nfsctl.c:1505:49: error: use of undeclared identifier 'NFS4_CLIENTS_PER_GB' nn->nfs4_max_clients = max_t(int, max_clients, NFS4_CLIENTS_PER_GB); ^ fs/nfsd/nfsctl.c:1505:49: error: use of undeclared identifier 'NFS4_CLIENTS_PER_GB' 1 warning and 3 errors generated. vim +/NFS4_CLIENTS_PER_GB +1504 fs/nfsd/nfsctl.c 1470 1471 static __net_init int nfsd_init_net(struct net *net) 1472 { 1473 int retval; 1474 struct nfsd_net *nn = net_generic(net, nfsd_net_id); 1475 struct sysinfo si; 1476 u64 max_clients; 1477 1478 retval = nfsd_export_init(net); 1479 if (retval) 1480 goto out_export_error; 1481 retval = nfsd_idmap_init(net); 1482 if (retval) 1483 goto out_idmap_error; 1484 nn->nfsd_versions = NULL; 1485 nn->nfsd4_minorversions = NULL; 1486 retval = nfsd_reply_cache_init(nn); 1487 if (retval) 1488 goto out_drc_error; 1489 nn->nfsd4_lease = 90; /* default lease time */ 1490 nn->nfsd4_grace = 90; 1491 nn->somebody_reclaimed = false; 1492 nn->track_reclaim_completes = false; 1493 nn->clverifier_counter = prandom_u32(); 1494 nn->clientid_base = prandom_u32(); 1495 nn->clientid_counter = nn->clientid_base + 1; 1496 nn->s2s_cp_cl_id = nn->clientid_counter++; 1497 1498 get_random_bytes(&nn->siphash_key, sizeof(nn->siphash_key)); 1499 seqlock_init(&nn->writeverf_lock); 1500 1501 atomic_set(&nn->nfs4_client_count, 0); 1502 si_meminfo(&si); 1503 max_clients = (u64)si.totalram * si.mem_unit / (1024 * 1024 * 1024); > 1504 max_clients *= NFS4_CLIENTS_PER_GB; 1505 nn->nfs4_max_clients = max_t(int, max_clients, NFS4_CLIENTS_PER_GB); 1506 1507 return 0; 1508 1509 out_drc_error: 1510 nfsd_idmap_shutdown(net); 1511 out_idmap_error: 1512 nfsd_export_shutdown(net); 1513 out_export_error: 1514 return retval; 1515 } 1516 -- 0-DAY CI Kernel Test Service https://01.org/lkp