Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp831439ybz; Wed, 22 Apr 2020 08:45:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLDJptQ/HSs93USMXLlajMFDH3tQShm915rYKEzebM6zwU3DcOuypiEj/oqa1f+2Fwzw6ET X-Received: by 2002:a17:907:9c4:: with SMTP id bx4mr25913612ejc.199.1587570328006; Wed, 22 Apr 2020 08:45:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587570327; cv=none; d=google.com; s=arc-20160816; b=YJEQPn5LKCQLiJJSvJRJKPZfz6euZw0ojO7xZ0jKdgqRTvFNaiOL8vRkIhCTMz3/N9 qTMNV7G7PDPG1tgcH/oJbO5709l3Hl+5dLDz04+LFQOYaaIgtJVjncRhl92dWAan3b+q YnD7eP5yJK3fmP4hh5fkExW5EIJMjXmAjt1gu971HzDlOCAoTLYGaKaonk99+auygv1c X41GF4X21mIHxjEff52YXJKQSOHqSbUg2NpFth+pAUKC3y7zq2zg6ytBVI2e589BkHkb dunSM1L/ET7J2k7cFyxM1zZyTmajwi9IjtiDiGhFqpmR+pYbLgFoBXkgUNGvuaTM4vUn qmaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=Y1Sz+wTyfWXH8XIrgZSF13q/Ni/kLRriPUdMvC1eQWM=; b=D78BrTt//DMbvZ1+b0C6fH1kkSqiYs1yh1v126sOi4/OzVyGdBtHeKH2jl6rglbdW4 VQ6dHJAwQVu6s4tq3haN0Ei3cGRWUw1hz9d5kA91OD6BotAL8+xGLWyQDZvfVJoGB3FF vy661e6lT0R4MdMOF4xUH/mRm+FlED+Mau6xI5DQ8qAgyFxhEn1+usGi55eRmnOM64V/ e9N7iUfbCoDPoUsgeK7m93nV6VNAKy725SeBkjwP6SdC7fPubkb1FXHyTPyz9mlcCvpv Dt3LLSV8sMDtKDjngmTd2o7tkEq9k7UDx1SU65iaJzpxVWUnxlb54skJlcc4IjwpSdzv 6sIQ== 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si3775122ejc.425.2020.04.22.08.45.04; Wed, 22 Apr 2020 08:45:27 -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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726577AbgDVPoB (ORCPT + 99 others); Wed, 22 Apr 2020 11:44:01 -0400 Received: from mga01.intel.com ([192.55.52.88]:32121 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbgDVPoB (ORCPT ); Wed, 22 Apr 2020 11:44:01 -0400 IronPort-SDR: EkJZ5xH3CsMZl2nxn0B62GL0E6bODK3BPqvEiXgJ0/W4T8wZfnrV7fiVaHw2HDeIZKS17phkdn yh1ragYfSqPQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 08:44:01 -0700 IronPort-SDR: uacoHrS/75vy0fPWVfYZWr90WFuxiU1gdrPpxIteIEZyoAgjFdEtLcjloN+lDtgm0kwddB598v 0XaXqF7klQ1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,303,1583222400"; d="scan'208";a="334662350" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001.jf.intel.com with ESMTP; 22 Apr 2020 08:43:59 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jRHXe-002TBj-6x; Wed, 22 Apr 2020 18:44:02 +0300 Date: Wed, 22 Apr 2020 18:44:02 +0300 From: Andy Shevchenko To: Joe Perches Cc: Andrew Morton , linux-kernel@vger.kernel.org, Steven Rostedt , Rasmus Villemoes , Linus Torvalds Subject: Re: [PATCH v4 4/7] kernel.h: Split out min()/max() et al helpers Message-ID: <20200422154402.GK185537@smile.fi.intel.com> References: <20200422125201.37618-1-andriy.shevchenko@linux.intel.com> <20200422125201.37618-4-andriy.shevchenko@linux.intel.com> <5b413a379b8bba39fb75469699b7fd0d50d67e96.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b413a379b8bba39fb75469699b7fd0d50d67e96.camel@perches.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 07:52:32AM -0700, Joe Perches wrote: > On Wed, 2020-04-22 at 15:51 +0300, Andy Shevchenko wrote: > > kernel.h is being used as a dump for all kinds of stuff for a long time. > > Here is the attempt to start cleaning it up by splitting out min()/max() > > et al helpers. > > While adding organization into kernel.h by splitting > out various bits into separate files is a fine idea, > I believe removing the generic #include > from various files and substituting the sub-includes > is not a good idea. Are you sure? > > At the same time convert users in header and lib folder to use new header. > > Though for time being include new header back to kernel.h to avoid twisted > > indirected includes for existing users. > > Yeah, that's the difficult bit and it could make > using precompiled headers very cumbersome. > > I'd rather make #include " _more_ > common or even used as the mandatory first #include > for all kernel .c files. Huh? Perhaps we may just cat include/linux/* > include/linux/kernel.h? > That would also ensure that common kernel facilities > are not duplicated or have naming conflicts with other > files. -- With Best Regards, Andy Shevchenko