Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1163863rwl; Thu, 10 Aug 2023 07:21:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKVSVSOigxRizyUFfLB/2MczL9ZSL9kidJUy/6hW0L7pPH1sZRXr8KbH08xNGb+msbc8xx X-Received: by 2002:a17:90a:1002:b0:262:f8b8:dba2 with SMTP id b2-20020a17090a100200b00262f8b8dba2mr2092725pja.35.1691677290324; Thu, 10 Aug 2023 07:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691677290; cv=none; d=google.com; s=arc-20160816; b=0tyRuvyDAwShrv0ffcupyD11Ups8xV2ZrmcKZcI8eoUy7Emmg0l+jAk51jIKQx7Mjl czHM3Q13pC6/NVTqoSFlJEmKBbhL5OnKUpVPxEGJeWbRGFj27kcCk3xdsB7bkGJcQsFO NJdTDKosYzZh1vUDfblY362omi+qrPmEIHHPiD3SObtcD0ldnDrPW105+JYikercSWdu tIl+j4fOV88JfmA8mvmVbpmMkkvEwqVGFI0OdHmgJED2rG423E4Ot9qQKuAGSzcClFr/ xGQbLgJn+Tt3POBcwPySX5WY6+lIYiKeLG3ck7XQ1NTtMQK7XrqGFg3mFMremse3uTJq XFHg== 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 :dkim-signature; bh=UFBYT5tzI4z4icu73XhQu5b0aU+HQ5Kc9/dN5xSAkyM=; fh=lNSggOp2LH5a6m9Uq9ySVb/GwR7OyYeDIW3sll4q/RQ=; b=PVjJNGWNwcj7TVDdqIE6fcbzu8Lo/A6BLb6s/f8n7DtkCuYpQMahECH4hBKcI09JfO dNNtC9GqTzbj+AFC/MyOVrtzu9pocFQPge+kWa487VubZauFL4uXbq84ZAEYDIe2NilL G31z6wDO74ZaMNAVqKyYJVq2f9ESBAHoSo7YWNSdVVHZauClhS0kocOe2Q6OwGOMIQbj 3KyP6skkoD9oUldfDe3hYtmEC8djtvZXXA4O13il7YkJQNHt6D8JVrkfB6n8sIC6iJJ0 WtqYST8jamr6SbiSBPjnI/BymJahQO1NlT7b4v/FJHSAFOygski9Jy/c6h7hXSkJYPZD zTZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k1E2b6+a; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a17090ad70700b002681289fee1si1622889pju.107.2023.08.10.07.21.18; Thu, 10 Aug 2023 07:21:30 -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=@intel.com header.s=Intel header.b=k1E2b6+a; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234196AbjHJN1e (ORCPT + 99 others); Thu, 10 Aug 2023 09:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234880AbjHJN1e (ORCPT ); Thu, 10 Aug 2023 09:27:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF1E726B1 for ; Thu, 10 Aug 2023 06:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691674052; x=1723210052; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CX/8PWwRlzjURvCQeMfP60m3SD6Gi3s5IWlgF68o6U0=; b=k1E2b6+a8TRBd/qcGg4ySKyL904CcB0zvhRCEtkVGEu+znRWET/Pf0tM fDKszxAdVrcNOJoqFO8gIEB13QVeUDWA3qNW75TmB/+jqlzwvWafbCLQ3 Jf+0TyW7Cwno1DOg3EN/Jvy82awpkzua47N84RSZouSN2TG/l5NbYHs/V 47ehH2R+dbJkXH9C9zOK8rCM0syix4gY/VwO3OT6VamBv6/NNxgkJEULD MtumXkoF/RNj9BXUYfT8d8OzQ7wohCRWYCQz9Ie/P2U+mwDQqVjPR4WWb g5bQ9XLDpngcdhLLSX203HYDsaId+iw9PA1xrT4LVPaoqKfaJv8Z+dw1T Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="370298866" X-IronPort-AV: E=Sophos;i="6.01,162,1684825200"; d="scan'208";a="370298866" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 06:17:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="875714029" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP; 10 Aug 2023 06:17:40 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qU5Xj-002PH0-0V; Thu, 10 Aug 2023 16:17:35 +0300 Date: Thu, 10 Aug 2023 16:17:34 +0300 From: Andy Shevchenko To: Rasmus Villemoes Cc: Petr Mladek , Marco Elver , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, Steven Rostedt , Sergey Senozhatsky , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: Re: [PATCH v2 2/3] lib/vsprintf: Split out sprintf() and friends Message-ID: References: <20230805175027.50029-1-andriy.shevchenko@linux.intel.com> <20230805175027.50029-3-andriy.shevchenko@linux.intel.com> <67ddbcec-b96f-582c-a38c-259234c3f301@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67ddbcec-b96f-582c-a38c-259234c3f301@rasmusvillemoes.dk> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE 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 Thu, Aug 10, 2023 at 11:09:20AM +0200, Rasmus Villemoes wrote: > On 10/08/2023 10.15, Petr Mladek wrote: ... > > + prolonging the list of #include lines in .c file. It will > > not help with maintainability which was one of the motivation > > in this patchset. > > We really have to stop pretending it's ok to rely on header a.h > automatically pulling in b.h, if a .c file actually uses something > declared in b.h. [Of course, the reality is more complicated; e.g. we > have many cases where one must include linux/foo.h, not asm/foo.h, but > the actual declarations are in the appropriate arch-specific file. > However, we should not rely on linux/bar.h pulling in linux/foo.h.] Btw, it's easy to enforce IIUC, i.e. by dropping #ifndef _FOO_H #define _FOO_H #endif mantra from the headers. -- With Best Regards, Andy Shevchenko