Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2276981pxp; Mon, 21 Mar 2022 15:39:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+8oD3l9Ah022bEcmM2ypRndjClHRzMxdJ18L7+HvQ/9LhcdJFFOpew0kxLfguc+LnMxkB X-Received: by 2002:a63:1766:0:b0:381:71f9:cd44 with SMTP id 38-20020a631766000000b0038171f9cd44mr19779021pgx.446.1647902391248; Mon, 21 Mar 2022 15:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647902391; cv=none; d=google.com; s=arc-20160816; b=f159wLNf4vgMefa1Ft+jqy9DvMV/RrqHYlyC9DfiCb1hAiAgXnxTcodEMWk1757wBF h1Q1cgHOttB5Rn8vbPCZI9MvIh1Vrh6er4ySo+UE+7ytj3NExm3X/kDi6jTGWRuVJMRF xvYvEsS53iJlPKbZfTpLhqKlehWuYR//J5vFxfk4eIi5ipp8C4R6q+6VRudPG/5ihYGw TLH5fecA7K3WOv08D4A7N8UhUBcUT81oGLhW6xTzASstu4tuZ+D5U7oKCo30zKncVNjM cqqSL+go2y/CYrl0XViWo9i6bs1WFBuMMlRNPH7PXjsdIA0ROCGCcvAMlE8DTzNx/S0w B6Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2mcL8CHkdX5zymIB5Cnt+WsxSWrppWJhR5ine5QYmDc=; b=Am908kEOD08K4F/vP9y/+8HbTZIkncW2Cu9ZeICq5IBFPLjikixGqFVq2z7VddcM3q ujDZ205RvnGc+PQO7IxtyG9J9bT61XZySvDQwj4Bv9AhVthdiSUUOrHvEx9/3rJIAO3y WkLNmQiD3PLH6OQl4L9+9UYxHPGkkXfj0610otoLgttga0l7EiZicqrdsTsy5UTwn5Tk 6qrXhylpt2QQeHpChBcxQsgxpEcs8fqO0c8/GL/DqFmCqQs9EGWu+iPICXFUjMW98Unw aagr1gFBf67pN3KnLv6BdTvHd9hJdhaG6+LVzXIvhJ6OK5VQKo18XTdj2QYqeZ7RACDg 1azw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D69c4JiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 2-20020a170902ee4200b00153be606662si11348143plo.419.2022.03.21.15.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D69c4JiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0CD233C5B0C; Mon, 21 Mar 2022 14:50:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351081AbiCUQ2k (ORCPT + 99 others); Mon, 21 Mar 2022 12:28:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234825AbiCUQ2j (ORCPT ); Mon, 21 Mar 2022 12:28:39 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A48ECDAD; Mon, 21 Mar 2022 09:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647880033; x=1679416033; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fRBotUMjnutJva7VRlBZ1np6GJrR8gIwmYzFjbpJQMU=; b=D69c4JiOSfdLqbxV2yHb0FXHQlb8C1a7a5tFoc20h/ZrkFX9RbGzyj7/ A60pp5plQNnB9ED3YOl4OMXn+UCsdjd9eViNXxahur3R1S8pBiXE/Butg lfzU0SmPw99FW4TV+npx7/QjIh9jf//7b9pxF54bk2rVdIi0XO9xtu0MV POIV4TwNY9plSjqRHhnrQqrXzlHcNMXz1hI9ekFVQIiRemFlGR7wexE2U qUxP+BizNGLhgqX7CXjOlyIvg8CnC0vUO1HD4/4bpA5xYQUZPmczzbFIQ YgGN+w4kILA+kMPAHQWR4Y1mIwAcWnx5cUUAPCw7D2h2NSyCiAXgiRNu7 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10293"; a="257540300" X-IronPort-AV: E=Sophos;i="5.90,199,1643702400"; d="scan'208";a="257540300" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 09:27:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,199,1643702400"; d="scan'208";a="716557906" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 21 Mar 2022 09:27:10 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nWKs9-000Hyz-Ao; Mon, 21 Mar 2022 16:27:09 +0000 Date: Tue, 22 Mar 2022 00:26:53 +0800 From: kernel test robot To: Daehwan Jung , Mathias Nyman , Greg Kroah-Hartman Cc: kbuild-all@lists.01.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Howard Yen , Jack Pham , Puma Hsu , "J . Avila" , Daehwan Jung , sc.suh@samsung.com Subject: Re: [PATCH v3 4/4] usb: host: add xhci-exynos driver Message-ID: <202203220053.4OkItVxU-lkp@intel.com> References: <1647853194-62147-5-git-send-email-dh10.jung@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1647853194-62147-5-git-send-email-dh10.jung@samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-3.1 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,T_SCC_BODY_TEXT_LINE 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 Hi Daehwan, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20220318] [also build test ERROR on v5.17] [cannot apply to usb/usb-testing krzk/for-next char-misc/char-misc-testing v5.17 v5.17-rc8 v5.17-rc7] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Daehwan-Jung/usb-host-export-symbols-for-xhci-hooks-usage/20220321-180046 base: 6d72dda014a4753974eb08950089ddf71fec4f60 config: nios2-allyesconfig (https://download.01.org/0day-ci/archive/20220322/202203220053.4OkItVxU-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/517a7258fc6a2861b66ae9893b39d8bd4d6739e7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Daehwan-Jung/usb-host-export-symbols-for-xhci-hooks-usage/20220321-180046 git checkout 517a7258fc6a2861b66ae9893b39d8bd4d6739e7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/usb/host/xhci-exynos.c: In function 'xhci_priv_exynos_setup': drivers/usb/host/xhci-exynos.c:55:18: error: 'struct xhci_plat_priv' has no member named 'plat_setup' 55 | if (!priv->plat_setup) | ^~ drivers/usb/host/xhci-exynos.c:58:20: error: 'struct xhci_plat_priv' has no member named 'plat_setup' 58 | return priv->plat_setup(hcd); | ^~ drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_free_container_ctx': >> drivers/usb/host/xhci-exynos.c:146:17: error: implicit declaration of function 'dma_pool_free'; did you mean 'mempool_free'? [-Werror=implicit-function-declaration] 146 | dma_pool_free(xhci->device_pool, ctx->bytes, ctx->dma); | ^~~~~~~~~~~~~ | mempool_free In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/kasan-checks.h:5, from include/asm-generic/rwonce.h:26, from ./arch/nios2/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:248, from include/linux/err.h:5, from include/linux/clk.h:12, from drivers/usb/host/xhci-exynos.c:10: drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_bus_suspend': include/linux/stddef.h:8:14: error: called object is not a function or function pointer 8 | #define NULL ((void *)0) | ^ drivers/usb/host/xhci.h:2190:33: note: in expansion of macro 'NULL' 2190 | #define xhci_bus_suspend NULL | ^~~~ drivers/usb/host/xhci-exynos.c:234:15: note: in expansion of macro 'xhci_bus_suspend' 234 | ret = xhci_bus_suspend(hcd); | ^~~~~~~~~~~~~~~~ drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_bus_resume': include/linux/stddef.h:8:14: error: called object is not a function or function pointer 8 | #define NULL ((void *)0) | ^ drivers/usb/host/xhci.h:2191:33: note: in expansion of macro 'NULL' 2191 | #define xhci_bus_resume NULL | ^~~~ drivers/usb/host/xhci-exynos.c:252:15: note: in expansion of macro 'xhci_bus_resume' 252 | ret = xhci_bus_resume(hcd); | ^~~~~~~~~~~~~~~ drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_address_device': drivers/usb/host/xhci-exynos.c:260:26: warning: variable 'xhci' set but not used [-Wunused-but-set-variable] 260 | struct xhci_hcd *xhci; | ^~~~ drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_parse_endpoint': drivers/usb/host/xhci-exynos.c:276:29: warning: variable 'ep_ctx' set but not used [-Wunused-but-set-variable] 276 | struct xhci_ep_ctx *ep_ctx; | ^~~~~~ drivers/usb/host/xhci-exynos.c: In function 'xhci_exynos_set_hc_event_deq_audio': drivers/usb/host/xhci-exynos.c:370:20: warning: variable 'deq' set but not used [-Wunused-but-set-variable] 370 | dma_addr_t deq; | ^~~ drivers/usb/host/xhci-exynos.c: At top level: drivers/usb/host/xhci-exynos.c:576:10: error: 'const struct xhci_plat_priv' has no member named 'plat_setup' 576 | .plat_setup = xhci_mvebu_a3700_plat_setup, | ^~~~~~~~~~ drivers/usb/host/xhci-exynos.c:576:23: error: 'xhci_mvebu_a3700_plat_setup' undeclared here (not in a function); did you mean 'xhci_mvebu_a3700_init_quirk'? 576 | .plat_setup = xhci_mvebu_a3700_plat_setup, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | xhci_mvebu_a3700_init_quirk drivers/usb/host/xhci-exynos.c: In function 'xhci_priv_exynos_setup': drivers/usb/host/xhci-exynos.c:59:1: error: control reaches end of non-void function [-Werror=return-type] 59 | } | ^ At top level: drivers/usb/host/xhci-exynos.c:588:36: warning: 'xhci_plat_brcm' defined but not used [-Wunused-const-variable=] 588 | static const struct xhci_plat_priv xhci_plat_brcm = { | ^~~~~~~~~~~~~~ drivers/usb/host/xhci-exynos.c:584:36: warning: 'xhci_plat_renesas_rcar_gen3' defined but not used [-Wunused-const-variable=] 584 | static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen3 = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/host/xhci-exynos.c:580:36: warning: 'xhci_plat_renesas_rcar_gen2' defined but not used [-Wunused-const-variable=] 580 | static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen2 = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/host/xhci-exynos.c:575:36: warning: 'xhci_plat_marvell_armada3700' defined but not used [-Wunused-const-variable=] 575 | static const struct xhci_plat_priv xhci_plat_marvell_armada3700 = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/usb/host/xhci-exynos.c:571:36: warning: 'xhci_plat_marvell_armada' defined but not used [-Wunused-const-variable=] 571 | static const struct xhci_plat_priv xhci_plat_marvell_armada = { | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +146 drivers/usb/host/xhci-exynos.c 141 142 static void xhci_exynos_free_container_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx) 143 { 144 /* Ignore dma_pool_free if it is allocated from URAM */ 145 if (ctx->dma != EXYNOS_URAM_DEVICE_CTX_ADDR) > 146 dma_pool_free(xhci->device_pool, ctx->bytes, ctx->dma); 147 } 148 -- 0-DAY CI Kernel Test Service https://01.org/lkp