[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a1kpRcmTW0hH7-9vd4SiJjEuTMRPb6Kb06LSiRj0AGd8A@mail.gmail.com>
Date: Thu, 5 Sep 2019 12:20:56 +0200
From: Arnd Bergmann <arnd@...db.de>
To: kbuild test robot <lkp@...el.com>
Cc: Lubomir Rintel <lkundrak@...sk>,
Mark Rutland <mark.rutland@....com>,
DTML <devicetree@...r.kernel.org>,
Jason Cooper <jason@...edaemon.net>,
Stephen Boyd <sboyd@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Michael Turquette <mturquette@...libre.com>,
Russell King <linux@...linux.org.uk>,
Kishon Vijay Abraham I <kishon@...com>,
"Cc : Rob Herring" <robh+dt@...nel.org>, kbuild-all@...org,
"To : Olof Johansson" <olof@...om.net>,
Thomas Gleixner <tglx@...utronix.de>,
linux-clk <linux-clk@...r.kernel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v3 13/16] ARM: mmp: move cputype.h to include/linux/soc/
On Mon, Sep 2, 2019 at 10:16 AM kbuild test robot <lkp@...el.com> wrote:
>
> vim +5 include/linux/soc/mmp/cputype.h
>
> 49cbe78637eb05 arch/arm/mach-mmp/include/mach/cputype.h Eric Miao 2009-01-20 4
> 49cbe78637eb05 arch/arm/mach-mmp/include/mach/cputype.h Eric Miao 2009-01-20 @5 #include <asm/cputype.h>
> 49cbe78637eb05 arch/arm/mach-mmp/include/mach/cputype.h Eric Miao 2009-01-20 6
>
You can probably do something like
#ifdef CONFIG_ARM
#include <asm/cputype.h>
#else
static inline read_cpuid_id(void) { return 0; }
#endif
Then again, ideally drivers don't even have to know about this,
but would distinguish between devices based on the
compatible string for the particular device.
Arnd
Powered by blists - more mailing lists