Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp841032ybz; Wed, 22 Apr 2020 08:55:37 -0700 (PDT) X-Google-Smtp-Source: APiQypJk4CAvh+joEeaIFX78mUtkmUGjnrbXyAO9b+qJBJtP83G8INxFtsbfdyh4iYltPxRHTTqy X-Received: by 2002:a17:906:130d:: with SMTP id w13mr26046841ejb.253.1587570937242; Wed, 22 Apr 2020 08:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587570937; cv=none; d=google.com; s=arc-20160816; b=G6RobKiXVoFiUmPW+sq64soa5tVJ+OfI8+8ElEBrEEFCZehewRQn60MMM1HBd//kaD JwUwbMnJJxcqitaSq47eHI41UOLzh95cT/7h6eSqxBP3xHZB4YAkC2fJSGddGYt/4Uqe Hx9FUBlmCU8oQT4ddLyX6benKXBn8PG+VlxU7ACknWj3n6iNdGyOg0Jl9lzRPIXJMvm+ 2j5H9ZPBx6F+hBUXUKfcC3bMj090tfjBNf94Vy8bRi2/wnd8XF+N0XAxNC/o8yZqWZHJ gkwSK8wCIx/kAU/5CDjOK1FF02uy9HR0iqTFbTx+QI3cnfCCkYWayuhzQi2tEO4QyMJu u0Ug== 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=/ihX/OhNPCZF89IiQlK8t9q40PW5mWE6QOEec2lmKi8=; b=ZKkZ0J0Zyd3eKpJQO8WsTny1ip0PnYFliL2fcjc/NX53NbkTSo8ghKZKySOoTm3rRS e1gZ2chBtC5Ey8Q97PYQUEGS0S66dc80jtStEl61GvPdQqM5I3DstZ3c8dxlaiTGxySk 6B+sDZIflsWhJIxLd9v+nXy1/rnX19RLwNVKL/NpU9MFZJynkeTWbA3suj6hYFAYtcGH 17laQUbqiWjqqvS0o3AnkzvfLYUIXfYwLVmHojSn9oXjL5TX1DE0f/xQT6fVpSMSlPXW lKEg9s4DlZn07O4/uk59R/kg5pu4GY2NZzI7llQInYA3ilCB4FWBsL9V8h08f635Xq39 G2vQ== 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 j19si3393178edp.118.2020.04.22.08.55.14; Wed, 22 Apr 2020 08:55:37 -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 S1726748AbgDVPx4 (ORCPT + 99 others); Wed, 22 Apr 2020 11:53:56 -0400 Received: from smtprelay0251.hostedemail.com ([216.40.44.251]:36456 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726494AbgDVPxz (ORCPT ); Wed, 22 Apr 2020 11:53:55 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id B5D6B100E7B52; Wed, 22 Apr 2020 15:53:54 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2553:2559:2562:2691:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3873:4321:5007:7903:10004:10400:10848:11232:11658:11914:12297:12740:12760:12895:13069:13311:13357:13439:14096:14097:14659:14721:21080:21451:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: flock01_794fcb3173706 X-Filterd-Recvd-Size: 2052 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Wed, 22 Apr 2020 15:53:53 +0000 (UTC) Message-ID: <2539aded26601a969999065fb1b4c780a22e307f.camel@perches.com> Subject: Re: [PATCH v4 4/7] kernel.h: Split out min()/max() et al helpers From: Joe Perches To: Andy Shevchenko Cc: Andrew Morton , linux-kernel@vger.kernel.org, Steven Rostedt , Rasmus Villemoes , Linus Torvalds Date: Wed, 22 Apr 2020 08:51:35 -0700 In-Reply-To: <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> <20200422154402.GK185537@smile.fi.intel.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 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 Wed, 2020-04-22 at 18:44 +0300, Andy Shevchenko wrote: > 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? Yes. > Perhaps we may just cat include/linux/* > include/linux/kernel.h? Silly argument, There's a real argument to be made to tmove many of the files in include/linux to separate directories or out of include/ altogether to subsystem specific locations.