Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7358903rwi; Mon, 24 Oct 2022 13:30:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5q0Qjb/v/GiemWu6glF9qzKSzwXfkLaqr8fNnXd4oUeKxY9Cmw+knHIe18eGAMdRmwS5bf X-Received: by 2002:a17:907:3f19:b0:7a3:2317:4221 with SMTP id hq25-20020a1709073f1900b007a323174221mr9646798ejc.562.1666643412498; Mon, 24 Oct 2022 13:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666643412; cv=none; d=google.com; s=arc-20160816; b=iEGIvV5CmHP0Fk7wJVDcNmm3WxjsqYVk2ceqNUDTEfFVjiwe3Z8HCf1n1xHCEdi9Yy veeGYbitvNu+v/PuPomTsm5EkbzJHD3klacr+Qdd2I8f+A6mw3mRSHoHJ4E6hTD4No7m yYeRqxE1ZwBvGJl+OefOGearbOmnwjyUXCBQTpGYsRw2W1vcVNtvGLaxavrrC1gvdvZa W4Z4y7i/zBjMjJU/lRGuNUGZscdzLun5NGPyYA/vUpe6gdod3gitaGXNs0Sv+pKnn3+s ue5xQmZaOrYPswXpgoHpKRHHaV1n5nv2+CnhL8c1cACDtvjpsemborR4VNWz6apqNQ8/ Rq5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RW2pp7l1psTsUxgsl5DU14u9WogVsd5B7cwThMcENI0=; b=f1m2IhQ1mg8mUufEA7AS+YFld/MdJkcBBqKMV7QppvVHpHNbuAKfFebss+qtHN+UhZ EhssR60W4Rg4livSREv4AGwqMIjzZ4zTIBIPRvgTIFzZk8pnMXKKxUgCIZah/vqqqc6j UhwNRNdnNBHfEsx+35LwjgVbr9EVmmvJ/u2bfi2+GsqJ5YQkXqa43Ex84DBs0S+shgeL uRbTKeWAw541/g7wlClhdI0+L9GZHf+GYCTyNXTvI3Oap5r5aGXk+fWgfRWFmEl/PMHK ExK2+G3mZsX/3+SFTiFm0Ozd9xEjX04trhGVfwG840zq3KkMvMelXhR+X51CIxGF8DIX u+eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=B8osC42j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a056402355000b00461701dab0csi699364edd.526.2022.10.24.13.29.47; Mon, 24 Oct 2022 13:30:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=B8osC42j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233410AbiJXTux (ORCPT + 99 others); Mon, 24 Oct 2022 15:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234023AbiJXTto (ORCPT ); Mon, 24 Oct 2022 15:49:44 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDE9D18F2 for ; Mon, 24 Oct 2022 11:15:44 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id z14so3956957wrn.7 for ; Mon, 24 Oct 2022 11:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RW2pp7l1psTsUxgsl5DU14u9WogVsd5B7cwThMcENI0=; b=B8osC42jYilLF0gdShuwE/kOQesHhMkrTHpY/au1SEQLIjB762rLXmxX52DkTycYM8 WO8QQxqRQh75BhKexvVV6dImpxSbvTTqIGnqc9SuUPUxppRNNRa0Zp7/yDtLfdHsjgRb hNsW4Wjx14ptmwDVm+w9nJZe1sEPpS6gLWBs0mpT49HzZs5ZnTw64fDQuQxFlFMqW5Eu 2XWCF9whnOZ5T9KiTZ3iiYiFD7CypPz841o8dBfp7wGx6IrO+9hFbcatF1WChzuS5FoD nJ4rlNpf6KPqEJru6eW5HdIDBTq4eBb5CxIk/dp667XlVw9gCzFl2dhyTdaeNgebjLaB i+KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RW2pp7l1psTsUxgsl5DU14u9WogVsd5B7cwThMcENI0=; b=ZSDOi4pCM4YqZLzaBsyN4PxovNM6iCEA3gkYi+R8MqIMIgEtHmyJM0pvj3acAWYqCX vCs1SeL4QAwINZTbLeQvkpJNitxzy5jBd92jkxBDjJsSEoaU/xlr63imo+oYJa6y4C0U blCpC2VxAOkFk/BUMtZQ2xtKdjcZOWKmjcbMy3cMLPuGHsoYQY76EDvDB+nFzdmVduQK eyseNe0tT11L9KxyeqzLJrBZianwU0NTFyB+iecmlXcqqw9rUz4io7jY1FNhx13+5gVe 4vRpWF2APEKyKa2pW6ou2bYJJraqc6vcWggyMXjCerklEZjUsWa5iPTRTYQdI/7LSfQW RIMg== X-Gm-Message-State: ACrzQf1Ag2gm1KEfJl2JaYFQcyHsYKVFXco/+OJ6Wp8p7+lFgiGwaRBy HXVUUjvrPkEwXQojYaw0kfJl3T2Jgg== X-Received: by 2002:a5d:43c5:0:b0:236:6ff9:9167 with SMTP id v5-20020a5d43c5000000b002366ff99167mr4627860wrr.160.1666635272449; Mon, 24 Oct 2022 11:14:32 -0700 (PDT) Received: from p183 ([46.53.250.110]) by smtp.gmail.com with ESMTPSA id k15-20020a5d524f000000b00236722ebe66sm266034wrc.75.2022.10.24.11.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 11:14:31 -0700 (PDT) Date: Mon, 24 Oct 2022 21:14:29 +0300 From: Alexey Dobriyan To: Andy Shevchenko Cc: mingo@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [rft, PATCH v1 4/4] kernel.h: Split out ARRAY_SZIE() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 24, 2022 at 07:05:18PM +0300, Andy Shevchenko wrote: > On Mon, Oct 24, 2022 at 06:44:50PM +0300, Alexey Dobriyan wrote: > > > include/linux/array_size.h | 13 +++++++++++++ > > > > All of this is pessimisation unless you're removing > > > > +#include > > > > from kernel.h which you aren't doing. > > > > container_of.h is just as silly. > > > > kernel.h might need _some_ cleanup (like panic and tainted stuff) which > > is rarely used but ARRAY_SIZE()? > > Are you suggesting to slow down compilation with inclusion of tons of unneeded > stuff in the zillions of drivers? > > Or you are talking that we need to abandon most of the headers and combine > everything into kernel.h? I think this is what is silly. It hard to escape kernel.h so you will be including it anyway. Unless you delete, say, kstrtox.h from kernel.h, it is pointless busywork.