From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD78EC433E0 for ; Mon, 18 Jan 2021 20:40:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3ABA422B39 for ; Mon, 18 Jan 2021 20:40:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3ABA422B39 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7CFF68D0028; Mon, 18 Jan 2021 15:40:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7806E8D0017; Mon, 18 Jan 2021 15:40:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 649878D0028; Mon, 18 Jan 2021 15:40:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0153.hostedemail.com [216.40.44.153]) by kanga.kvack.org (Postfix) with ESMTP id 4F9B48D0017 for ; Mon, 18 Jan 2021 15:40:48 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 11513181AF5D0 for ; Mon, 18 Jan 2021 20:40:48 +0000 (UTC) X-FDA: 77720064576.19.plot20_0a144e42754c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id D529B1ACEBC for ; Mon, 18 Jan 2021 20:40:47 +0000 (UTC) X-HE-Tag: plot20_0a144e42754c X-Filterd-Recvd-Size: 5897 Received: from so254-31.mailgun.net (so254-31.mailgun.net [198.61.254.31]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 Jan 2021 20:40:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1611002447; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=Ij+Rt8ALR5YQer/UfcPtOK3K5o2QFg12Fp1bH1tWkLM=; b=K4T53+7YIKMvG6ARTLHWgUlAtZhRAflkFzCaRZ/L9dio8I1yQTsLFVuWrSH6rIY3A2F+JuPM p6gIuZJxO1IHLSYFTZK7WvvlMxILY9h5LhcYGxyCkd6l87mrRINHOepgnVj3UrRPmHeyrXDx ZBiCH2rKtxJ6CalRjlM59cfHl5Y= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyIwY2Q3OCIsICJsaW51eC1tbUBrdmFjay5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 6005f24e75e5c01cba876ef6 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 18 Jan 2021 20:40:46 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3B73DC43461; Mon, 18 Jan 2021 20:40:46 +0000 (UTC) Received: from jackp-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jackp) by smtp.codeaurora.org (Postfix) with ESMTPSA id 30F67C433CA; Mon, 18 Jan 2021 20:40:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 30F67C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=jackp@codeaurora.org Date: Mon, 18 Jan 2021 12:40:40 -0800 From: Jack Pham To: kernel test robot , Greg Kroah-Hartman , Heikki Krogerus Cc: Mayank Rana , kbuild-all@lists.01.org, Linux Memory Management List Subject: Re: [linux-next:master 2519/4500] ucsi.c:undefined reference to `fwnode_usb_role_switch_get' Message-ID: <20210118204040.GA19773@jackp-linux.qualcomm.com> References: <202101181814.rQtj0Eqo-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202101181814.rQtj0Eqo-lkp@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Jan 18, 2021 at 06:52:23PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 93bf8b946e5f9a0b0c68155597b53fd8ccce2827 > commit: 89795852c9c46b9b0701f7376d30a1c5ab4d146c [2519/4500] usb: typec: ucsi: Add support for USB role switch > config: nios2-randconfig-m031-20210118 (attached as .config) > compiler: nios2-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=89795852c9c46b9b0701f7376d30a1c5ab4d146c > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 89795852c9c46b9b0701f7376d30a1c5ab4d146c > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > nios2-linux-ld: drivers/usb/typec/ucsi/ucsi.o: in function `ucsi_register_port': > >> ucsi.c:(.text+0x15a8): undefined reference to `fwnode_usb_role_switch_get' > ucsi.c:(.text+0x15a8): relocation truncated to fit: R_NIOS2_CALL26 against `fwnode_usb_role_switch_get' > >> nios2-linux-ld: ucsi.c:(.text+0x15e8): undefined reference to `usb_role_switch_set_role' > ucsi.c:(.text+0x15e8): relocation truncated to fit: R_NIOS2_CALL26 against `usb_role_switch_set_role' > nios2-linux-ld: drivers/usb/typec/ucsi/ucsi.o: in function `ucsi_handle_connector_change': > >> ucsi.c:(.text+0x1b50): undefined reference to `usb_role_switch_set_role' > ucsi.c:(.text+0x1b50): relocation truncated to fit: R_NIOS2_CALL26 against `usb_role_switch_set_role' > nios2-linux-ld: ucsi.c:(.text+0x1c28): undefined reference to `usb_role_switch_set_role' > ucsi.c:(.text+0x1c28): relocation truncated to fit: R_NIOS2_CALL26 against `usb_role_switch_set_role' > > Kconfig warnings: (for reference only) > WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE > Depends on TTY && HAS_IOMEM > Selected by > - EARLY_PRINTK > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org I have no clue about the nios2, so not sure if this is an arch-specific linker error or not. Hmm but the .config has the following: CONFIG_TYPEC_UCSI=y CONFIG_USB_ROLE_SWITCH=m So I'm guessing this patch also requires a Kconfig change to disallow the above combination? If so, should UCSI have a "depends" or a "select" on USB_ROLE_SWITCH? Jack -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project