[RFC] [WIP] incorporate picotcp into barebox: a small demo

Juergen Borleis jbe at pengutronix.de
Wed May 28 00:23:30 PDT 2014


Hi Antony,

On Tuesday 27 May 2014 16:04:11 Antony Pavlov wrote:
> [...]
> If you use #ifdef:
>
>         #ifdef CONFIG_DEBUG_FS
>                 err = tegra_dsi_debugfs_init(dsi, tegra->drm->primary);
>                 if (err < 0)
>                         dev_err(dsi->dev, "debugfs setup failed: %d\n", err);
>         #endif 
>    
> then you get jut the same result but without checking the code under #ifdef
> CONFIG_DEBUG_FS.

A syntax check is always done by the pre-processor. So, the code between the
#ifdef/#endif must be valid C code or be commented out.
But there is no further check, because the lines between the #ifdef/#endif are
never seen by the compiler.

jbe

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |



More information about the barebox mailing list