From: Masami Hiramatsu <mhiramat@kernel.org>
To: Bhaskar Chowdhury <unixbhaskar@gmail.com>
Cc: LinuxKernel <linux-kernel@vger.kernel.org>
Subject: Re: Bootconfig ..too many deep level of header file
Date: Sun, 21 Mar 2021 22:17:53 +0900 [thread overview]
Message-ID: <20210321221753.5cc974f0d4cb8a1ed65c675f@kernel.org> (raw)
In-Reply-To: <20210321030855.GA18105@debian>
Hi Bhaskar,
On Sun, 21 Mar 2021 08:38:56 +0530
Bhaskar Chowdhury <unixbhaskar@gmail.com> wrote:
> Hey, Masami
>
> I was wondering why so many level of "deep nesting" of a particualr header
> file like this one :
>
> ✔ ~/git-linux/linux/tools/bootconfig/include/linux [patch L|✔]
> 08:34 $ cat bootconfig.h
> /* SPDX-License-Identifier: GPL-2.0 */
> #ifndef _BOOTCONFIG_LINUX_BOOTCONFIG_H
> #define _BOOTCONFIG_LINUX_BOOTCONFIG_H
>
> #include "../../../../include/linux/bootconfig.h"
>
> #endif
>
> I am surely missing some basic stuff...but...anyway, I have taken a peek on other files in the same dir and none have the nesting like that(the include ../ ...line)
>
> Any specific reason? OR did you thought of keeping all the header file in one paplace(wildly guessing) ...
If you carefully check the number of ../, you can find that it refers the
<topdir>/include/linux/bootconfig.h.
Since the bootconfig library code needs bootconfig.h but I don't like to make
a copy of the bootconfig.h under the tools directory, I made a dummy header
file which links to the kernel's bootconfig.h.
Thank you,
--
Masami Hiramatsu <mhiramat@kernel.org>
prev parent reply other threads:[~2021-03-21 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-21 3:08 Bootconfig ..too many deep level of header file Bhaskar Chowdhury
2021-03-21 13:17 ` Masami Hiramatsu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210321221753.5cc974f0d4cb8a1ed65c675f@kernel.org \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=unixbhaskar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox