Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5306304pxv; Wed, 21 Jul 2021 02:13:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSexnQ8SOxx5tdL7stLkT5OHXkuys1Rzwj8XeACeYxW6BLZU8HXJnFmYoqSKf1Asve8F6f X-Received: by 2002:a05:6638:13ca:: with SMTP id i10mr26425703jaj.90.1626858817942; Wed, 21 Jul 2021 02:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626858817; cv=none; d=google.com; s=arc-20160816; b=sllDaPNNQ3+KEgc1utHzbPWaucMmgMzFVCfMIdIy6mDorFHmbGgBSEaxEGe4bohv3N JMQJHWhJEOY2SFAXOYNISa2MioGQeUgZDhtHHy0aACTLQ/86m+DaKgYbDlJNwy2QqYzm Tn4Hngi9kaCzhf6LQII9TDAxFG/iSxrINYiSB50YbChngfaTY74+4ATEj69YekDjBq+i eyzPW+CSULOqNANFupWrPRC7xmI8J7tLSs19hrZ/YGDh2A8gKWEhzxOMRlrG3Sffqgqx PY3ieFC3LewGnOPW5j+J0vT6JZ+cSevn7+TK1XtTgPyB41CwgNR7D0jEMrtN/t2v2UUi +IqA== 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=NznU6xKs/9iKJoPj5kORi+c1038vgtLi4Nu5X7STyDI=; b=hl08UFr2qfEK0hv9FT1B87q7k1a4a3cPxjn3MZXOSIDAfwFx2hM7F29VNyAK25zvAa B00RVWHSm79ZnFVwry/CVWljE7JLnFeguNnpWwwAOHtI/WlzX1Oht98si8jvp7xh8VzS NJ25pPs7DfZ1eemiuPNhxuNLPSNGpIl9s7XxdWnXO5awH82vyeB+lhokR91SqHQ5Z9dJ FIKiAcJhLXxq6Xmqf8cFE/R64L7kacozOP1sCyirY9jHc/YukrgyUK8tn/Xz9oI6bgL9 CEGMpMzbXKmJKdx8J5WEedV4lnQmznAdbaD21tFoDdmVCzgyna8Uj5in8AyUI4MJMw0b 8Isg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=VhDRil+W; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si16394172iln.90.2021.07.21.02.13.26; Wed, 21 Jul 2021 02:13:37 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=VhDRil+W; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237062AbhGUI2C (ORCPT + 99 others); Wed, 21 Jul 2021 04:28:02 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:50930 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237562AbhGUISg (ORCPT ); Wed, 21 Jul 2021 04:18:36 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 616251FE7D; Wed, 21 Jul 2021 08:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1626857952; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NznU6xKs/9iKJoPj5kORi+c1038vgtLi4Nu5X7STyDI=; b=VhDRil+WfKukoxDEG3BpPDiQJGGWI8U97xtg/7+WRZ4bCPSKbFsTnFp6IsZ3m4lWpbYOyT 0a8EBT67dVP+c/CXK5DINfWiYbtSLgrgSyroYGIjihznsNYnDkuVZ54AHpnleSay8lVUrW HeWwHsxZrfqueoa7JaeI5Odqn3RQHoc= Received: from suse.cz (pathway.suse.cz [10.100.12.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 4135DA3B88; Wed, 21 Jul 2021 08:59:12 +0000 (UTC) Date: Wed, 21 Jul 2021 10:59:12 +0200 From: Petr Mladek To: Chris Down Cc: kernel test robot , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [printk:for-5.15-printk-index 4/5] kernel/printk/index.c:140:6: warning: no previous prototype for 'pi_create_file' Message-ID: <20210721085912.3hsjrmumqfy6fx3k@pathway.suse.cz> References: <202107192303.qeABbFBe-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170912 (1.9.0) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2021-07-20 13:02:33, Chris Down wrote: > kernel test robot writes: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git for-5.15-printk-index > > head: ad7d61f159db73974f1b0352f21afe04b0bbd920 > > commit: 337015573718b161891a3473d25f59273f2e626b [4/5] printk: Userspace format indexing support > > config: arc-allyesconfig (attached as .config) > > compiler: arceb-elf-gcc (GCC) 10.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/printk/linux.git/commit/?id=337015573718b161891a3473d25f59273f2e626b > > git remote add printk https://git.kernel.org/pub/scm/linux/kernel/git/printk/linux.git > > git fetch --no-tags printk for-5.15-printk-index > > git checkout 337015573718b161891a3473d25f59273f2e626b > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > > > kernel/printk/index.c:140:6: warning: no previous prototype for 'pi_create_file' [-Wmissing-prototypes] > > 140 | void pi_create_file(struct module *mod) > > | ^~~~~~~~~~~~~~ > > > > kernel/printk/index.c:146:6: warning: no previous prototype for 'pi_remove_file' [-Wmissing-prototypes] > > 146 | void pi_remove_file(struct module *mod) > > | ^~~~~~~~~~~~~~ > > Ah, I missed `static inline', which causes the compiler to think we want to > export it even though we don't. > > diff --git kernel/printk/index.c kernel/printk/index.c > index ca062f5e1779..e340e0a8b847 100644 > --- kernel/printk/index.c > +++ kernel/printk/index.c > @@ -137,13 +137,13 @@ static const char *pi_get_module_name(struct module *mod) > } > #endif > -void pi_create_file(struct module *mod) > +static inline void pi_create_file(struct module *mod) > { > debugfs_create_file(pi_get_module_name(mod), 0444, dfs_index, > mod, &dfs_index_fops); > } > -void pi_remove_file(struct module *mod) > +static inline void pi_remove_file(struct module *mod) > { > debugfs_remove(debugfs_lookup(pi_get_module_name(mod), dfs_index)); > } Chris, please send this one as a proper patch as well. Best Regards, Petr