From patchwork Wed Feb 26 13:31:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jarkko Nikula X-Patchwork-Id: 3724101 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 069C69F2F7 for ; Wed, 26 Feb 2014 13:32:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 25FBC200E8 for ; Wed, 26 Feb 2014 13:32:19 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id E90932017B for ; Wed, 26 Feb 2014 13:32:17 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C318C265705; Wed, 26 Feb 2014 14:32:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id A1C4F2655A0; Wed, 26 Feb 2014 14:32:04 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A79912656A3; Wed, 26 Feb 2014 14:32:02 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by alsa0.perex.cz (Postfix) with ESMTP id F178A2617B6 for ; Wed, 26 Feb 2014 14:31:55 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 26 Feb 2014 05:31:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,548,1389772800"; d="scan'208";a="488405270" Received: from mylly.fi.intel.com (HELO mylly.fi.intel.com.) ([10.237.72.153]) by fmsmga002.fm.intel.com with ESMTP; 26 Feb 2014 05:31:50 -0800 From: Jarkko Nikula To: alsa-devel@alsa-project.org Date: Wed, 26 Feb 2014 15:31:46 +0200 Message-Id: <1393421506-2411-1-git-send-email-jarkko.nikula@linux.intel.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1393420341-31625-1-git-send-email-jarkko.nikula@linux.intel.com> References: <1393420341-31625-1-git-send-email-jarkko.nikula@linux.intel.com> MIME-Version: 1.0 Cc: tiwai@suse.de, Liam Girdwood , Liam Girdwood , Mark Brown , Jarkko Nikula , kbuild test robot Subject: [alsa-devel] [PATCHv2] ASoC: Intel: Baytrail: Fix implicit declaration of function 'memcpy_fromio' X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Some kernel configurations can cause following build error: sound/soc/intel/sst-baytrail-ipc.c: In function ‘sst_byt_get_dsp_position’: sound/soc/intel/sst-baytrail-ipc.c:744:2: error: implicit declaration of function ‘memcpy_fromio’ [-Werror=implicit-function-declaration] memcpy_fromio(&fw_tstamp, ^ cc1: some warnings being treated as errors Fix this by including explicitly. Reported-by: kbuild test robot Signed-off-by: Jarkko Nikula --- v2: including instead of . Thanks to Takashi Iwai for noticing (checkpatch.pl tells it too). Also sst-dsp., sst-baytrail-dsp.c and sst-haswell-dsp.c are using memcpy_fromio/_toio but there seems to come via or so I didn't touch them. --- sound/soc/intel/sst-baytrail-ipc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/intel/sst-baytrail-ipc.c b/sound/soc/intel/sst-baytrail-ipc.c index 8c91a68b90bc..c12e194bbc6b 100644 --- a/sound/soc/intel/sst-baytrail-ipc.c +++ b/sound/soc/intel/sst-baytrail-ipc.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "sst-baytrail-ipc.h"