Message ID | 20191027155410.187957-30-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="SlWOjHGJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 471N312VFSz9sPK for <incoming@patchwork.ozlabs.org>; Mon, 28 Oct 2019 03:04:45 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 1AAC1C21DDC; Sun, 27 Oct 2019 16:02:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A8ADCC21EE7; Sun, 27 Oct 2019 15:56:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B8D45C21E36; Sun, 27 Oct 2019 15:56:16 +0000 (UTC) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by lists.denx.de (Postfix) with ESMTPS id CA236C21DB6 for <u-boot@lists.denx.de>; Sun, 27 Oct 2019 15:55:37 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id s17so606400iol.12 for <u-boot@lists.denx.de>; Sun, 27 Oct 2019 08:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OCks10XKDMVKF0tNkiSa6/s/fSGbCL/u2UdMwDfC4Go=; b=SlWOjHGJVQ/bRM3xTs2a8E8ed5Ke2iYbOyNuWyEC0IgKe/hUPsFOv4XWCudS1Sk8By YmoMSNSpAfOOiS3t1IKOUV+8BkTrgUKvLHvCytKW3bCbmIsL7dw5krHX1yLuDYsT/7+r bp5kejdjbw9TousT5lkY6V/TUHn7ZKTbhz51E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OCks10XKDMVKF0tNkiSa6/s/fSGbCL/u2UdMwDfC4Go=; b=XUtKPeAIGf7HexvvrbKBVCdsFOiTohAPsHYzwcj4ML212zNYTsoh+M20nB7oOEmXMG OVh7B48yfW52FriwsmgO9Z8FgP5wTvZi+cRBth76Esc6N74JyU9AWdkcBOSJ3/FFhoyt 7tls6x8Zo8IuJjufa4roUNng8znuPEN6Co2NiDOmVSoLWkGjNhmeqryKaZiUsmE/398+ 10cfq4as1hlSPdqux7DZRCrE/mkpHWVUBgj+gPYgYzirKyrKM+2cerOvcujDmmySN3R+ 2NDV23tzAdDAvIRiGDuqzbVYc6q0r0Ox9uBMCSiOQCmtE1Fh8UtrcuzZ7smyohuoNXal 3lgQ== X-Gm-Message-State: APjAAAU2LnxSIIC37gyJl1GN6ZRzw26eRd4MHt2wM41di4GIh0lvWnYW 1rXyY68WQu6uMkeaekTJtiNiXMlkuW2x4A== X-Google-Smtp-Source: APXvYqyLIEMl+WWj1CFONcqOwQT47Rv/1LY/OIS6zG6mHdmFluDipLMEbG3+zhmohL/ZOS/gJo8+ew== X-Received: by 2002:a02:c7d2:: with SMTP id s18mr7418205jao.88.1572191736650; Sun, 27 Oct 2019 08:55:36 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id n3sm1215070ilm.8.2019.10.27.08.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2019 08:55:36 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Sun, 27 Oct 2019 09:54:10 -0600 Message-Id: <20191027155410.187957-30-sjg@chromium.org> X-Mailer: git-send-email 2.24.0.rc0.303.g954a862665-goog In-Reply-To: <20191027155410.187957-1-sjg@chromium.org> References: <20191027155410.187957-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com>, Pavel Herrmann <morpheus.ibis@gmail.com> Subject: [U-Boot] [PATCH 30/30] dm: core: Guard against including dm.h in header files X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
[U-Boot,01/30] lib: Allow crc32 to be disabled.
|
expand
|
diff --git a/include/dm.h b/include/dm.h index 2e1afda440..a1b84169e6 100644 --- a/include/dm.h +++ b/include/dm.h @@ -3,6 +3,10 @@ * Copyright (c) 2013 Google, Inc */ +#ifdef _DM_H_ +#warning "Suspect dm.h is included from a header file - please fix" +#endif + #ifndef _DM_H_ #define _DM_H_
Header files generally should not include header files just for a struct, since forward declarations work just as well and reduce overhead. Add a warning for dm.h being included, since this has crept into U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org> dm: Avoid including dm.h in header files At present a small number of header files include the dm.h header file. The intent with driver model is for C files that use it to define dm.h themselves. This helps indicate that driver model is supported and also reduces the amount of code pointlessly included and relying on header guards. Ultimately (combined with the reduction in size of common.h) this should speed up U-Boot compilation. This series removes all uses of dm.h in header files and adds a warning to avert more such activity. END --- include/dm.h | 4 ++++ 1 file changed, 4 insertions(+)