Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp692555pxj; Thu, 13 May 2021 14:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLGVBF1YHXZdT70DmujXIedDa2gDcfv0INbYfyUd0FLmEXAiuWunN6WQN8N8KXfS82DIRa X-Received: by 2002:a05:6402:3109:: with SMTP id dc9mr53078869edb.13.1620942420648; Thu, 13 May 2021 14:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620942420; cv=none; d=google.com; s=arc-20160816; b=SbW/hwmzfvay9fE7GSie+M3CFuxZ3nZtuP6mbGDAY43I7Ntaf0vgcB2D62HB9h+ida T7wiS7csO2Ztd57iE3dwsGbsDzsqGoVJthEnrs4eat8oklQVCo2cRWOr5MgWtq+OUJmS /ol4ViUElCZPIBQElFBl6AuFo1epwANNqICnuLF3qSWOM0MMrUKim3HXSwOKcsvEgHKc hOwc2B5WKE2o2vVL4eNY6muVtYH9xV1GjfP6kj+RIrztoZ6NBdY/RcxV5Ly2xahYIMQ+ UeYFt0SDHOCHmxBa47IkZXwJl2CxREjnzgAYZtKS68pBmt+FeGLYqzdj6UAiZx9c2nTV mvBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=R25jI6O8refN9cimbdWPJ0sMOrGlj5ZL3LLCprnHt6U=; b=nAW/m9wDznRTdVGvlBDmFaeRExiGyAdWC6ioDMIFr2taAM4i5EdJBZjPNfXhUeqBcz +Pho9Gd5j7Li1jUQvbyFLa6Q9CosQZa7PmvWun2W1h6PJ0QcUHfSybTwCk3Zga4b3yfM DDGzw5V5TJ6HvaJEG00fStwnwym4wU/trmZODqaDGCEvzXRL85LgHGZX+MzsCzoF8E12 w8/VuOxQT4g24eEVUayYMWK9TUP4teNAe9GHktScW7aqDDMuS4ntFeARTtoWMfhAU6Q+ eXPe/ieGjUOZrcI1xfFjMh3MNRFyj9y/DiHJiYByo+HJ1whFxTgEStiBHsdauOfgbuAD wVEg== ARC-Authentication-Results: i=1; mx.google.com; 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 kt11si4356238ejb.655.2021.05.13.14.46.34; Thu, 13 May 2021 14:47:00 -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; 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 S234451AbhEMO31 (ORCPT + 99 others); Thu, 13 May 2021 10:29:27 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:64984 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234391AbhEMO3Z (ORCPT ); Thu, 13 May 2021 10:29:25 -0400 Received: from fsav110.sakura.ne.jp (fsav110.sakura.ne.jp [27.133.134.237]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 14DERvja018415; Thu, 13 May 2021 23:27:57 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav110.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav110.sakura.ne.jp); Thu, 13 May 2021 23:27:57 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav110.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 14DERvca018407 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Thu, 13 May 2021 23:27:57 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: LOCKDEP customizable numbers upper limit To: "J. R. Okajima" Cc: linux-kernel@vger.kernel.org, peterz@infradead.org References: <30795.1620913191@jrobl> From: Tetsuo Handa Message-ID: Date: Thu, 13 May 2021 23:27:53 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <30795.1620913191@jrobl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/05/13 22:39, J. R. Okajima wrote: > Hello, > > According to the commit in v5.13-rc1, > 5dc33592e9553 2021-04-05 lockdep: Allow tuning tracing capacity constants. > several lockdep numbers have their own range as 10--30. > But if we set all 30s, we got a compilation error. Thanks for your report. Initial proposal at https://lore.kernel.org/lkml/1595640639-9310-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp/ allowed only "double the upper limits", and subsequent proposals allowed arbitrary sizes in response to https://lore.kernel.org/lkml/CACT4Y+YXT9iLij-AbrUwj=yPq-YNFw=Au9g0LQJCKwYonaHCDQ@mail.gmail.com/ , but practically increasing by a few bits should be sufficient. I'm never expecting to use 30. I'm sure that setting 30s will become a too much memory consumer that will prevent the kernel from booting correctly. Thus, I don't think we need to care about randconfig kernels. Please submit a patch that avoids only BUILD_BUG_ON(). Regards.