From patchwork Fri Jun 30 15:46:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 106721 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2498843qge; Fri, 30 Jun 2017 08:48:13 -0700 (PDT) X-Received: by 10.84.216.28 with SMTP id m28mr24852233pli.275.1498837692992; Fri, 30 Jun 2017 08:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498837692; cv=none; d=google.com; s=arc-20160816; b=bFWYnM1PrRCoPxw1Gdlyli6Dt3EooaMfIe+r086Z2vkg83Lo7SY3GR76+15leZ8GTA jQRX6lS6BVclja35SdBZg75tODvTXtffxVmyACnH61yXGAkf756L2K1u5I7QCttU2S1e JRCMn9QiUfcyHkXtDCMKNtMN2+JIuL86B1iUX+ZAuYTxSBF/P3Mywzj6RamY5m0zGntY yU0cS6lWgXnvMjAXBvAMP1CclYKE/WuMaPNnkskgeI+RtjUlw+/EWpxFh2Wi7qxjuzXK qnJ1RanhW43OimTPMSbMHgwrXOXPH5Gc2OLxwfoTX+JZ6r+QmecWG5pHa2OJsWoVunPh Ta9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JnYnKPbKEm/9+udTWDavf06WvvUY2wWTrpg0TwFiVL0=; b=dUblIoRAQVK23f5aOWnmqs0Pi6dzDjeW78SzKhiQWHBbodOtxku3bRtnoujmSJjwJm LAjpXkYOCLYbwSmbSxfcJpRZHd++3cyt6azzvks1hSgyRGIzI/98oNzFIPLvQ0lRWHCe WJ2fvRxm00Djf/8XjZjDjvXzk64Ipyp5zDHDzbTxh5e19R6uREsb8QlmrGlrbv7Y538I GQQts0fwSMxFeCzC4fxLDELz9ImS2TOXpSPZDbULFPF6HsVrRt+MTicBJ7TkNb2CCjBU usn5DJG/5yEupy6blv++wirkTOibPtLEI1VXgZ5GCsFI2aL/VoWEjf0sDEWVVqYHhMc7 5SLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si5871815pgr.460.2017.06.30.08.48.12; Fri, 30 Jun 2017 08:48:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935AbdF3PsK (ORCPT + 25 others); Fri, 30 Jun 2017 11:48:10 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:59954 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751668AbdF3PsI (ORCPT ); Fri, 30 Jun 2017 11:48:08 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lu38g-1dpko80O6I-011RoK; Fri, 30 Jun 2017 17:46:58 +0200 From: Arnd Bergmann To: Heikki Krogerus , Greg Kroah-Hartman , Guenter Roeck Cc: Arnd Bergmann , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: typec: include linux/device.h in ucsi.h Date: Fri, 30 Jun 2017 17:46:16 +0200 Message-Id: <20170630154655.3645961-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kxHqK2jb8gTORXzVal1hBjDSwHotDPsdUEHmcZ42NHVI8Ei/1nN dV9G2fipOr2DB+9XmajgjwyTJZ5y45X6tqgducsosKQN+WEJrjACiueYN6Q0AspFMOHlXND i8nVEg3PQZjYMFkSdriel1bJM5LOqCnbxnUJ1KRx9jUx/3taxkF9qDgJIfCWvqmmsP6XKlX +o00DGB1yP6n/DvtH6gbA== X-UI-Out-Filterresults: notjunk:1; V01:K0:JTesqy20xQk=:3oMthgyenJioUfm5OcLZeH bRqgEegVTJWLpQZcwmmdbJA7sbeSeSJBUItS0R6mqFchYjAtvVCYnxb5BompE5ITLcCn1d4Nl ctisV+uaVqwenqdsnXSwZd9QtMbVmXU2/snE/JrUWriAFKhLNHuj2r/u+F+Iu+OfykfSJKIii 9EqLkj8ehUlvpyDsAfnu+DwNqQol+nr33DGhUnrSN/W7BFRAuZ/Kbdm0A9a152X8QW4IR6sE6 UrViwTiPtFxcVmUAKT4dQB9w4A5/4lyHYL5kKpJUiYQhneflYCumrdLkGcNz088Cax90oOrdd 8pFE59Q6dsuVhv5/NyNZBJxw3wKS0t4sZW07xEDQ05yL2mPM7nLBAZ9g20qbyvfZF2YVNIAfd eFgjrkhJVKQnyCTqg1VmsbAyktvkxv6jj1eJ/2S7gDB7BC1ypJ2KZg4Qdw4cOy95UViVIdDMg 9GN5yOaXxBBKsxFNGZJ2qDSxNIMWoAPwhY6uHgaIIaXphl9JGEgokU8T5t9QoGRWPqpQnCN6g yczQz8Wr1PD/G9ByvFiKN+am6n/YtRk3uxx9wrYkpftyt6WNjZaSMTZNFJYxDqCCMLqFWEzA9 Lklc4yqsnHWQ19OT3yB5fyJd4eF4vES9ksKn/kW7/L+ZaGUVVEoN5IurPYefG9s+0VSOqx6nR +2DfOKrNCAkyqOAq5gPPAvzS5PUth44rDJzVKadmN0zhLNrvk7GfzqvrPG3fl+pvBYxk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new driver causes a build failure in some configurations: In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0, from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2: drivers/usb/typec/ucsi/ucsi.h:331:39: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] This includes the required header file. Fixes: c1b0bc2dabfa ("usb: typec: Add support for UCSI interface") Signed-off-by: Arnd Bergmann --- drivers/usb/typec/ucsi/ucsi.h | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Acked-by: Heikki Krogerus diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h index 6b0d2f0918c6..8a88f45822e3 100644 --- a/drivers/usb/typec/ucsi/ucsi.h +++ b/drivers/usb/typec/ucsi/ucsi.h @@ -3,6 +3,7 @@ #define __DRIVER_USB_TYPEC_UCSI_H #include +#include #include /* -------------------------------------------------------------------------- */