Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3491972ybl; Sun, 1 Sep 2019 14:31:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyk+edv9AdQuwo+3kMK4bUfRXGtTdjr/k98M0ZOpC3QXSMXt5r840OZwTsAKakVqYt+iMSn X-Received: by 2002:a17:902:e091:: with SMTP id cb17mr21392220plb.168.1567373513266; Sun, 01 Sep 2019 14:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567373513; cv=none; d=google.com; s=arc-20160816; b=rmRoKW5VudHVIv6Tm4QaZ9u/Qe/3f6ky71GeTt6LX5B1bMjU1CMmNcgpwtNPRWjX6e gIpPv33GyXjMchiNX63G4ekvkgf4aGjiFS52goMGSkUoGm+Be7masgiUZ+hdHjFMUf5K 9i6Wl1mS9+oKYOTRaQwD7PZE1h+R3VLWDoCFSq7miiO/dU52uMBgbW2fF3aNs7IFTSNS P5d10FGnDEVg/SC1u+ZBZyTELpqD0e/JVARmmzPex40yuSop0OtpCSLa1Xlm2Arf5QXe uAAaUoqFkQm4uSte6CGbZiVDc1GZeHiW+T0+j5Igq4453nqrkh8wAiVCkURfEqbPwY2t DdDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9Jwqbt3sJubg/p9/pBWJsU/t16vkmRpuHY9/KrAZkcE=; b=zWYASbB8gK/hh6SWMzE2S+fPlhHwaONUB3FKam9O0EKcgW9zY9R/+0X74JKa7uEgYO v+9xnLnozi+xJtaNhmBKob7tYvSRWA2Zkf56alEdv3mI1lHiB/3xYMDPZJr2EWIhql5c H2t6YgWBdHqHFhLOFnqUT5LcvsaE9AXob6pRFqQGDq2IfSl+sjwQhTmZtLfhXPcK7FjC K2ZEm+EKg10KhsDCfIf9DVjI9SenQUFgazigooy3WITjXvl4lKgCogG7G5LyycKsgH8h ptgKEwA1zfj9+AdeUG7EMOLDixCSbEbBy+Mr9xyhm5pUUiOKDRopnVvB5kOsBzKa0iui jDXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="MY7eT/Sw"; 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 t191si9702398pgd.370.2019.09.01.14.31.38; Sun, 01 Sep 2019 14:31:53 -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; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b="MY7eT/Sw"; 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 S1729037AbfIAVax (ORCPT + 99 others); Sun, 1 Sep 2019 17:30:53 -0400 Received: from onstation.org ([52.200.56.107]:48100 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728773AbfIAVax (ORCPT ); Sun, 1 Sep 2019 17:30:53 -0400 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 78BEA3E993; Sun, 1 Sep 2019 21:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1567373452; bh=Zamozm0CnNg3m9y2HsnLTS1dXVZIfN56PD4UedvYoz0=; h=From:To:Cc:Subject:Date:From; b=MY7eT/Sw7QTSp8Ub9ouPBLRLKMK4EDxpfb/wOds4fJogOnuNENG7xFfcDOYkKOeoX 35sXYnZQ0dfCxCd3AiY2uF3vYi3epuB+4rdIJqAc4WlZwHBPeUt0ZZ++XFU7ieAmZq BnbsFScUwPYY7LCk4V/ydR90ErsDmUSrJ0H5IicE= From: Brian Masney To: robdclark@gmail.com, agross@kernel.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild test robot Subject: [PATCH] soc: qcom: ocmem: add missing includes Date: Sun, 1 Sep 2019 17:30:37 -0400 Message-Id: <20190901213037.25889-1-masneyb@onstation.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kbuild bot reported the following compiler errors when compiling on MIPS with CONFIG_QCOM_OCMEM disabled: In file included from :0:0: >> include/soc/qcom/ocmem.h:43:49: warning: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration static inline struct ocmem *of_get_ocmem(struct device *dev) ^~~~~~ include/soc/qcom/ocmem.h: In function 'of_get_ocmem': >> include/soc/qcom/ocmem.h:45:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] return ERR_PTR(-ENODEV); ^~~~~~~ >> include/soc/qcom/ocmem.h:45:18: error: 'ENODEV' undeclared (first use in this function) return ERR_PTR(-ENODEV); Add the proper includes to fix the compiler errors. Signed-off-by: Brian Masney Reported-by: kbuild test robot --- My OCMEM series [1] hasn't landed upstream yet so let me know if you want me to squash this into the existing patch set. I made this a separate patch so that the Reported-by could be included. The kbuild report is at [2]. [1] https://lore.kernel.org/lkml/20190823121637.5861-1-masneyb@onstation.org/ [2] https://lists.01.org/pipermail/kbuild-all/2019-August/063530.html include/soc/qcom/ocmem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/soc/qcom/ocmem.h b/include/soc/qcom/ocmem.h index a0ae336ba78b..02a8bc2677b1 100644 --- a/include/soc/qcom/ocmem.h +++ b/include/soc/qcom/ocmem.h @@ -9,6 +9,9 @@ * Copyright (C) 2015 Red Hat. Author: Rob Clark */ +#include +#include + #ifndef __OCMEM_H__ #define __OCMEM_H__ -- 2.21.0