Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1755195ybl; Wed, 28 Aug 2019 21:09:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAe7S8Jlbsh7cU+wHId+xQxrB0SLZOBMLtnr6LtfX3hcDmsxg8oqjeuqQBO60gsASQFyOO X-Received: by 2002:aa7:9112:: with SMTP id 18mr8789004pfh.127.1567051774059; Wed, 28 Aug 2019 21:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567051774; cv=none; d=google.com; s=arc-20160816; b=f2X/YIn96NapRDHDB46v9dACo6A2k7vBXfMcopBZJEGTdijYZNMfs6se+qjvyPA73j kOjZ6q3orlisDMjMjDrJqC03c8LxVh/j0KbxxVZvTX7Z+7kJS5DDxWM5VLXe/8s85+LD gfK8O2fqJPlTCKtXw4GXkMdvfKhTwUoYF82KbrN5vQxkhem7zj16EkqwWFKYPydrMbV/ UjtN81Y4PRpmxSYw5xEn6kGX7MTP3yk/11QWmoJSrYFqoTS1STXSpxXRl94eSkx1z2Ss HEtneCbykxAhNYWOHPcNvXdvvd5H93k+HV7Dwv2V8mHXBzv2uEc79TPdJLhgrq3qd6Ll P6sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=VbCytSg5po/6DaxZjHGts8lrU3Y+B51Amx6p+Gq+T0c=; b=w5Dt/uulS2ag8FPxPlz8qAvbpHsJACW6KbkYhPTx21SdjUOttmGSTytja5euuXzlZG qKjTHZDZjT+V6PTzdjuVp5DTw9/qdMaBzlKjpvl5XjgH9o718wnTvooadWvfG7g5pu+V +DfJeDMI/JqdyD22kp3d8bZvsOm4Pj58ZNO2udeUiuky8AFxHa3/WoAQHzTWm+hVhXOw nb4Qu6rW/mHoJIDNkV2fkToHR426ELjhrxy9GubxEioiEJ7fVbeQRH1ujPxLzpaiy5Av eZg+lqZR7+/g2PpNKDPpBik6Xj6DrtKfiMSmXDgpajYNTzcPIX+DQ/qkhmBsf7Jirb+w el2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=EGnf5BXO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s18si1284440pfd.73.2019.08.28.21.09.18; Wed, 28 Aug 2019 21:09:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=EGnf5BXO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbfH2EIb (ORCPT + 99 others); Thu, 29 Aug 2019 00:08:31 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:45423 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfH2EIb (ORCPT ); Thu, 29 Aug 2019 00:08:31 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46Jpxm6mc8z9sBp; Thu, 29 Aug 2019 14:08:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1567051709; bh=V594ezHRVBgHby2RxzNrXyfkuC0Hrx0Pn6E+PGG67L4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EGnf5BXOID37/RjbUsYEbphS+MA/Cz+qKUujDaz8ZwbOlmAmkKchj0TTvl7VMF92n m75G8pQ0Se9ezhdBPC6dDFoNlmyHegGTnz4su1my4xKiyJtg63Nl4rPEXP+UCArCMi 0Zy8eWuK4u6uY8q6CfXfSI4i7orqKTicwX1wNy+USuNB7ioUcANbXjdlmVwM5wXlb3 R3gS06Ss6KYtsmrUEZ+x4yZD+17EEbJe6NRk1tJYQz+O7Nh8YWte949AMotp2485qW BDgFyJIrRvoN86iHPV2zabzQs7YOvovfzC7Af9NQJrjcEttVQfc0qjEzH5TYxxStB8 eUqJ13znukxBw== Date: Thu, 29 Aug 2019 14:08:28 +1000 From: Stephen Rothwell To: Jens Axboe Cc: Linux Next Mailing List , Linux Kernel Mailing List , Tejun Heo Subject: Re: linux-next: build warning after merge of the block tree Message-ID: <20190829140828.39e05c27@canb.auug.org.au> In-Reply-To: <20190829135150.4f0e533a@canb.auug.org.au> References: <20190829135150.4f0e533a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/LPEdhd6/ifEKkTjJu1CE_N."; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/LPEdhd6/ifEKkTjJu1CE_N. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Thu, 29 Aug 2019 13:51:50 +1000 Stephen Rothwell = wrote: > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: >=20 > In file included from include/trace/events/iocost.h:8, > from : > include/trace/events/iocost.h:12:57: warning: 'struct ioc_now' declared i= nside parameter list will not be visible outside of this definition or decl= aration > TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, > ^~~~~~~ > include/linux/tracepoint.h:233:34: note: in definition of macro '__DECLAR= E_TRACE' > static inline void trace_##name(proto) \ > ^~~~~ > include/linux/tracepoint.h:396:24: note: in expansion of macro 'PARAMS' > __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ > ^~~~~~ > include/linux/tracepoint.h:532:2: note: in expansion of macro 'DECLARE_TR= ACE' > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~~~~~~~~ > include/linux/tracepoint.h:532:22: note: in expansion of macro 'PARAMS' > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~ > include/trace/events/iocost.h:10:1: note: in expansion of macro 'TRACE_EV= ENT' > TRACE_EVENT(iocost_iocg_activate, > ^~~~~~~~~~~ > include/trace/events/iocost.h:12:2: note: in expansion of macro 'TP_PROTO' > TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, > ^~~~~~~~ > include/trace/events/iocost.h:12:18: warning: 'struct ioc_gq' declared in= side parameter list will not be visible outside of this definition or decla= ration > TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, > ^~~~~~ > include/linux/tracepoint.h:233:34: note: in definition of macro '__DECLAR= E_TRACE' > static inline void trace_##name(proto) \ > ^~~~~ > include/linux/tracepoint.h:396:24: note: in expansion of macro 'PARAMS' > __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ > ^~~~~~ > include/linux/tracepoint.h:532:2: note: in expansion of macro 'DECLARE_TR= ACE' > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~~~~~~~~ > include/linux/tracepoint.h:532:22: note: in expansion of macro 'PARAMS' > DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) > ^~~~~~ > include/trace/events/iocost.h:10:1: note: in expansion of macro 'TRACE_EV= ENT' > TRACE_EVENT(iocost_iocg_activate, > ^~~~~~~~~~~ > include/trace/events/iocost.h:12:2: note: in expansion of macro 'TP_PROTO' > TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now, > ^~~~~~~~ >=20 > (and many more) >=20 > Introduced by commit >=20 > 7caa47151ab2 ("blkcg: implement blk-iocost") >=20 > To get these warnings you need to build with CONFIG_HEADER_TEST and > CONFIG_KERNEL_HEADER_TEST (and maybe CONFIG_UAPI_HEADER_TEST). > allmodconfig does that. I have applied this patch to linux-next for today: From: Stephen Rothwell Date: Thu, 29 Aug 2019 14:03:43 +1000 Subject: [PATCH] blkcg: blk-iocost: predeclare used structs Signed-off-by: Stephen Rothwell --- include/trace/events/iocost.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/trace/events/iocost.h b/include/trace/events/iocost.h index ec2217dd57ac..7ecaa65b7106 100644 --- a/include/trace/events/iocost.h +++ b/include/trace/events/iocost.h @@ -2,6 +2,10 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM iocost =20 +struct ioc; +struct ioc_now; +struct ioc_gq; + #if !defined(_TRACE_BLK_IOCOST_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_BLK_IOCOST_H =20 --=20 2.20.1 --=20 Cheers, Stephen Rothwell --Sig_/LPEdhd6/ifEKkTjJu1CE_N. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl1nT7wACgkQAVBC80lX 0GxmyQf/V2S8PWyQciwZmRgs0stJeCed4Sth4fT+Zel8Nz7uxvPQV7cKEsCf1Zbf HgseK5dhgIVgiZfvdxRnOVQ0PnU5NrXziLbOryUniQHa/WAhvkNekpTBDEzX9aEE JVr+AgBU/SXhwus/NPWnNVWnt2Eh7DvnJfR6hu7JaSpxDECIHejV/IqLvAu8+yCV gGKvHFkoMOMFnNie4OX0OiyGdtcv8O7Fp3jdo5DMnPJl92EyD9lKggeSvkuxI2Os gB1OY5FB5C5rbY9kUHvEVA4RfjPV9ibkightrB7xEf/GyW5VDZPwQoDEOj5l8YJX gvHA283UnopdNH4VKsAJlI2yoBmNEQ== =mqdU -----END PGP SIGNATURE----- --Sig_/LPEdhd6/ifEKkTjJu1CE_N.--