Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6328722rwn; Tue, 13 Sep 2022 02:33:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ATosR9sIBsHFcbW1JKYG6rxN8aAomK1UFDkPtI4dcU8RHKtErfipiMhiNet9NV80eK+gQ X-Received: by 2002:aa7:c74d:0:b0:44f:d34:affb with SMTP id c13-20020aa7c74d000000b0044f0d34affbmr24778246eds.143.1663061581778; Tue, 13 Sep 2022 02:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663061581; cv=none; d=google.com; s=arc-20160816; b=Xr7Qy3afqmCDz/Az5riX84EnbCZK9ZmdjbMuCvqdGPS/pXOM0lIXcvu4zuB67jnpDV YQ/yrgG98c2tZ+yT8Ys0m77Y8kVgraI+Uvd5lOV3FX/7Zg5L91xZsKYFD8ZdCCxShSyh W2TXeLkZVgeVnodyluDek7TzsYT2R487mHEWd0KDaq6oYgCX9hIckQVNDR7CtbhT00rr My2nVrx6ihVx4KGlYI/68O4wMuDqBG0c70yad8nclR2EsuK+B6vUbdzyvpaxgMHoChne cjUkoitlKNf7AuY4fOb+Vb6HGpLJ9Kw+SeYCHq/iFDIkbK/m5ccoLhpg5+4NvLVtMI+s Mziw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=boRGdlKa24geHwsk4r8Iv91I8IjEAaAixpYM2A/LCh0=; b=Lk40VPOVMRghWKKJzImNzFD4E81kzlBO/ez2ZflOcP3839T04V1nAfxj7Hf/SgA4y0 zS42vD8h7bskfil0jFPMoP1scGmnwNDs7ohZEeK6SJpuHWjfeZBMcxQJpVExhRxpD6XW vu7/BvNowXLvq47OkThYlGe+TtlDWfsm6L3/52iWpzTmnGZ2Ssm/RoukNoWEgdf1JMLs rVeVNpoQsZgJRNS1puUl0T5zLPZR6ZSa9flIRLDoOEueNq5Q3tBYg8HQACuajb3VB+qz ck646f9NjDDY158OUCxUSkDOZaQHl3fWMt0KbPTxnVkKXKWR7qE97Mpeey7VKPz84H86 RYuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=itfQsbOj; 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 hr26-20020a1709073f9a00b0077c2c9f4d49si6664137ejc.451.2022.09.13.02.32.35; Tue, 13 Sep 2022 02:33:01 -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=itfQsbOj; 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 S231358AbiIMJCm (ORCPT + 99 others); Tue, 13 Sep 2022 05:02:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbiIMJCI (ORCPT ); Tue, 13 Sep 2022 05:02:08 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25FA95C955; Tue, 13 Sep 2022 02:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663059700; x=1694595700; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=MQLvPvSmi5l1/oQ588bxZkJ8HGx1AWb6oknroVfrx08=; b=itfQsbOjPORrhRUFn1PasTqK5kkjPE9rUspVsNTmoBeyX8gaDhIh21kC c5a3Sh7zlWPXt5zhpVrUGM0x860aicRu/GLhBhbWKa2/ofGrTbSKTvHTm SNbPsWIJFABn7fZopyRcnM+PVl34a9w2/8uxPaix9bLUdFBHLlvr8mCUY ZlvrmuVZ14apAcv1Um2UsfS3uITQd2Ie6fa1PrqrQgD4JM8n8lk3nH1XT Dp+zfYiCOm79y7mn3y00hBecsVSJvhCOD07rMsX8WstXq0NFFkOu7fEIb p3O23TD/TYwSRroqaYfL6aDXOwnKOjhRSXlMwcNxFyMRgvlAt0GItHFSW w==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="362036070" X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="362036070" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 02:01:39 -0700 X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="616384388" Received: from bsalunkh-mobl.ger.corp.intel.com (HELO [10.213.238.99]) ([10.213.238.99]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 02:01:35 -0700 Message-ID: <4a4ed638-d505-6f30-bf0f-a16a32d494a4@intel.com> Date: Tue, 13 Sep 2022 02:01:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v13 1/3] x86/tdx: Add TDX Guest attestation interface driver Content-Language: en-US To: Sathyanarayanan Kuppuswamy , "Huang, Kai" , "tglx@linutronix.de" , "mingo@redhat.com" , "shuah@kernel.org" , "x86@kernel.org" , "bp@alien8.de" , "dave.hansen@linux.intel.com" Cc: "linux-kernel@vger.kernel.org" , "ak@linux.intel.com" , "gregkh@linuxfoundation.org" , "wander@redhat.com" , "tim.gardner@canonical.com" , "hpa@zytor.com" , "isaku.yamahata@gmail.com" , "kirill.shutemov@linux.intel.com" , "Luck, Tony" , "khalid.elmously@canonical.com" , "marcelo.cerri@canonical.com" , "Cox, Philip" , "linux-doc@vger.kernel.org" , "linux-kselftest@vger.kernel.org" References: <20220909192708.1113126-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220909192708.1113126-2-sathyanarayanan.kuppuswamy@linux.intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 9/12/22 19:44, Sathyanarayanan Kuppuswamy wrote: >> and include the header ( ?) for memchr_inv()? > One of the previous headers includes linux/string.h (I am not sure which one). > So why include it explicitly? Because it's a best practice. What happens is that you ride along on the coat tails of another #include, someone sees that include is no longer used and removes it. Then, your code is busted on some weird .config. *OR*, the header itself changes and doesn't #include the dependency you need. I guess you can go add this advice to Documentation/ if it's not there already somewhere.