Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp464418pxk; Wed, 9 Sep 2020 09:51:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/WwZ22WYTv8o8KN+Sj3vRRLMK+M9yZrec7XWJaBCd/hYCW+0c9MMzq9G3qeQJrqgkICPp X-Received: by 2002:a17:906:3913:: with SMTP id f19mr4792180eje.83.1599670262324; Wed, 09 Sep 2020 09:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599670262; cv=none; d=google.com; s=arc-20160816; b=d3n2Mk0zeJtWVHguhKdeHZq6I8QHCVd2oWKr+eFnLjStYNCyq+ZMbYTvXMEufF6v+Y Tc3joU1XQ8SxjarGO/O7Zo5yBBAN9iPNwrv0BeE1qXzEoLAoirwtz0WinnJ2NM9lqeNF 6ELfpPUSG7H3yEqKfJT7C3grOEuNJBg5+z2u8aUBV1C0UrfUU/UP7j/YJKyhz5hWyj5C shNAaf+LY/554OwtzY4GxaIITL8IjGdvJy428Zf598quUmI9LuPxjskdagFs2TtCn70e VRpPSbbGYKKR53X1u/nQ+FddLr2WeyGvn/FjR2j+DEYJmIjA/3gPtHgTpxo21uCfRKoA ITuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RrFxDaqHBVYXWbZIZKuQ96RM4zYk7c9CELkVoWIVF8Q=; b=DBUeSrhqAhcwNAfBlI1pHZaUq/+mAAr/xDZP6TNiEim3n5KxAP8T1ZzQyLh9n1sjy/ 8kuFwqn7sbieY9oU0dGC7pbmU/dOvSpYWjzmWKUt+UPu+onjvoOumNu2taJmGmta4XIU 0v/OW3U9llOGdK4rlsHyxJrTEUQ8tUoKQoowfIURmI0Kaq26WL7Hm+egOTTKgaJCDmzh tORPd/O31/dxyZyY6EDstfSzIBdx5i5vrPoVeIHYcNxypJZ0MYsQw1grSCAFuVNSyo1W DfjvH0yL6UliLPWpnKPMHN4SBajHsAUmWIq3ybuhcTjZMKdOyLgDg0lYLzbEvCEvM7Ic tl5w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si1843738edw.288.2020.09.09.09.50.39; Wed, 09 Sep 2020 09:51:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730598AbgIIQsC (ORCPT + 99 others); Wed, 9 Sep 2020 12:48:02 -0400 Received: from codesynthesis.com ([142.44.161.217]:34250 "EHLO codesynthesis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730986AbgIIQrk (ORCPT ); Wed, 9 Sep 2020 12:47:40 -0400 X-Greylist: delayed 4199 seconds by postgrey-1.27 at vger.kernel.org; Wed, 09 Sep 2020 12:47:39 EDT Received: from brak.codesynthesis.com (unknown [105.226.107.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id 851435F138; Wed, 9 Sep 2020 14:09:48 +0000 (UTC) Received: by brak.codesynthesis.com (Postfix, from userid 1000) id 9751F1A800C4; Wed, 9 Sep 2020 16:09:43 +0200 (SAST) Date: Wed, 9 Sep 2020 16:09:43 +0200 From: Boris Kolpackov To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] kconfig: fix incomplete type 'struct gstr' warning Message-ID: References: <20200908221638.2782778-1-masahiroy@kernel.org> <20200908221638.2782778-2-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200908221638.2782778-2-masahiroy@kernel.org> Organization: Code Synthesis User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > Currently, get_relations_str() is declared before the struct gstr > definition. Yes, I also ran into this while building the kconfig code with MSVC. I just moved the struct gstr definition before lkc_proto.h #include but your fix works just as well. Acked-by: Boris Kolpackov > BTW, some are declared in lkc.h and some in lkc_proto.h, but the > difference is unclear. I guess some refactoring is needed. Yes, please. My (potentially incorrect) understanding is that lkc_proto.h was for functions that are not (or should not be) used by clients but should nevertheless have prototypes due to -Wmissing-prototypes. I, however, believe this no longer holds and so would vote to merge lkc_proto.h into lkc.h.