Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2774824imu; Sun, 27 Jan 2019 12:50:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN5MLvpBJ+csyDEN4KMbByll6wwa0F/1wLp+/xe+DIeXFQY1dqF95q1sXmHEaKwEh4u6mI1g X-Received: by 2002:a63:f658:: with SMTP id u24mr17616113pgj.267.1548622208215; Sun, 27 Jan 2019 12:50:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548622208; cv=none; d=google.com; s=arc-20160816; b=AccUl1NBElsDD7y2GtbVHnRPVoGAaW1fIluKoRqdJT1mdNMXo8q/x8x+lGcBEbExJ8 oS+DFHlFKqXu+sSXseD/VSFOq1UsCWCOgWtP0CyqpoTaCdcHa7C7cEdmrbxr4GYlMq5B ngFXfPWbL3NHKq9Mz1nCKABhPJsUOogeZ3Db29Vsg1zHHMrzsp76hPelod6BY7kVq7DM PanKhaORrvG8B/bwaO62ssCqYJkEp39TCBS/UACaNKdEnaZn+rFN5oTFw2BJQDfZAMHO pKgrIEhYUNeN7j1rof2beVIU8NjZHx/jBqwxUTnazQK0A7Z7TFXlockFcCdZosKsmupu ziQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=MAdOLnvnGeZHj3Z63ebnMfk38sWDX6DBn4xEYQgxUtc=; b=vgdY2DKkXds2AkCJEVXpsJbpBJl2hcUb1fUARFY9jq/ujQlJxMc0uAxFnDhagiAX7R vRGxrAyayDtQaj5Gugx5cO+NEKQ5Q8C3E2yHOagQroL15+VOl5Jgy+gw2+YDM+AY8Pf+ ffZ377qDLV8PO+JdQTnASr6ZyNom41sy6p4+eQzNUF+I6AtlxYJvqEfAYWiyzQQC9oM8 BBKkJY0YibzirKaf802Kw35mIjoxXyCiqEvEM72xNaDV4xBG5BxGCu5UTimeynFIPfZ7 qRuYAYD47DvnBPKoVn+fOecoug1YljUmUHonAwVveLkpCCEicVo0GtbXY7xsE7Jdedq4 HVww== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12si30735525plo.59.2019.01.27.12.49.37; Sun, 27 Jan 2019 12:50:08 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbfA0Uqv (ORCPT + 99 others); Sun, 27 Jan 2019 15:46:51 -0500 Received: from smtprelay0148.hostedemail.com ([216.40.44.148]:53742 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726920AbfA0Uqv (ORCPT ); Sun, 27 Jan 2019 15:46:51 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 0433B100E86C2; Sun, 27 Jan 2019 20:46:50 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:599:960:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:4321:5007:10004:10400:10848:11026:11232:11658:11914:12043:12438:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21220:21433:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:32,LUA_SUMMARY:none X-HE-Tag: dad92_140dc6d67e45 X-Filterd-Recvd-Size: 1562 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Sun, 27 Jan 2019 20:46:48 +0000 (UTC) Message-ID: <6e166e2d25a56212c06c1334fd9bfb09d14beff0.camel@perches.com> Subject: Re: [PATCH v2 1/1] int_sqrt() adjustments From: Joe Perches To: Florian La Roche , linux-kernel@vger.kernel.org Cc: Crt Mori , Davidlohr Bueso , Will Deacon , Peter Zijlstra , Linus Torvalds , Florian La Roche Date: Sun, 27 Jan 2019 12:46:47 -0800 In-Reply-To: <20190127203239.973-1-Florian.LaRoche@gmail.com> References: <20190127203239.973-1-Florian.LaRoche@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2019-01-27 at 21:32 +0100, Florian La Roche wrote: > Add __attribute_const__ and use normal ints for the right param of "<<". [] > diff --git a/include/linux/kernel.h b/include/linux/kernel.h [] > @@ -513,10 +513,10 @@ extern int __kernel_text_address(unsigned long addr); > extern int kernel_text_address(unsigned long addr); > extern int func_ptr_is_kernel_text(void *ptr); > > -unsigned long int_sqrt(unsigned long); > +__attribute_const__ unsigned long int_sqrt(unsigned long); This might as well return u32 to be consistent with int_sqrt64