Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2435337imm; Tue, 4 Sep 2018 04:32:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbQB3zrL2HTJac2NoIjfv0B5Bos3rKPsVDJLDTBU2VJVfNdQHZqFYgNu1av9biSiTed0KYY X-Received: by 2002:a63:e443:: with SMTP id i3-v6mr31316265pgk.381.1536060779718; Tue, 04 Sep 2018 04:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536060779; cv=none; d=google.com; s=arc-20160816; b=Mj60wdMr1Jc3xH0aO4UZMa5Kh1PxZbjngd2dA1vxI9aFC/LrAqm3J8roJXFafqqIK2 Eb3l4dLSn/PLb9rM5UQtsbCoKgswuFOC0T/3+WdIgQn4+13EbwKsjh9u5RkXMj/ndUEd 9bV/xyK3qXndgJzMvGCkCE+n965CRHHTlF8CEU9ObTz9wmDSRknhB0gfs2mGbo+5BlOw A6awC4c6MPEepXPJzmYdtNcmWZmYZxF5Em8qDFCipt3NP/8qUURmaZSKetj7JPSXgHi8 raCrD2CwpDPIKM9g7f3nGepwspKANDL6qzjK4fzEgYUMsWDkip44+7teCfjkeWa9H707 kiXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=vZwNRM8cUfwYEmm4O0cdeYU9hKC8BUGA5B/n5QWulY8=; b=0TWYuNYwmoKW3R9gHsz6sLEXMTRG+yNDB8J4UYA+3D5WeeLXA83A8E8dI+bkUdTOki EWpOgvY/ojLbKZ/4XBplqA+4Ma+L2OY2mzrBUbL9uoSzXX+P8Twd6Cls9fesamkDXENN li2M3qtM+wl5wHaGzkqgg3SZUBbgDNGTon2oQNkMN7EGCJiEhZb/9f/CLRGp3iUursJS XAVDPseDC2Q0vaJZI7ocjSxPOEtLB2x+2cs/mIj5CmZAXxcGjQ+hTHQTDvQ10NwfICXv FDEnukFj/mtTIhMWip2leQ6Hu9jvaCMXo8bbQQbx2OjUpCcio3Ro9FBWBLWN5XWRutpb OxuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n85-v6si22426100pfj.251.2018.09.04.04.32.44; Tue, 04 Sep 2018 04:32:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727285AbeIDPzc (ORCPT + 99 others); Tue, 4 Sep 2018 11:55:32 -0400 Received: from mga17.intel.com ([192.55.52.151]:19531 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbeIDPzc (ORCPT ); Tue, 4 Sep 2018 11:55:32 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 04:30:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,329,1531810800"; d="scan'208";a="230058647" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga004.jf.intel.com with ESMTP; 04 Sep 2018 04:30:47 -0700 Received: from andy by smile with local (Exim 4.91) (envelope-from ) id 1fx9Xi-0004QW-N5; Tue, 04 Sep 2018 14:30:46 +0300 Date: Tue, 4 Sep 2018 14:30:46 +0300 From: Andy Shevchenko To: Yury Norov Cc: Rasmus Villemoes , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] linux/bitmap.h: relax comment on compile-time constant nbits Message-ID: <20180904113046.GQ11447@smile.fi.intel.com> References: <20180818131623.8755-1-linux@rasmusvillemoes.dk> <20180818131623.8755-6-linux@rasmusvillemoes.dk> <20180904110859.GA4992@yury-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180904110859.GA4992@yury-thinkpad> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 04, 2018 at 02:08:59PM +0300, Yury Norov wrote: > On Sat, Aug 18, 2018 at 03:16:21PM +0200, Rasmus Villemoes wrote: > > It's not clear what's so horrible about emitting a function call to > > handle a run-time sized bitmap. Moreover, gcc also emits a function call > > for a compile-time-constant-but-huge nbits, so the comment isn't even > > accurate. > > > > Signed-off-by: Rasmus Villemoes > > Hi Rasmus, > > Maybe too late, but > > Acked-by: Yury Norov Actually not, I don't see this in linux-next. Rasmus, do you know what happened to the series? Is it got stuck by unknown reasons? > > --- > > include/linux/bitmap.h | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h > > index e34c361f4a92..3f0cac3aedca 100644 > > --- a/include/linux/bitmap.h > > +++ b/include/linux/bitmap.h > > @@ -28,8 +28,8 @@ > > * The available bitmap operations and their rough meaning in the > > * case that the bitmap is a single unsigned long are thus: > > * > > - * Note that nbits should be always a compile time evaluable constant. > > - * Otherwise many inlines will generate horrible code. > > + * The generated code is more efficient when nbits is known at > > + * compile-time and at most BITS_PER_LONG. > > * > > * :: > > * > > -- > > 2.16.4 -- With Best Regards, Andy Shevchenko