Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1054131pxu; Thu, 17 Dec 2020 00:35:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPT/WalBN5PpmUzCo0Hcbg0Z6P0+1JUgDuJ67YhhnFfeMLR79wUnws8xzunjAfU1fn9lMP X-Received: by 2002:a17:906:1498:: with SMTP id x24mr33304443ejc.170.1608194158337; Thu, 17 Dec 2020 00:35:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608194158; cv=none; d=google.com; s=arc-20160816; b=GshqQ1mRnXaq6Jo8O+CooyXj0J9gOssnOyrMaexh1j7YzYND5qQsgIcr9PWqnpWqww /oPeETAZmQHk2V/W+soOZtwMCMyBxpmuwUxrkeLTEZFkq93WIFeS2zyy1Z5a2nXe1QWV XbTQ4cwuZybX7LD/YBKf3+rkhb7h4oePr61Qavkp13Gq5poi1kVnC0huJshhxFVAmXw8 lWWwqJ9oNwnTQMh/q83p+CBjbTwTdcTI6fmODKrTPt5Jd/IT4QL0IUqhDUonEMr8qwIq RhYSEfaLXCJD1JGaH6lAtdrhRHnhnxwv3FxqOHm9jPZTO2oKgNDtMB4uGJAN0R38/i2l d+Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=thhaLAgz45LXgVBC1/MqGvib+cCHCRwUvsuzHaYFmDY=; b=LC/Lbc8fSYFd3jY7QB7ktiSs/RPQAGpT4n8pcOaBTaGYIe/67FalCtKNP8P4xbvsus C8wwUUQKQqXBWKyyNVP04dmjItCZ1Dgvc9OMsyIp9rHS+oatpYey5GAgu/U42IXzvOVE EeGk0j0iWHQi84VhjgKGN2sxvnJngYEn+sAwg7u1oePFqJd7TmSHvLSEKwDKQYBA9a+V 5ZiriIBZac3D7RiMnLNDl7sWHEOF6Bpp4NFKaKek5YttpfIMyUd4mjIstnUi+iTHz28S uGcM60Bl7sfld/sFHsNhFCGFV0+XN+4N8UFnkukq58IIls8u2GW2q9yVMw/Ry3D7FhMs xWvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z6ySiqna; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si2194155eji.137.2020.12.17.00.35.36; Thu, 17 Dec 2020 00:35:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z6ySiqna; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727392AbgLQIef (ORCPT + 99 others); Thu, 17 Dec 2020 03:34:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726908AbgLQIee (ORCPT ); Thu, 17 Dec 2020 03:34:34 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D9C0C061794 for ; Thu, 17 Dec 2020 00:33:54 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id l207so31377706oib.4 for ; Thu, 17 Dec 2020 00:33:54 -0800 (PST) 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=thhaLAgz45LXgVBC1/MqGvib+cCHCRwUvsuzHaYFmDY=; b=Z6ySiqnaq/KVj1rPuvXEBmxhjzhgTIM1jas9qc78gT9zkl9CCnAb80b2nzXnrjQJRg d9/z0MT0RF16htAcEbZVWhjnmik6I0d+iGAgpit9+ZEjPBZmRmbfT7CGu2oGquxHF7V7 yqn8HnzyhmZNkNS09pm5jPANdyxcsvTHmU8LzAp08ebxEQcHq8D4kdzKj++uwLlsdyNs umKYbpp9jjDoy/roRg0YfmRtMZEnr9wQdGJjGc6bFMQgDbKtk7rIThufxD8LyYx/xi4o o32ToztJzw0mPz5EoyWQfsJQG+VqAflbXZTeDYR3CrWzhBSpXf2qjCrsOCdCzST4qUf2 u85g== 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=thhaLAgz45LXgVBC1/MqGvib+cCHCRwUvsuzHaYFmDY=; b=KsqAUkX4TDKikDjq6xJ/pfAyWOdlWUowZQ6rSv3KKLC6U9aOTppnOavzrb2UimErg2 ViusEgCeMw7expab2TstAzcAE4v8MOSxHX8Si6BZmuKcV86s21nVrk+2jZd4jGInDLpG cJsbWxaGGMlVCukOzTKH2SBpXlHLF6iGxUxDOBfGDQ/y+IPICfgb/5ZgOODw/qoBGOfa s9ki7j7PwPkOexDR4snIlTRihzogTpcNhRxlkldEJ0FBxmmpj7XxI2Eg3ZKfwJMPmyqS eCGrmBfNmfoOCrDS3zcBs+Peni8gAWbGHLo31SM/wQ+e1Uo0z28TmEdr2xBioTrlwMvi 1J/Q== X-Gm-Message-State: AOAM530XogzURQfeka/nL/yJpALmL/uxpk9WGyD1x2i5yCBxg6iVygmC BUHmGqb5W1mCoAfqTC1GW753Jpx1Ps27VM2+ZRmJTdRODq4= X-Received: by 2002:a54:4817:: with SMTP id j23mr4290303oij.158.1608194033914; Thu, 17 Dec 2020 00:33:53 -0800 (PST) MIME-Version: 1.0 References: <202012171008.TsSBPhT7-lkp@intel.com> In-Reply-To: <202012171008.TsSBPhT7-lkp@intel.com> From: Sergio Paracuellos Date: Thu, 17 Dec 2020 09:33:43 +0100 Message-ID: Subject: Re: drivers/pinctrl/ralink/pinctrl-rt2880.c:365:12: warning: no previous prototype for 'rt2880_pinmux_init' To: kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel , Greg Kroah-Hartman , Linus Walleij Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Dec 17, 2020 at 3:17 AM kernel test robot wrote: > > Hi Sergio, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: accefff5b547a9a1d959c7e76ad539bf2480e78b > commit: 518b466a21ad7fa1e338fa4ed9d180ef439d3bc0 pinctrl: ralink: add a pinctrl driver for the rt2880 family > date: 9 days ago > config: mips-randconfig-r025-20201217 (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/torvalds/linux.git/commit/?id=518b466a21ad7fa1e338fa4ed9d180ef439d3bc0 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 518b466a21ad7fa1e338fa4ed9d180ef439d3bc0 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> drivers/pinctrl/ralink/pinctrl-rt2880.c:365:12: warning: no previous prototype for 'rt2880_pinmux_init' [-Wmissing-prototypes] > 365 | int __init rt2880_pinmux_init(void) > | ^~~~~~~~~~~~~~~~~~ > > > vim +/rt2880_pinmux_init +365 drivers/pinctrl/ralink/pinctrl-rt2880.c > > 0317d60de869786 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c John Crispin 2018-03-15 364 > 1d2d116a93f0e9b drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c Sergio Paracuellos 2018-07-09 @365 int __init rt2880_pinmux_init(void) > 1d2d116a93f0e9b drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c Sergio Paracuellos 2018-07-09 366 { > 1d2d116a93f0e9b drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c Sergio Paracuellos 2018-07-09 367 return platform_driver_register(&rt2880_pinmux_driver); > 1d2d116a93f0e9b drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c Sergio Paracuellos 2018-07-09 368 } > 1d2d116a93f0e9b drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c Sergio Paracuellos 2018-07-09 369 Yes, there is no such prototype for this global. This should be declared 'static' instead as it is only used from this driver code using 'core_initcall_sync'. Will send a patch with this change. CC'ed Linus because this driver is in his subsystem now. > > :::::: The code at line 365 was first introduced by commit > :::::: 1d2d116a93f0e9bf0bca72da76a96edef8a1d36d Revert "staging: mt7621-pinctrl: replace core_initcall_sync with builtin_platform_driver" Not really, it was there from the very beginning but I made a change to try to use this in a later stage in the boot process without success. Thus, this commit is the revert for that one. > > :::::: TO: Sergio Paracuellos > :::::: CC: Greg Kroah-Hartman > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Best regards, Sergio Paracuellos