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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS 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 4BEA9C11F66 for ; Tue, 29 Jun 2021 14:16:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C626161DB3 for ; Tue, 29 Jun 2021 14:16:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C626161DB3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1BD3B8D0150; Tue, 29 Jun 2021 10:16:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 146D98D00F0; Tue, 29 Jun 2021 10:16:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F01FE8D0150; Tue, 29 Jun 2021 10:16:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0109.hostedemail.com [216.40.44.109]) by kanga.kvack.org (Postfix) with ESMTP id C96288D00F0 for ; Tue, 29 Jun 2021 10:16:43 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id B134B18085B72 for ; Tue, 29 Jun 2021 14:16:43 +0000 (UTC) X-FDA: 78306962286.17.347CF4A Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) by imf16.hostedemail.com (Postfix) with ESMTP id 5E40BF000091 for ; Tue, 29 Jun 2021 14:16:43 +0000 (UTC) Received: by mail-vk1-f170.google.com with SMTP id o198so4788837vkc.4 for ; Tue, 29 Jun 2021 07:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eCyYMpuRp9Tl8EsJfz5UQbRIMSUd1Cu/BXgez8IFDsY=; b=XU1y/4Hz6md5haBKV93rK72Eqs3scNprvYZs4aQVPvYTdzFFOOzNNaknvMX8mNrDUa Cdw9q4GdoScD5nFVn60KY1+Z5/0JonoxoSseo169LYHLeK8a5ydtUfmtyPKgaLCSVdoK QM0oTTr7vTVBKr1h/AcB/s7zh1HpC7PFzyOhTQrsqnuzELn94PZr66MSzy1g0wQQ9Adv crbBAoUNjd2LuC5VPR4G2HmotxHxc6CeQT7QtG5FC71kB86KONlgwkXYk4cSI/YFq6NL UPEjnX0whv3iHhaIb4DtmHxpgVazHODqp1aIcSeCv2NNEmAJVfmxkaL/SvJE7XRxjpcl DazA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eCyYMpuRp9Tl8EsJfz5UQbRIMSUd1Cu/BXgez8IFDsY=; b=sKO8HUqpOkP4EjYpsv3gsgGG5QQcu/hWD7loBhtnZCtK0tI5QeErq99lPAbc9ykOUM E8SFRmxTg60ihsm/6yS7U2svrzYRXFacZ+qanpIF0VmAHJJdU5C0iXrnZESYIouSI0Bp Nv/tV73tk/v7vtyfUovpzjMaQmtYepYOjqS4ZRBYSZ+6O9heDCgIT4TO+g+N5KBnSL4S Ce5MfhCBigW+h+ci4yP2J/eDhApY6MSvQcoZbGgcw73FSPCXeHIj20dBYDxeYFOmMUo5 q42Lhba7qFh0tBa4r+1f5SBydI9X+p9mpxm/U6VyhWNQAc7SrgPcR+bvRfRyXK98n9dA a2nA== X-Gm-Message-State: AOAM5309WED3ELUsmc8Lm380A31aooxvnpBAn+3YE3OZlPU+OluZihGm 7IUOCmQZvTsNQ+ft1X5kPURZgq8cuLtsGqyxPHM= X-Google-Smtp-Source: ABdhPJwALdp9tXyq71ILzWLjTVmWXnuw0Nesetvx37T3XN9sPnPMvewA9dp5S7V5NhsSLYHwbhnoRNTr/0RegaKe7qg= X-Received: by 2002:ac5:c4c1:: with SMTP id a1mr22047008vkl.18.1624976202517; Tue, 29 Jun 2021 07:16:42 -0700 (PDT) MIME-Version: 1.0 References: <202106292154.jnaieNvX-lkp@intel.com> In-Reply-To: <202106292154.jnaieNvX-lkp@intel.com> From: Sergio Paracuellos Date: Tue, 29 Jun 2021 16:16:30 +0200 Message-ID: Subject: Re: [linux-next:master 6546/14055] arch/mips/include/asm/mach-ralink/rt305x.h:18:23: error: 'RT305X_SOC_RT3050' undeclared To: kernel test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Linus Walleij Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="XU1y/4Hz"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf16.hostedemail.com: domain of sergioparacuellos@gmail.com designates 209.85.221.170 as permitted sender) smtp.mailfrom=sergioparacuellos@gmail.com X-Stat-Signature: 6m54jgwp1qmq3c1h3hbbsnfdh3pphu4d X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 5E40BF000091 X-HE-Tag: 1624976203-339330 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: Hi, On Tue, Jun 29, 2021 at 3:10 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 73748627df83aab934c81332ca83a44ab8c7b3e3 > commit: 3a1b0ca5a83b69f95ab9641ae0e77526a6fee384 [6546/14055] pinctrl: ralink: move RT305X SoC pinmux config into a new 'pinctrl-rt305x.c' file > config: mips-randconfig-c003-20210629 (attached as .config) > compiler: mipsel-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=3a1b0ca5a83b69f95ab9641ae0e77526a6fee384 > 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 3a1b0ca5a83b69f95ab9641ae0e77526a6fee384 > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=mips 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 >>): > > In file included from drivers/pinctrl/ralink/pinctrl-rt305x.c:3: > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3050': > >> arch/mips/include/asm/mach-ralink/rt305x.h:18:23: error: 'RT305X_SOC_RT3050' undeclared (first use in this function) > 18 | return ralink_soc == RT305X_SOC_RT3050; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:18:23: note: each undeclared identifier is reported only once for each function it appears in > >> arch/mips/include/asm/mach-ralink/rt305x.h:18:2: error: 'ralink_soc' has an incomplete type 'enum ralink_soc_type' > 18 | return ralink_soc == RT305X_SOC_RT3050; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3052': > >> arch/mips/include/asm/mach-ralink/rt305x.h:23:23: error: 'RT305X_SOC_RT3052' undeclared (first use in this function) > 23 | return ralink_soc == RT305X_SOC_RT3052; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:23:2: error: 'ralink_soc' has an incomplete type 'enum ralink_soc_type' > 23 | return ralink_soc == RT305X_SOC_RT3052; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3350': > >> arch/mips/include/asm/mach-ralink/rt305x.h:33:23: error: 'RT305X_SOC_RT3350' undeclared (first use in this function) > 33 | return ralink_soc == RT305X_SOC_RT3350; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:33:2: error: 'ralink_soc' has an incomplete type 'enum ralink_soc_type' > 33 | return ralink_soc == RT305X_SOC_RT3350; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3352': > >> arch/mips/include/asm/mach-ralink/rt305x.h:38:23: error: 'RT305X_SOC_RT3352' undeclared (first use in this function) > 38 | return ralink_soc == RT305X_SOC_RT3352; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:38:2: error: 'ralink_soc' has an incomplete type 'enum ralink_soc_type' > 38 | return ralink_soc == RT305X_SOC_RT3352; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt5350': > >> arch/mips/include/asm/mach-ralink/rt305x.h:43:23: error: 'RT305X_SOC_RT5350' undeclared (first use in this function) > 43 | return ralink_soc == RT305X_SOC_RT5350; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:43:2: error: 'ralink_soc' has an incomplete type 'enum ralink_soc_type' > 43 | return ralink_soc == RT305X_SOC_RT5350; > | ^~~~~~ > In file included from drivers/pinctrl/ralink/pinctrl-rt305x.c:3: > arch/mips/include/asm/mach-ralink/rt305x.h:44:1: error: control reaches end of non-void function [-Werror=return-type] > 44 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3050': > arch/mips/include/asm/mach-ralink/rt305x.h:19:1: error: control reaches end of non-void function [-Werror=return-type] > 19 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3052': > arch/mips/include/asm/mach-ralink/rt305x.h:24:1: error: control reaches end of non-void function [-Werror=return-type] > 24 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3350': > arch/mips/include/asm/mach-ralink/rt305x.h:34:1: error: control reaches end of non-void function [-Werror=return-type] > 34 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3352': > arch/mips/include/asm/mach-ralink/rt305x.h:39:1: error: control reaches end of non-void function [-Werror=return-type] > 39 | } > | ^ > cc1: some warnings being treated as errors There is a missing include after creating the file 'drivers/pinctrl/ralink/pinctrl-rt305x.c': #include Previous to this move, 'arch/mips/ralink/rt305x.c' was including '' and before this include in the same C file '' is being included. I don't know why this is being including in C file and not in the header itself. So to be coherent we should add the include in the new 'drivers/pinctrl/ralink/pinctrl-rt305x.c' as follows: diff --git a/drivers/pinctrl/ralink/pinctrl-rt305x.c b/drivers/pinctrl/ralink/pinctrl-rt305x.c index 699fe18e7000..5d8fa156c003 100644 --- a/drivers/pinctrl/ralink/pinctrl-rt305x.c +++ b/drivers/pinctrl/ralink/pinctrl-rt305x.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only +#include #include #include #include This should fix the problem. Maybe there is a better solution... Linus, what do you think? Best regards, Sergio Paracuellos > > > vim +/RT305X_SOC_RT3050 +18 arch/mips/include/asm/mach-ralink/rt305x.h > > 2809b31770d7fd John Crispin 2013-01-20 15 > 2809b31770d7fd John Crispin 2013-01-20 16 static inline int soc_is_rt3050(void) > 2809b31770d7fd John Crispin 2013-01-20 17 { > 418d29c8706170 John Crispin 2015-11-04 @18 return ralink_soc == RT305X_SOC_RT3050; > 2809b31770d7fd John Crispin 2013-01-20 19 } > 2809b31770d7fd John Crispin 2013-01-20 20 > 2809b31770d7fd John Crispin 2013-01-20 21 static inline int soc_is_rt3052(void) > 2809b31770d7fd John Crispin 2013-01-20 22 { > 418d29c8706170 John Crispin 2015-11-04 @23 return ralink_soc == RT305X_SOC_RT3052; > 2809b31770d7fd John Crispin 2013-01-20 24 } > 2809b31770d7fd John Crispin 2013-01-20 25 > 2809b31770d7fd John Crispin 2013-01-20 26 static inline int soc_is_rt305x(void) > 2809b31770d7fd John Crispin 2013-01-20 27 { > 2809b31770d7fd John Crispin 2013-01-20 28 return soc_is_rt3050() || soc_is_rt3052(); > 2809b31770d7fd John Crispin 2013-01-20 29 } > 2809b31770d7fd John Crispin 2013-01-20 30 > 2809b31770d7fd John Crispin 2013-01-20 31 static inline int soc_is_rt3350(void) > 2809b31770d7fd John Crispin 2013-01-20 32 { > 418d29c8706170 John Crispin 2015-11-04 @33 return ralink_soc == RT305X_SOC_RT3350; > 2809b31770d7fd John Crispin 2013-01-20 34 } > 2809b31770d7fd John Crispin 2013-01-20 35 > 2809b31770d7fd John Crispin 2013-01-20 36 static inline int soc_is_rt3352(void) > 2809b31770d7fd John Crispin 2013-01-20 37 { > 418d29c8706170 John Crispin 2015-11-04 @38 return ralink_soc == RT305X_SOC_RT3352; > 2809b31770d7fd John Crispin 2013-01-20 39 } > 2809b31770d7fd John Crispin 2013-01-20 40 > 2809b31770d7fd John Crispin 2013-01-20 41 static inline int soc_is_rt5350(void) > 2809b31770d7fd John Crispin 2013-01-20 42 { > 418d29c8706170 John Crispin 2015-11-04 @43 return ralink_soc == RT305X_SOC_RT5350; > 2809b31770d7fd John Crispin 2013-01-20 44 } > 2809b31770d7fd John Crispin 2013-01-20 45 > > :::::: The code at line 18 was first introduced by commit > :::::: 418d29c8706170c6801998e48341181b274a47a8 MIPS: ralink: Unify SoC id handling > > :::::: TO: John Crispin > :::::: CC: Ralf Baechle > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3968536370557398939==" MIME-Version: 1.0 From: Sergio Paracuellos To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 6546/14055] arch/mips/include/asm/mach-ralink/rt305x.h:18:23: error: 'RT305X_SOC_RT3050' undeclared Date: Tue, 29 Jun 2021 16:16:30 +0200 Message-ID: In-Reply-To: <202106292154.jnaieNvX-lkp@intel.com> List-Id: --===============3968536370557398939== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, On Tue, Jun 29, 2021 at 3:10 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 73748627df83aab934c81332ca83a44ab8c7b3e3 > commit: 3a1b0ca5a83b69f95ab9641ae0e77526a6fee384 [6546/14055] pinctrl: ra= link: move RT305X SoC pinmux config into a new 'pinctrl-rt305x.c' file > config: mips-randconfig-c003-20210629 (attached as .config) > compiler: mipsel-linux-gcc (GCC) 9.3.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/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=3D3a1b0ca5a83b69f95ab9641ae0e77526a6fee384 > git remote add linux-next https://git.kernel.org/pub/scm/linux/ke= rnel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout 3a1b0ca5a83b69f95ab9641ae0e77526a6fee384 > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-9.3.0 make.cros= s O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > In file included from drivers/pinctrl/ralink/pinctrl-rt305x.c:3: > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3050= ': > >> arch/mips/include/asm/mach-ralink/rt305x.h:18:23: error: 'RT305X_SOC_R= T3050' undeclared (first use in this function) > 18 | return ralink_soc =3D=3D RT305X_SOC_RT3050; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:18:23: note: each undeclare= d identifier is reported only once for each function it appears in > >> arch/mips/include/asm/mach-ralink/rt305x.h:18:2: error: 'ralink_soc' h= as an incomplete type 'enum ralink_soc_type' > 18 | return ralink_soc =3D=3D RT305X_SOC_RT3050; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3052= ': > >> arch/mips/include/asm/mach-ralink/rt305x.h:23:23: error: 'RT305X_SOC_R= T3052' undeclared (first use in this function) > 23 | return ralink_soc =3D=3D RT305X_SOC_RT3052; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:23:2: error: 'ralink_soc' h= as an incomplete type 'enum ralink_soc_type' > 23 | return ralink_soc =3D=3D RT305X_SOC_RT3052; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3350= ': > >> arch/mips/include/asm/mach-ralink/rt305x.h:33:23: error: 'RT305X_SOC_R= T3350' undeclared (first use in this function) > 33 | return ralink_soc =3D=3D RT305X_SOC_RT3350; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:33:2: error: 'ralink_soc' h= as an incomplete type 'enum ralink_soc_type' > 33 | return ralink_soc =3D=3D RT305X_SOC_RT3350; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3352= ': > >> arch/mips/include/asm/mach-ralink/rt305x.h:38:23: error: 'RT305X_SOC_R= T3352' undeclared (first use in this function) > 38 | return ralink_soc =3D=3D RT305X_SOC_RT3352; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:38:2: error: 'ralink_soc' h= as an incomplete type 'enum ralink_soc_type' > 38 | return ralink_soc =3D=3D RT305X_SOC_RT3352; > | ^~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt5350= ': > >> arch/mips/include/asm/mach-ralink/rt305x.h:43:23: error: 'RT305X_SOC_R= T5350' undeclared (first use in this function) > 43 | return ralink_soc =3D=3D RT305X_SOC_RT5350; > | ^~~~~~~~~~~~~~~~~ > arch/mips/include/asm/mach-ralink/rt305x.h:43:2: error: 'ralink_soc' h= as an incomplete type 'enum ralink_soc_type' > 43 | return ralink_soc =3D=3D RT305X_SOC_RT5350; > | ^~~~~~ > In file included from drivers/pinctrl/ralink/pinctrl-rt305x.c:3: > arch/mips/include/asm/mach-ralink/rt305x.h:44:1: error: control reache= s end of non-void function [-Werror=3Dreturn-type] > 44 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3050= ': > arch/mips/include/asm/mach-ralink/rt305x.h:19:1: error: control reache= s end of non-void function [-Werror=3Dreturn-type] > 19 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3052= ': > arch/mips/include/asm/mach-ralink/rt305x.h:24:1: error: control reache= s end of non-void function [-Werror=3Dreturn-type] > 24 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3350= ': > arch/mips/include/asm/mach-ralink/rt305x.h:34:1: error: control reache= s end of non-void function [-Werror=3Dreturn-type] > 34 | } > | ^ > arch/mips/include/asm/mach-ralink/rt305x.h: In function 'soc_is_rt3352= ': > arch/mips/include/asm/mach-ralink/rt305x.h:39:1: error: control reache= s end of non-void function [-Werror=3Dreturn-type] > 39 | } > | ^ > cc1: some warnings being treated as errors There is a missing include after creating the file 'drivers/pinctrl/ralink/pinctrl-rt305x.c': #include Previous to this move, 'arch/mips/ralink/rt305x.c' was including '' and before this include in the same C file '' is being included. I don't know why this is being including in C file and not in the header itself. So to be coherent we should add the include in the new 'drivers/pinctrl/ralink/pinctrl-rt305x.c' as follows: diff --git a/drivers/pinctrl/ralink/pinctrl-rt305x.c b/drivers/pinctrl/ralink/pinctrl-rt305x.c index 699fe18e7000..5d8fa156c003 100644 --- a/drivers/pinctrl/ralink/pinctrl-rt305x.c +++ b/drivers/pinctrl/ralink/pinctrl-rt305x.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only +#include #include #include #include This should fix the problem. Maybe there is a better solution... Linus, what do you think? Best regards, Sergio Paracuellos > > > vim +/RT305X_SOC_RT3050 +18 arch/mips/include/asm/mach-ralink/rt305x.h > > 2809b31770d7fd John Crispin 2013-01-20 15 > 2809b31770d7fd John Crispin 2013-01-20 16 static inline int soc_is_rt30= 50(void) > 2809b31770d7fd John Crispin 2013-01-20 17 { > 418d29c8706170 John Crispin 2015-11-04 @18 return ralink_soc =3D=3D = RT305X_SOC_RT3050; > 2809b31770d7fd John Crispin 2013-01-20 19 } > 2809b31770d7fd John Crispin 2013-01-20 20 > 2809b31770d7fd John Crispin 2013-01-20 21 static inline int soc_is_rt30= 52(void) > 2809b31770d7fd John Crispin 2013-01-20 22 { > 418d29c8706170 John Crispin 2015-11-04 @23 return ralink_soc =3D=3D = RT305X_SOC_RT3052; > 2809b31770d7fd John Crispin 2013-01-20 24 } > 2809b31770d7fd John Crispin 2013-01-20 25 > 2809b31770d7fd John Crispin 2013-01-20 26 static inline int soc_is_rt30= 5x(void) > 2809b31770d7fd John Crispin 2013-01-20 27 { > 2809b31770d7fd John Crispin 2013-01-20 28 return soc_is_rt3050() ||= soc_is_rt3052(); > 2809b31770d7fd John Crispin 2013-01-20 29 } > 2809b31770d7fd John Crispin 2013-01-20 30 > 2809b31770d7fd John Crispin 2013-01-20 31 static inline int soc_is_rt33= 50(void) > 2809b31770d7fd John Crispin 2013-01-20 32 { > 418d29c8706170 John Crispin 2015-11-04 @33 return ralink_soc =3D=3D = RT305X_SOC_RT3350; > 2809b31770d7fd John Crispin 2013-01-20 34 } > 2809b31770d7fd John Crispin 2013-01-20 35 > 2809b31770d7fd John Crispin 2013-01-20 36 static inline int soc_is_rt33= 52(void) > 2809b31770d7fd John Crispin 2013-01-20 37 { > 418d29c8706170 John Crispin 2015-11-04 @38 return ralink_soc =3D=3D = RT305X_SOC_RT3352; > 2809b31770d7fd John Crispin 2013-01-20 39 } > 2809b31770d7fd John Crispin 2013-01-20 40 > 2809b31770d7fd John Crispin 2013-01-20 41 static inline int soc_is_rt53= 50(void) > 2809b31770d7fd John Crispin 2013-01-20 42 { > 418d29c8706170 John Crispin 2015-11-04 @43 return ralink_soc =3D=3D = RT305X_SOC_RT5350; > 2809b31770d7fd John Crispin 2013-01-20 44 } > 2809b31770d7fd John Crispin 2013-01-20 45 > > :::::: The code at line 18 was first introduced by commit > :::::: 418d29c8706170c6801998e48341181b274a47a8 MIPS: ralink: Unify SoC i= d handling > > :::::: TO: John Crispin > :::::: CC: Ralf Baechle > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3968536370557398939==--