From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gajjar, Akash" Subject: iMX6 build issue on Mainline Kernel Date: Wed, 2 Jan 2019 08:02:52 +0000 Message-ID: <1546416171582.2789@mentor.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1954534521==" Return-path: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: freedreno-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Freedreno" To: "jonathan-eSc4qw6YbEQ@public.gmane.org" , "robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Cc: "linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , "dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" List-Id: linux-arm-msm@vger.kernel.org --===============1954534521== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_15464161715822789mentorcom_" --_000_15464161715822789mentorcom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Rob, Jonathan, I was compiling mainline kernel for imx6 SOC based board with imx_v6_v7_def= config and found it is failing. It shows below error. ./include/linux/qcom_scm.h:73:10: error: 'ENODEV' undeclared (first use in = this function) return -ENODEV; Digging inside I found commit ID e6f6d63e adds SOC_IMX5, which eventually b= reaks build for imx6 platform config. adding header #include in qcom_scm.h solves= problem. Please correct me that is it right way to resolve and upstream this fix. Thanks, Akash Gajjar --_000_15464161715822789mentorcom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Rob, Jonathan,


I was compiling mainline kernel for imx6 SOC based board with imx_v6_v7_= defconfig and found it is failing.
It shows below error.


./include/linux/qcom_scm.h:73:10: error: ‘ENODEV’ undeclared (f= irst use in this function)
  return -ENODEV;
 
Digging inside I found commit ID e6f6d63e adds SOC_IMX5, which eventually b= reaks build for imx6 platform config.
adding header #include <uapi/asm-generic/errno-base.h> in qcom_scm.h = solves problem.


Please correct me that is it right way to resolve and upstream this= fix.

Thanks,

Akash Gajjar

--_000_15464161715822789mentorcom_-- --===============1954534521== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KRnJlZWRyZW5v IG1haWxpbmcgbGlzdApGcmVlZHJlbm9AbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZnJlZWRyZW5vCg== --===============1954534521==--