From patchwork Fri Jul 6 13:23:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 141318 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3112888ljj; Fri, 6 Jul 2018 06:24:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcYtK9ODwbgZqKbDy9oeIsvWPQzrrIAj2nUmgJkrrXjuZCMVopcRXMi3PaO1sVExzbP5FD+ X-Received: by 2002:a62:ccd0:: with SMTP id j77-v6mr10556960pfk.22.1530883490481; Fri, 06 Jul 2018 06:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530883490; cv=none; d=google.com; s=arc-20160816; b=eFZBvzLfaEM0EuuutHauS+YCepAdL3efMU/9jBbFfaUmoRUuKmOKVoRMXfg91vWDHt AkEQAsCTlwO3u2ZYLVWMK1Bm/GSkdPue7b9K9/I1JATrc5OCbPDyl9HBdqOZBEaR0jk4 3Cxd+1DlOtcLE2rTSqaqCsdWgsp1+I9CNmWfqi5ZIIdbdoIOFiqK35Vw/oUVVBSjhyT+ s98aKYEmyx2SkNvevVwWFbzY6lF/Ru/UrxlL3lWafOLt0g/OX8fe7StqpRxPx6aza5BO B/7zJ3QJIkIPGbMzVAMnHGxMg8bTlbWNnabNmNEtxdzwR+vPGRtUTBdR41ZPErXzineg xozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IJldNTYmiYWUIKcsjcqO7fVF9DtrIgFU2dOkStCq0K0=; b=hm8opfRZ7dwuAHe3IWMLiJdwW6UW7i1vUukgQ20DWKVBiysB9rpWMzKSlbm1SS033L H9bRQR984vhh9BuuyAGxhx3Z0uK4AotgOHoaglLCVmq2IAfLXV18Smpjv2cpitFo9wMo 8fuNIu/MocVnmYtcYGhQ3Yxo058W+OE77zC4HkNWnmjTja5PF92XhGbNzvA+rgzECGa8 N4nxhlYHm0VKeG7PnzFCSIO9R0aD3FzxuRgf1YvIbrNo7PhUsEkkTOaA3Zyz2pH2l+VE a8uCMsA2H77sTxpHX0WuEV9AgACCT87qX4GV2nZhOjyaBksOBWqqw8BqNobAsBy/EB86 imGA== ARC-Authentication-Results: i=1; mx.google.com; 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 e9-v6si7889428pgn.576.2018.07.06.06.24.50; Fri, 06 Jul 2018 06:24:50 -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; 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 S933273AbeGFNYs (ORCPT + 30 others); Fri, 6 Jul 2018 09:24:48 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:36921 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932851AbeGFNYn (ORCPT ); Fri, 6 Jul 2018 09:24:43 -0400 Received: from wuerfel.lan ([46.223.138.35]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0M4voU-1gK3JU3ABa-00zCZT; Fri, 06 Jul 2018 15:24:10 +0200 From: Arnd Bergmann To: "Martin K . Petersen" Cc: Jens Axboe , Felipe Balbi , Matthew Wilcox , linux-scsi@vger.kernel.org, "James E . J . Bottomley" , Arnd Bergmann , Omar Sandoval , Ming Lei , Paolo Valente , linux-kernel@vger.kernel.org Subject: [PATCH] sbitmap, scsi/target: add seq_file forward declaration Date: Fri, 6 Jul 2018 15:23:43 +0200 Message-Id: <20180706132407.4069001-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:lZRQ91uDatO7y/AU7/kLvX3NKTb3L3JSh7f6nWFoQHSdss4gJTo iQR/rMntK/StqcAjdBI94OQ1HCodfOc7nNacyjBDLetNNSYYonTlF7FGDoXXJga7bx524m+ X3f01QAkPK+vUSNLv1W7Zt41IG+HggRGdMVxcLCNiRKWItwYJly4GB6e0Y3YZFOsivoI4fn mOv+DJfj/qK8Y6qhLhgFw== X-UI-Out-Filterresults: notjunk:1; V01:K0:OMcUL2J1jw4=:TOHx8p5wZq8fAMC1JIx2Hv 1vRAKmQLWM5yw7RDEeLXU0oVBs/vovIrMi3DsFrZKNCQANdFcJIMyd1Afrej3kKl2+/lfCtmz z8y9LGNHKSZ5EzUw7IOEEHJxbwK56YZeUSZ6MFWMQ8KeAiHqzVJDQwdd3EnTr/Qe1kP3Injhz MZ3+Jdwz35JiIxxfmUFvKRorLQKFTRybSgd4ThfttgArhct9MSEnjChhePw0igaXdRjofI9G0 CGNAAmhsHUhgyrry3ZSTM4H23TpL1sODkd4a/nUxbkHNQqa2SzXl2+Lm0olBNeD0IXYIgLHqs 90FT2JFGMsBFW5oB3O6Mi5jluqGV35B7Dg18uC2sW+Y5cCNjeXcXMQFcIPXer1PCNSbk21Ok1 0pLNPokjYPl8GG71pjrTM7SdfvGGjkEy1sxJPoifWb0eGQTNURgz79XfxYd4droqzWHOUUNwS yTJG1NPVC0wrTIN8XqLHQBcuMzsYHXGjV1tvciZvxvP5BzfMvXqWeGP/daThDKtrBcBPPtFOZ rPy2C+CamjEZ069RLfCP8XcHIUGf/D1E3Mr9Ht+GG1MdK9vyceSuhgg91mJysiOGruGlVh+Pa 4Dt0kHIE7EdZjaTm9jhsUWsIrhkAMiFwQGYBwh5nFFzLu2BBk3pxjIEEyVz1Zwltg40PWJeLL EGWg/9jggQCDkVcWxTa8UxV/v8z1AiJyrr1/geRgYMH291pCI/yHentWh8tHv5RHWSaw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The target core runs into a warning in the linux/sbitmap.h file in some configurations: In file included from include/target/target_core_base.h:7, from drivers/target/target_core_fabric_lib.c:41: include/linux/sbitmap.h:331:46: error: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] void sbitmap_show(struct sbitmap *sb, struct seq_file *m); ^~~~~~~~ In general, headers should not depend on others being included first, so this fixes it with a forward declaration for that struct name, but we probably want to merge the patch through the scsi tree to help bisection. Fixes: 10e9cbb6b531 ("scsi: target: Convert target drivers to use sbitmap") Signed-off-by: Arnd Bergmann --- include/linux/sbitmap.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/include/linux/sbitmap.h b/include/linux/sbitmap.h index e6539536dea9..cc54b9f7ff8b 100644 --- a/include/linux/sbitmap.h +++ b/include/linux/sbitmap.h @@ -321,6 +321,8 @@ static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) unsigned int sbitmap_weight(const struct sbitmap *sb); +struct seq_file; + /** * sbitmap_show() - Dump &struct sbitmap information to a &struct seq_file. * @sb: Bitmap to show.