Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp695886lqt; Thu, 6 Jun 2024 16:11:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUT0QAtba/usQ09KioPKF5AxEVevFK6U3FIYXHqOBDjUZtMEK6VZU0uO+X/PFMseYYHqzIRROzto5ulEODmGbDJxnYYQVIU+fVGWPaVfw== X-Google-Smtp-Source: AGHT+IEv/fOhO3SJdCbRqdeGWmI7gjEtQnV4MNG9RDUVUUcGTC81hGCjlCoR/kNkTSKNLnTzJ2cN X-Received: by 2002:a17:906:40d3:b0:a63:54e:1307 with SMTP id a640c23a62f3a-a6cdbfec361mr46568266b.65.1717715463407; Thu, 06 Jun 2024 16:11:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717715463; cv=pass; d=google.com; s=arc-20160816; b=AMN1P3vGm4YouhslyJ2LnONVz9KCL9Ee93cmglcbTjgvrE3OMP2Py5ApXF7WEHmydO PNP4qmugq9WMGtFmf78J+YWxeuviM5coj2AZ9w6PeorKfLDryypTJn0yAO8yjsUbV2zl pNIPgK7lb4B1tQstBeQe8F+h9Wv/4/hDJNluUli3XUvV2t9ap82Voecmlyf6N77I7NVf DlB+CYi7FsXdPkOUhNbGm6ACbaEhnJe0neFeS47nR52qiHQqf8S4/xBxbsVndlQrHTOA yaHvBs7TZnaJpDIv5+tBPH4NmCOn/3cA+VGWL0oOcGP9U44OQx3MApXNJ7DbFQvL+wus b8vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CjEBKtiv/8ODBN2zKlSVIqhVaZ+SxXlUzy0sKKEy5Kw=; fh=7M7w1iHUyfBz6BrLkUTQ9Ht4aaZ4qTarDSklDcgJQTY=; b=oyjL2tPrrvYzyL1fLylgpnmfXOcAEqdeFwkPJHaki2fIliHWzFV7Hd0RY9DlxnIjEw X5GqdzNaTjBeSgUkHpny8HXXxVWWZN9q7Ik1fgGNu3/eb307Mtn+Nw6v4tMXj1F9NUh7 Hrk9BKlWTCgytvZ0STI0bO4AxKnVHr8jI7Lo82oz0CGBJQ0bRgA68PfZBb+vC9QRmY4G sU/wnlHletnWQ0QJcJ3nc1zWLAtGscJ/sx5tfv0khw9PhKo91TjJFBNcbA8PHjuACaIq Iq12Ov439DLUxFmwXt+knFCRcXHi/VTYZNKKfND3RInGMrmqIVRyKtspYAg/03cAzXvE 1bRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Yi/8UTIh"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-205138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c805ce199si120812766b.273.2024.06.06.16.11.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 16:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="Yi/8UTIh"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-205138-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205138-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E08C81F25C2D for ; Thu, 6 Jun 2024 23:11:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77F5F13E054; Thu, 6 Jun 2024 23:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Yi/8UTIh" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE5C413DB8C; Thu, 6 Jun 2024 23:10:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717715452; cv=none; b=d+MBfuIs28p4od9i2h19o9FBAIvr5ULCoDUIqN1rcf2uuwtkEa6fjeZ9Le2OX93HrOAZQJuVZGn5lCJ1Fr/m5G+lmEPJ9o2CHFc758uag5Q88LEU2iaN0MDtwJzkDhsC5Ox+WVARs6oE2Saewceum0wncui97F+N/nigSZ5cCXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717715452; c=relaxed/simple; bh=FiEcEYeJvOFVnAu9AYjZ+PKBpRcITmpscIb1DXSrcrQ=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=J4MF5Z9ZDSgALtX5i3h5xTKhDio2q53DrGhN66tSg9lUXWOf6VDiK8J34WDjejpad9BgAcShQvAiSnYwLuuPdrUkemXUXgVj7aaYPvOGckqXtsvJ/1M/lgntfS1AC9eiiIjGecxrKjf6/hf5xQBR5E0hx9ECG9Hb6ksRz8CcIcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Yi/8UTIh; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 456A9mtX031711; Thu, 6 Jun 2024 23:10:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= CjEBKtiv/8ODBN2zKlSVIqhVaZ+SxXlUzy0sKKEy5Kw=; b=Yi/8UTIhh7FvIPch +rlhO2R5CuFv0gyUwaiNlDzHt/mX31LrMzD7cXyn6sP3QibNSEfZgMsm0qhKGFGE mXj112EOJyIy/91tMV7OqvbXK2L17gBYLwMIpsL2lB5YiccmbTRcFVkYMg5evEcZ P1fNeHvpQLfhr2hFsPSvsuLPI8oZJOyvOHYJvjzAucs8xI0XZBUxmO3L41/Cd8xK gDAbcIta5TwRBkzGrcw8BzbtSQiD7153QOqXRSk9RzfdXwbGBgTJK4faK/emJn7j tCCjsaR94wdZq/bLQ3Kv3n/uBCkbkthaDDwHHGpSW3Xh/jyrY29KP1rmLOy8Sfc3 Yd+52w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yjk89cx16-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jun 2024 23:10:40 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 456NAd1H020137 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jun 2024 23:10:39 GMT Received: from [10.48.241.109] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 6 Jun 2024 16:10:38 -0700 Message-ID: Date: Thu, 6 Jun 2024 16:10:37 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] cxl: add missing MODULE_DESCRIPTION() macros Content-Language: en-US To: Jonathan Cameron CC: Davidlohr Bueso , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , , , References: <20240603-md-drivers-cxl-v1-1-f2940f5c0836@quicinc.com> <20240604170445.00005c67@Huawei.com> <362fccea-707f-4430-8da3-8acc6ac5fbe9@quicinc.com> <20240606151521.000018fd@Huawei.com> From: Jeff Johnson In-Reply-To: <20240606151521.000018fd@Huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 1qZhD_hSu4S2mzITi4UFFlCLEC64cF3h X-Proofpoint-ORIG-GUID: 1qZhD_hSu4S2mzITi4UFFlCLEC64cF3h X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-06_18,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 impostorscore=0 phishscore=0 mlxscore=0 bulkscore=0 adultscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406060160 On 6/6/2024 7:15 AM, Jonathan Cameron wrote: > On Tue, 4 Jun 2024 13:21:52 -0700 > Jeff Johnson wrote: > >> On 6/4/2024 9:04 AM, Jonathan Cameron wrote: >>> On Mon, 3 Jun 2024 21:48:53 -0700 >>> Jeff Johnson wrote: >>> >>>> make allmodconfig && make W=1 C=1 reports: >>>> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/core/cxl_core.o >>>> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_pci.o >>>> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_mem.o >>>> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_acpi.o >>>> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_pmem.o >>>> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cxl/cxl_port.o >>>> >>>> Add the missing invocations of the MODULE_DESCRIPTION() macro. >>>> >>>> Signed-off-by: Jeff Johnson >>> >>> This has been irritating me as well. Need to do >>> drivers/perf/cxl_pmu.c at somepoint as well but given that goes through >>> a different maintainer makes sense to do separately. >>> >>> Only comment I have is that we should probably strive for more consistency >>> than you currently have. Always expand CXL or never do, use >>> colons consistently, use Support everywhere or nowhere. >> >> I'm going through a bunch of these tree-wide, and usually just copy/paste >> either from existing comments in the .c file or the description of any >> associated Kconfig item. >> >>>> --- >>>> drivers/cxl/acpi.c | 1 + >>>> drivers/cxl/core/port.c | 1 + >>>> drivers/cxl/mem.c | 1 + >>>> drivers/cxl/pci.c | 1 + >>>> drivers/cxl/pmem.c | 1 + >>>> drivers/cxl/port.c | 1 + >>>> 6 files changed, 6 insertions(+) >>>> >>>> diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c >>>> index 571069863c62..e51315ea4a6a 100644 >>>> --- a/drivers/cxl/acpi.c >>>> +++ b/drivers/cxl/acpi.c >>>> @@ -921,6 +921,7 @@ static void __exit cxl_acpi_exit(void) >>>> /* load before dax_hmem sees 'Soft Reserved' CXL ranges */ >>>> subsys_initcall(cxl_acpi_init); >>>> module_exit(cxl_acpi_exit); >>>> +MODULE_DESCRIPTION("CXL ACPI: Platform Support"); >> >> From Kconfig: >> config CXL_ACPI >> tristate "CXL ACPI: Platform Support" > OK >> >>>> MODULE_LICENSE("GPL v2"); >>>> MODULE_IMPORT_NS(CXL); >>>> MODULE_IMPORT_NS(ACPI); >>>> diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c >>>> index 887ed6e358fb..ccaa00cd0321 100644 >>>> --- a/drivers/cxl/core/port.c >>>> +++ b/drivers/cxl/core/port.c >>>> @@ -2356,5 +2356,6 @@ static void cxl_core_exit(void) >>>> >>>> subsys_initcall(cxl_core_init); >>>> module_exit(cxl_core_exit); >>>> +MODULE_DESCRIPTION("CXL (Compute Express Link) Devices Support"); >>> >>> Why the expanded version for this one? >>> >>> I'm not sure Devices really makes sense here, particularly as it >>> likely a range of other driver will make some use of this core >>> functionality over time. Maybe "CXL core" is sufficient? >>> >> >> From Kconfig: >> menuconfig CXL_BUS >> tristate "CXL (Compute Express Link) Devices Support" > > Understood, but that is expanded because it's the first use of > CXL in the make file. Here we have no ordering as across many > files and resulting modules. > > "CXL: Core Compute Express Link support" > > Would work I think. > >> >>>> MODULE_LICENSE("GPL v2"); >>>> MODULE_IMPORT_NS(CXL); >>>> diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c >>>> index 0c79d9ce877c..1afb0e78082b 100644 >>>> --- a/drivers/cxl/mem.c >>>> +++ b/drivers/cxl/mem.c >>>> @@ -252,6 +252,7 @@ static struct cxl_driver cxl_mem_driver = { >>>> >>>> module_cxl_driver(cxl_mem_driver); >>>> >>>> +MODULE_DESCRIPTION("CXL: Memory Expansion"); >>> >>> Why does this one get a colon? Also no Support at the end? >> >> From Kconfig: >> config CXL_MEM >> tristate "CXL: Memory Expansion" > > OK. Could add Support but then all code is supporting something, > so fine to leave it without. > > >> >>> >>>> MODULE_LICENSE("GPL v2"); >>>> MODULE_IMPORT_NS(CXL); >>>> MODULE_ALIAS_CXL(CXL_DEVICE_MEMORY_EXPANDER); >>>> diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c >>>> index e53646e9f2fb..2c17fcb1b4ee 100644 >>>> --- a/drivers/cxl/pci.c >>>> +++ b/drivers/cxl/pci.c >>>> @@ -1066,5 +1066,6 @@ static void __exit cxl_pci_driver_exit(void) >>>> >>>> module_init(cxl_pci_driver_init); >>>> module_exit(cxl_pci_driver_exit); >>>> +MODULE_DESCRIPTION("CXL PCI manageability"); >> >> Kconfig just has: >> config CXL_PCI >> tristate "PCI manageability" >> >> I added CXL > > CXL: PCI manageability > > >> >>>> MODULE_LICENSE("GPL v2"); >>>> MODULE_IMPORT_NS(CXL); >>>> diff --git a/drivers/cxl/pmem.c b/drivers/cxl/pmem.c >>>> index 2ecdaee63021..4ef93da22335 100644 >>>> --- a/drivers/cxl/pmem.c >>>> +++ b/drivers/cxl/pmem.c >>>> @@ -453,6 +453,7 @@ static __exit void cxl_pmem_exit(void) >>>> cxl_driver_unregister(&cxl_nvdimm_bridge_driver); >>>> } >>>> >>>> +MODULE_DESCRIPTION("CXL PMEM: Persistent Memory Support"); >> >> From Kconfig: >> config CXL_PMEM >> tristate "CXL PMEM: Persistent Memory Support" > OK >> >>>> MODULE_LICENSE("GPL v2"); >>>> module_init(cxl_pmem_init); >>>> module_exit(cxl_pmem_exit); >>>> diff --git a/drivers/cxl/port.c b/drivers/cxl/port.c >>>> index 97c21566677a..5ceff1df60db 100644 >>>> --- a/drivers/cxl/port.c >>>> +++ b/drivers/cxl/port.c >>>> @@ -209,6 +209,7 @@ static struct cxl_driver cxl_port_driver = { >>>> }; >>>> >>>> module_cxl_driver(cxl_port_driver); >>>> +MODULE_DESCRIPTION("CXL Port Support"); >> >> This I just made up from the others since config CXL_PORT doesn't have a menu >> description or help text and the .c file begins with: >> * DOC: cxl port > > "CXL: Port Support" > > Not that informative, but I can't immediately think of better text. > >> >> >>>> MODULE_LICENSE("GPL v2"); >>>> MODULE_IMPORT_NS(CXL); >>>> MODULE_ALIAS_CXL(CXL_DEVICE_PORT); >> >> If you have specific edits you'd like me to make, I'm happy to make them. >> I have no opinion on the content -- I just want to get rid of the warnings :) > > With the suggestions above it would look more consistent I think. Thanks for you specific suggestions. I'll spin a v2 with those. /jeff