Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3282645pxj; Tue, 11 May 2021 00:29:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmDhHdafKLJldUAN4Q7fE4kJ7t2IzmLEz5ACXMc0rD11xO7bNZz76S1EmpIYushFAjtrpq X-Received: by 2002:a5d:848a:: with SMTP id t10mr21500463iom.68.1620718193552; Tue, 11 May 2021 00:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620718193; cv=none; d=google.com; s=arc-20160816; b=bItNYFs/gef1Q55SnKXJZ9ercDMhdZeV0H/9TTmdfl3lgDm4leq9itLNdjoG5Ajw73 dYB+mr19jlttj4nKJ8aBqB7Iut8dnMBjFK7mFch4VznOs2Ge5bNZfhz+N44cQmuplMNC zkXL+5p+JYglSqngpscJ4kOOF7Gma6STAzzBf//7oqYgHfhMwLHSRdYBZJjKEhkFT41K 9b4QTR57v//YZhFgdxYazPTlamTQE4V/H9zUxzWRnTpWZLxgPY460trkD0hX67ky5ret F/iVPP886pe8EUAGb5jkJywp5t0oSroQPWTHxkGq8EwpRV0fq/aXvYipQZtiM88V6qDa VkqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=/y51KsxnTqzMwWzGEwzEGOWaIGYkqrIloYxID2xoGnk=; b=yV0KILbOM0KLvhzOYlcW/CcCN7QC5pk/Pbpx8Wgt/24inqlp6Y3vmRNRWJGzTB1nsk zxt7iMSrfJWH8cLV9ASgVIppv+QlW0wySwPK9qe84Rl4altbe/IQQRLVRypk4gYuqXFp sIrSA8qCvub7U29Qcpu7KQr/KA1NIJNpy1iSGzHV8n733ePFzfDLuul40jTID59/ZZRq 6Cg6nu+fBvjnVOFwimhydkbM97vM/UaPfdygP4JM5HwWYQBYXXF+mM8xKaKk9lKjzvFr j2U/B9gqbMWs9MCTgj53BUIhnfYzE+Bo+1bfhXJmX/iAqGIs0HTAibBlgzW1RNxIqb4k 9gOg== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si19567960ilq.1.2021.05.11.00.29.41; Tue, 11 May 2021 00:29:53 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbhEKHaL (ORCPT + 99 others); Tue, 11 May 2021 03:30:11 -0400 Received: from mga14.intel.com ([192.55.52.115]:2345 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbhEKHaJ (ORCPT ); Tue, 11 May 2021 03:30:09 -0400 IronPort-SDR: 2a3sua9LSu5UwqCjj3ECqz0JxdHpWprz7vk3wu+76mZAE3VaVUd8Tf5nNJDeQbQN00E0eMWMIL ukBx0dYAWnHw== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="199055536" X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="199055536" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 00:29:02 -0700 IronPort-SDR: C7OJU3FJBXjmJjf42PenthZldjvEx+Zg3fDBLwRehBrErTcGWOYpmfYxyezuSaufd/62hw6QOP TN732OV4sUpw== X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="392204982" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 00:28:54 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lgMp0-00BNQ4-HI; Tue, 11 May 2021 10:28:50 +0300 Date: Tue, 11 May 2021 10:28:50 +0300 From: Andy Shevchenko To: Rikard Falkeborn Cc: Tetsuo Handa , Yury Norov , Linux Kernel Mailing List , Andrew Morton , Rasmus Villemoes , linux-m68k , Linux-Arch , Linux-SH , Alexey Klimov , Arnd Bergmann , David Sterba , Dennis Zhou , Geert Uytterhoeven , Jianpeng Ma , Joe Perches , John Paul Adrian Glaubitz , Josh Poimboeuf , Rich Felker , Stefano Brivio , Wei Yang , Wolfram Sang , Yoshinori Sato Subject: Re: [PATCH 11/12] tools: sync lib/find_bit implementation Message-ID: References: <20210401003153.97325-1-yury.norov@gmail.com> <20210401003153.97325-12-yury.norov@gmail.com> <1ac7bbc2-45d9-26ed-0b33-bf382b8d858b@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 12:51:58AM +0200, Rikard Falkeborn wrote: > On Mon, May 10, 2021 at 06:44:44PM +0300, Andy Shevchenko wrote: ... > Does the following work for you? For simplicity, I copied__is_constexpr from > include/linux/minmax.h (which isn't available in tools/). A proper patch > would reuse __is_constexpr (possibly refactoring it to a separate > header since bits.h including minmax.h for that only seems smelly) I think we need to have it in something like compiler.h (top level). Under 'top level' I meant something with the function as of compiler.h but with Linuxisms rather than compiler attributes or so. Separate header for the (single) macro is too much... > and fix > bits.h in the kernel header as well, to keep the files in sync. Right. -- With Best Regards, Andy Shevchenko