Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4446751ioa; Wed, 27 Apr 2022 04:11:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlrPJese58EUQMWilnGT+QvRWrGJCE1lfApITXM6tkbCdD6w2QTW6F7faqt4HdfBApn3BH X-Received: by 2002:a05:6a00:22d4:b0:50a:8540:431f with SMTP id f20-20020a056a0022d400b0050a8540431fmr29585054pfj.54.1651057874458; Wed, 27 Apr 2022 04:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057874; cv=none; d=google.com; s=arc-20160816; b=cCJyAoQpaGbfQIlcmDoFpz/X4QTwTBEH11Sc3Ynlgf66aGnKuv15S7C/42yTaLbUbb MQTDa4Jl/uS7rUp9AOY73nv5EFS+TNXu15otk702Jkm4CK4p+9yciFPORftFTSsROCJP gce33dEdUmQlpgRhFMfUjWGW2KVYc916VQHEQk2JHTcbS0/3SO0F+0gAFAvmkbi+oVPk ammKZMC/SN5zL/D5vyHtWH633yNk9jDN86vnok2elcnr2dWCy4IiJxsxN0V09/f0uyp0 QdYiA4clRMteoQl5wGNPWvSiQnn4fze5kLaYpt2J/XlgaBN7kDN4jTdyZs4XPcj8uCLh Zf7w== 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=bHiiJieh/FaHg+euoS/wIKba/2AMw3njoQcbkdkb+sk=; b=JoLfPCiUNuWuCVsM1Y6QTZ6RPUHHydBDh/2NV+5ZDpcVVUYIoTten4iaeZYKOXdobN ZpmqEpXc6IPCMYclb51TFdukC5TLUAKdv491uJfRNpRgozK4Zgsk4aIByFHc5hRn9mxh jZq4xasUKVB0EpVbB6NIJRVsZvRGozaE1ntf3Y9SVA/PNefWSfbrrjNINvapAh78U2PJ sXQLq74iMV/6s3vK3C5Ol5r2P2CmN5wmvs5QqCHqUdgx2a4vgRbH7pehVEeQZXuNjN6o 2/ixTTtznblhnSxBSL9OUHjIjEv57WgGrat07Zkbs8xNrZ+bCYObVi4jSIDC1JpX5sGd i9Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O8gJPHLk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 1-20020a17090a198100b001d63970bc44si1474890pji.78.2022.04.27.04.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:11:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O8gJPHLk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B774042014A; Wed, 27 Apr 2022 03:04:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352098AbiDZSnZ (ORCPT + 99 others); Tue, 26 Apr 2022 14:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352047AbiDZSnW (ORCPT ); Tue, 26 Apr 2022 14:43:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F9E2B1EB; Tue, 26 Apr 2022 11:40:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AE6C9B82176; Tue, 26 Apr 2022 18:40:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08A3BC385A4; Tue, 26 Apr 2022 18:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650998411; bh=AYsBxfWvabFoIiAlBnqJnSexQOnkJkKiBGCU1vWvf+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O8gJPHLk/PA+yloIGgxyu+8YTxcEWBSzdg2E7Y9RNVKbPWxQpmiVr37SIxRXglBZp xubxoMBYJA+9RfJiTtfCxRuuTJsLTiM5gLJHAS63evPa14ZB53VUsjTreArlsuHSXH cX/fw0gjXTDrvppKw6AAPts/4lPpL49af6Oqyurw= Date: Tue, 26 Apr 2022 20:40:07 +0200 From: Greg Kroah-Hartman To: Jung Daehwan Cc: Mathias Nyman , "open list:USB XHCI DRIVER" , open list , Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , sc.suh@samsung.com, Krzysztof Kozlowski Subject: Re: [PATCH v4 1/5] usb: host: export symbols for xhci-exynos to use xhci hooks Message-ID: References: <1650964728-175347-1-git-send-email-dh10.jung@samsung.com> <1650964728-175347-2-git-send-email-dh10.jung@samsung.com> <20220426102709.GA175152@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Tue, Apr 26, 2022 at 12:31:33PM +0200, Greg Kroah-Hartman wrote: > On Tue, Apr 26, 2022 at 07:27:09PM +0900, Jung Daehwan wrote: > > On Tue, Apr 26, 2022 at 11:54:16AM +0200, Greg Kroah-Hartman wrote: > > > On Tue, Apr 26, 2022 at 06:18:44PM +0900, Daehwan Jung wrote: > > > > Export symbols for xhci hooks usage: > > > > xhci_get_slot_ctx > > > > xhci_get_endpoint_address > > > > - Allow xhci hook to get ep_ctx from the xhci_container_ctx for > > > > getting the ep_ctx information to know which ep is offloading and > > > > comparing the context in remote subsystem memory if needed. > > > > > > > > xhci_ring_alloc > > > > - Allow xhci hook to allocate vendor specific ring. Vendors could > > > > alloc additional event ring. > > > > > > > > xhci_trb_virt_to_dma > > > > - Used to retrieve the DMA address of vendor specific ring. Vendors > > > > could get dequeue address of event ring. > > > > > > > > xhci_segment_free > > > > xhci_link_segments > > > > - Allow xhci hook to handle vendor specific segment. Vendors could > > > > directly free or link segments of vendor specific ring. > > > > > > > > xhci_initialize_ring_info > > > > - Allow xhci hook to initialize vendor specific ring. > > > > > > > > xhci_check_trb_in_td_math > > > > - Allow xhci hook to Check TRB math for validation. Vendors could > > > > check trb when allocating vendor specific ring. > > > > > > > > xhci_address_device > > > > - Allow override to give configuration info to Co-processor. > > > > > > > > xhci_bus_suspend > > > > xhci_bus_resume > > > > - Allow override of suspend and resume for power scenario. > > > > > > > > xhci_remove_stream_mapping > > > > - Allow to xhci hook to remove stream mapping. Vendors need to do it > > > > when free-ing vendor specific ring if it's stream type. > > > > > > > > > > For the static functions that you are now exporting, they need to have > > > their functions declared in a .h file. If not, you now get warnings > > > when you run sparse after applying this commit, right? > > > > > > thanks, > > > > > > greg k-h > > > > > > > I didn't get warnings in my environment. I tested to build default config + > > xhci_exynos by make command. Is there compile option to check it? > > make "C=1" And now 0-day reported it as well: https://lore.kernel.org/r/202204262306.mzMIKFKO-lkp@intel.com