From patchwork Sun Oct 27 15:53:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1185055 X-Patchwork-Delegate: trini@ti.com Return-Path: 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=) 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="LsLCWoMF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 471N1C1m4Dz9sPK for ; Mon, 28 Oct 2019 03:03:11 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C59F1C21DF3; Sun, 27 Oct 2019 15:59:01 +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 2111DC21DA1; Sun, 27 Oct 2019 15:55:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 973CFC21C3F; Sun, 27 Oct 2019 15:55:43 +0000 (UTC) Received: from mail-il1-f195.google.com (mail-il1-f195.google.com [209.85.166.195]) by lists.denx.de (Postfix) with ESMTPS id 48A1EC21DFA for ; Sun, 27 Oct 2019 15:55:00 +0000 (UTC) Received: by mail-il1-f195.google.com with SMTP id s6so2340400iln.0 for ; Sun, 27 Oct 2019 08:55:00 -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=WtDFFjVbxJJ7akmS9CJ79u16negaQQMlc09vYTShXis=; b=LsLCWoMFthaXW2aTxWLbAT0OaHDOryAyAuoTRV8UeVyX6c9ewfXb/clllIg8KbJOtt /0TL5jSV9tEWWVyOvTKmKamVmRalP1duNw3KFk2/doLHFjHQuZzndFydx46QU+Eis+8H hynVs9a4P9xKppfCpX+4OG+KHFuuu6tHGgi1s= 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=WtDFFjVbxJJ7akmS9CJ79u16negaQQMlc09vYTShXis=; b=AyUk5RdfHre/vATxa+tTU+1Ydig4FFStISLQjT6UyBhvFArnNwgwfEu5pRmU9nJHF7 LBInDHMCxbiz+Kb32aL/zdN9TsRkX/KPCD6M1nKy5ZK618bQ5HI9VfFGaStcgavSwLJx 0hx8OpHuYFAQzrODlK/yI5Bu+ZA1Nk5EGDIlIAdwTHX0DiWFR7dqRaKBJqzoMcjnoxcf EvQHii6dPory5OZO5WlLyH5W0RVBE7XgPJb6HmbVl5LjgFTjfObgjIPUm7MrX2mn1LyE +rsPzNhAHW3iRSlV4PYnaioizoIMGxzi7K7ZOusmI1XtZHoorsZLx5rY+TiAS5Psvj+z tTMA== X-Gm-Message-State: APjAAAWRTrGhnhkFue6MvSL/Za42eIOFW2zFlikm4rmSSmLQMjF6UxrQ iA0ENeLTe8qQ4dSYBz3J8/poPS1RYcyJ2Q== X-Google-Smtp-Source: APXvYqwSyirsrdxpW3E2CjaxEJT6trcajsKKpddrfmRHBMHm+IfoM7dFzPP1r+WncW0Z7TytUHCybg== X-Received: by 2002:a92:b314:: with SMTP id p20mr15564521ilh.80.1572191699149; Sun, 27 Oct 2019 08:54:59 -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.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2019 08:54:58 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 27 Oct 2019 09:53:53 -0600 Message-Id: <20191027155410.187957-13-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 , Mike Frysinger Subject: [U-Boot] [PATCH 13/30] sf: Drop dm.h header file from spi_flash.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This header file should not be included in other header files. Remove it and use a forward declaration instead. Signed-off-by: Simon Glass --- arch/x86/cpu/ivybridge/sdram.c | 1 + include/spi_flash.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/ivybridge/sdram.c b/arch/x86/cpu/ivybridge/sdram.c index 8a58d0383d..d2d51ebca1 100644 --- a/arch/x86/cpu/ivybridge/sdram.c +++ b/arch/x86/cpu/ivybridge/sdram.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include diff --git a/include/spi_flash.h b/include/spi_flash.h index 0b23f57a71..0d302a7938 100644 --- a/include/spi_flash.h +++ b/include/spi_flash.h @@ -9,10 +9,11 @@ #ifndef _SPI_FLASH_H_ #define _SPI_FLASH_H_ -#include /* Because we dereference struct udevice here */ #include #include +struct udevice; + /* by default ENV use the same parameters than SF command */ #ifndef CONFIG_ENV_SPI_BUS # define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS