From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::543; helo=mail-pg1-x543.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 39D31202E53C6 for ; Thu, 14 Feb 2019 02:52:09 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id y1so2867876pgk.11 for ; Thu, 14 Feb 2019 02:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rt5T+wUkSlTNYWSFVjQJzj36hgGbqrOxJhXPLIx2+bY=; b=bwT9fZB4PRc7wANLsH2L5R8Fw3gvYKLCkq4HtGxDD2PuO5iugy90MMYQbL8zGrppiz 2elWGyQwsmiJkwEax2VlaUc3CFtPQjsFIrMrmqpKk1vVxOR2FMKI1z1pnVWzPrteWsuQ VfH8I4krv4t6LbsfYK2Vv/ylM1tXWGaqgT+mft7GfrJF942YV6A0jYN8FC0MAD3y1uci Jag1prRrdEBMpfBvxo0KnDDJQtYdUmZ1IbTjRf+CkY2gqMZLD2HFbHZXiHdsIEfB8Ser yFi1t/arWg3KQaZ0KFB3CrUVxLaWk7X4dy7NFckOG+kSGHkhLPSnSU24WAhGVrX3PuMN 78ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rt5T+wUkSlTNYWSFVjQJzj36hgGbqrOxJhXPLIx2+bY=; b=Bb4i+X/mvpx8xJ/0Q2N9BN0fFfXOrcn2iBzgsrbd5cULIam5C552imH28DEZTwPLkF myIergKE1r5O6SEpmLvjwDgawhCYZVIRx3YzbLQ2rX9IwR2N3+OUHnNrpxHDnbYwgB2Y qE8s72oMF5XodPIHZ+7T864VrwR2uBHHD7wXiDvUKDkmfOgDrjzD29mr9rIRixyJCcTA 4ZJ7cFif+SwEyzS2U+qRUeyoCF6B4aUH9y+7nFOhns9W9Vvd/2ntFWNIZMdGI17is+O1 0Tv6nNoenfhheK8njiMbU8NKxwKcdY12qsJky9ajTkaKxW8dxdQ0z7uPpq/BiKmPE+/T +Wjw== X-Gm-Message-State: AHQUAub7rlL7OHcZLnlIXb1W43vDHKZkocqDig9XruKJ2nJy/JVo8cQY nbr2RsVggMK9uP+9yC+M98LqYg== X-Google-Smtp-Source: AHgI3IZanHe7rcbdTjiF9x+G0jEnbU/uxbZLGJ28eombJAPk9iZBtO7D4VOfap3tbhk7uclPqNeLew== X-Received: by 2002:a63:d54a:: with SMTP id v10mr3190401pgi.154.1550141529347; Thu, 14 Feb 2019 02:52:09 -0800 (PST) Received: from [10.58.0.74] ([64.64.108.254]) by smtp.gmail.com with ESMTPSA id f67sm5270394pfc.141.2019.02.14.02.52.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 02:52:08 -0800 (PST) To: Leif Lindholm Cc: linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org, ard.biesheuvel@linaro.org, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com, huangming23@huawei.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, john.garry@huawei.com, xinliang.liu@linaro.org, zhangfeng56@huawei.com References: <20190201133436.10500-1-ming.huang@linaro.org> <20190201133436.10500-2-ming.huang@linaro.org> <20190211150505.h7itd4fqvrfazeqs@bivouac.eciton.net> <49ffdca4-332a-2678-145a-50fb2be4d000@linaro.org> <20190213094222.4w64s3wnrc7fikv2@bivouac.eciton.net> From: Ming Huang Message-ID: <5b13af65-6b7b-c5b6-9236-fd0a31d5c6b5@linaro.org> Date: Thu, 14 Feb 2019 18:51:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20190213094222.4w64s3wnrc7fikv2@bivouac.eciton.net> Subject: Re: [PATCH edk2-platforms v1 01/16] Hisilicon/D0x: Remove SerdesLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2019 10:52:10 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 2/13/2019 5:42 PM, Leif Lindholm wrote: > On Wed, Feb 13, 2019 at 02:36:11PM +0800, Ming Huang wrote: >>> Should it not then also delete #include from >>> Platform/Hisilicon/D06/Library/OemMiscLibD06/BoardFeatureD06.c, >>> Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.c and >>> Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type09/MiscSystemSlotDesignationFunction.c >>> ? >>> >>> Meanwhile, >>> Platform/Hisilicon/D03/Library/OemMiscLib2P/BoardFeature2PHi1610.c >>> and >>> Platform/Hisilicon/D05/Library/OemMiscLibD05/BoardFeatureD05.c >>> both include this header, but >>> Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.inf >>> and >>> Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.inf >>> do not declare the dependency. >> >> OemMiscLibD06.c can remove the SerdesLib.h. As using the definitions in >> SerdesLib.h, other .c files can not remove the header file. > > If they are using definitions from the library header, but not the > library itself, there is something suspicious about the code > structuring. > > But in the meantime, if they are referencing library header files, > they need to list those libraryclasses in their .inf. > >>> Can you investigate and submit an updated patch addressing all of the >>> unnecessary references? >> >> This may takes a lot of time, as Hi1620(D06) is our important project, >> maybe we should focus on D06. > > Feel free to submit deletions for all and any platforms you are > unwilling to maintain. Maybe there are no enough time to investigate this. Is ok to do this for 19.06? When should I send the v2 out? Thanks > > Best Regards, > > Leif > > >> Thanks >> >>> >>> Best Regards, >>> >>> Leif >>> >>>> Contributed-under: TianoCore Contribution Agreement 1.1 >>>> Signed-off-by: Ming Huang >>>> --- >>>> Platform/Hisilicon/D06/D06.dsc | 2 -- >>>> Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf | 1 - >>>> 2 files changed, 3 deletions(-) >>>> >>>> diff --git a/Platform/Hisilicon/D06/D06.dsc b/Platform/Hisilicon/D06/D06.dsc >>>> index 396bd03c9d24..cbbd99e4a659 100644 >>>> --- a/Platform/Hisilicon/D06/D06.dsc >>>> +++ b/Platform/Hisilicon/D06/D06.dsc >>>> @@ -64,8 +64,6 @@ [LibraryClasses.common] >>>> >>>> CpldIoLib|Silicon/Hisilicon/Library/CpldIoLib/CpldIoLib.inf >>>> >>>> - SerdesLib|Silicon/Hisilicon/Hi1620/Library/Hi1620Serdes/Hi1620SerdesLib.inf >>>> - >>>> TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf >>>> RealTimeClockLib|Silicon/Hisilicon/Library/M41T83RealTimeClockLib/M41T83RealTimeClockLib.inf >>>> OemMiscLib|Platform/Hisilicon/D06/Library/OemMiscLibD06/OemMiscLibD06.inf >>>> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf >>>> index 61cead7779b9..8e5c56fa41fd 100644 >>>> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf >>>> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf >>>> @@ -77,7 +77,6 @@ [LibraryClasses] >>>> >>>> IpmiCmdLib >>>> >>>> - SerdesLib >>>> >>>> [Protocols] >>>> gEfiSmbiosProtocolGuid # PROTOCOL ALWAYS_CONSUMED >>>> -- >>>> 2.9.5 >>>>