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=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 DF088C433DF for ; Thu, 28 May 2020 19:44:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BFA6E2078C for ; Thu, 28 May 2020 19:44:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="IZC/B70C" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbgE1Tom (ORCPT ); Thu, 28 May 2020 15:44:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728625AbgE1Tok (ORCPT ); Thu, 28 May 2020 15:44:40 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA1EC08C5C8 for ; Thu, 28 May 2020 12:44:39 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id 185so68048pgb.10 for ; Thu, 28 May 2020 12:44:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ib/FHwgaIOdIUIJ7nCiAVwkn44DXgxvEAL/KIsGPktg=; b=IZC/B70CaBM17tiwjaASXWaq3p1H5KmrmkfylzojgEvAQlJ+Y2ljEL9eqnbgXRWXGh nd4QXppBun3LwTQGBG+yX7USHmP1+y0DAbZ5hmfVlIzMcN/gQMs0klo1DYBBRtZyMEhD rCLF32H0H4eJGsdFTodijrGcYwWLCVFdydaPjxEBab0eAXeqAZf1NQak/eJOjMAOwhcX WIjIBSEohCYvodjjwj1W6NyDxBREpTlhylFywm7lVQNDQR4okJ2rTwto7lslQ/7Ww/Uw oh+RTb25OgoMX1rHbS6Hg6+GYQIPwaxQBOKXDrZRa2c/6GPSDaoHnTrCqQTwSk7LHX0q 42Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ib/FHwgaIOdIUIJ7nCiAVwkn44DXgxvEAL/KIsGPktg=; b=LfUE0lSBmv79F3MJguLVwxXHeq/MHp3A9nmmP1aDVsU5Vkn8oJQaoLHp6rg5El58sG 1TCnR5o0ni/lQgwuuInd0ybW2EB595FRwM7PlbAINzvbupMK76ZblzJTTVmMl152Gdag jCJD5mg7YiQv7KOi7hBSrI8ohdqFwBtyef0e6a2M8bp90azBtFnNMY8uWd1816UUD29N ywG5upjK7bjFbWSdmekfBWraP+/Stnov9CVYlkRzCaA1Nqn6yB1xmivRK7O/v3JoWTD7 k1nYO0893jZtzEt1Ldy/StMjizfqovj1nyx+3Pw4dvVwHyiAvd03T7SgQCLC1D9un4oL 3oGA== X-Gm-Message-State: AOAM533F498Uj1XuXTk7IwhbV1cXl4lzamTluni0YtOZneUmJQmH93sg VA5vf7AptgGijKxieHTKKcsfJQ== X-Google-Smtp-Source: ABdhPJxLCqYWjMiwubKEzX6kGygF5TG67qqXu02lJxE3KeGC6VmXsQv6RzRQm2eIk0fpB5AQVlFzcA== X-Received: by 2002:a63:d547:: with SMTP id v7mr4537973pgi.413.1590695078382; Thu, 28 May 2020 12:44:38 -0700 (PDT) Received: from [192.168.1.159] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id y5sm6607079pjp.27.2020.05.28.12.44.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 12:44:37 -0700 (PDT) Subject: Re: [PATCH -next] block: add another struct gendisk to To: Randy Dunlap , LKML , "linux-next@vger.kernel.org" , "linux-block@vger.kernel.org" , Stephen Rothwell References: <9a8676b1-c79e-9963-3ffc-c113b11d988d@infradead.org> From: Jens Axboe Message-ID: Date: Thu, 28 May 2020 13:44:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <9a8676b1-c79e-9963-3ffc-c113b11d988d@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 5/28/20 11:21 AM, Randy Dunlap wrote: > From: Randy Dunlap > > Add a forward declaration for struct gendisk when CONFIG_BLOCK is > not set/enabled to prevent multiple (30 - 50) build warnings. > > In file included from ../kernel/sched/sched.h:39:0, > from ../kernel/sched/core.c:9: > ../include/linux/blkdev.h:1895:41: warning: 'struct gendisk' declared inside parameter list will not be visible outside of this definition or declaration > unsigned long disk_start_io_acct(struct gendisk *disk, unsigned int sectors, Should be fixed already: https://git.kernel.dk/cgit/linux-block/commit/?h=for-5.8/block&id=dc35ada4251f183137ee3a524543c9329d7a4fa2 -- Jens Axboe