From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3060EC41514 for ; Thu, 5 Sep 2019 10:21:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1170A20693 for ; Thu, 5 Sep 2019 10:21:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733040AbfIEKVO (ORCPT ); Thu, 5 Sep 2019 06:21:14 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44194 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfIEKVN (ORCPT ); Thu, 5 Sep 2019 06:21:13 -0400 Received: by mail-qt1-f193.google.com with SMTP id u40so2089482qth.11; Thu, 05 Sep 2019 03:21:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W9ASHhPKpQsIU9mZBi7LyeVQlq2CQJ2Nfa0cGg2cxjU=; b=gqfY4PmwVDxruCWQzhbyPxIwP/7yT85hzCcnRhXJc4Cwlw2UGO3c+PpUqxkV91858F jznwKHR3baPoA5Ybq0KpWV8bGVFH/sS72nGK0EvwxxaD6RVgz9eb/AZpKKGMLnB1lCZd /hMYiwps1WJLujsUMGNJlxe4SozjmbqKea1IDKuyLlp0cu17G6ahhF2ElwhOnamutE5k r+s0Nh+Z1ikv35v50oRuWhLlgUBSJV6IHshQRbfxOEBYrZHg4aohLzcNqloDacm4EBsa kZhwBeBozcXudXmX6AqYOswh696bLcpeIMO5sxon7/JKinIjRTKBb2uaoOU/bEZe7h6J QmaQ== X-Gm-Message-State: APjAAAXX4xUqtWO/CfGA6QUsIe0agIcNfLounfjyDhqsWNdnNh8zLO3d 4tUrZvCESQQGw0Kmo4huXFkO4NUZeMOz0Z4tTkY= X-Google-Smtp-Source: APXvYqw66BDokdBxyKl2ZBebLXBdM0Uc+EDEJXEwWO/OOdpU9zSB4XfPNlLYUumfYtGYq8zDk75S62/byvrXBZWShig= X-Received: by 2002:ac8:32ec:: with SMTP id a41mr2625217qtb.18.1567678872786; Thu, 05 Sep 2019 03:21:12 -0700 (PDT) MIME-Version: 1.0 References: <20190830220743.439670-14-lkundrak@v3.sk> <201909021510.0g4L7Wva%lkp@intel.com> In-Reply-To: <201909021510.0g4L7Wva%lkp@intel.com> From: Arnd Bergmann Date: Thu, 5 Sep 2019 12:20:56 +0200 Message-ID: Subject: Re: [PATCH v3 13/16] ARM: mmp: move cputype.h to include/linux/soc/ To: kbuild test robot Cc: Lubomir Rintel , Mark Rutland , DTML , Jason Cooper , Stephen Boyd , "linux-kernel@vger.kernel.org" , Michael Turquette , Russell King , Kishon Vijay Abraham I , "Cc : Rob Herring" , kbuild-all@01.org, "To : Olof Johansson" , Thomas Gleixner , linux-clk , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 2, 2019 at 10:16 AM kbuild test robot 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 > 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 #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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDFB9C3A5A5 for ; Thu, 5 Sep 2019 10:21:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B422520693 for ; Thu, 5 Sep 2019 10:21:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IpKdT8h2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B422520693 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FqryjNwd0jusnHNIj5Yt+8MR6nX3yY2LgxQ91LD9fRc=; b=IpKdT8h2JyYgg8 G7UiyjE6PUXW1bRt3bDJk/m+ASsnS5ogWoDB/NXJFMRYqeoQCQwKmgxjNJZK0RJNypMqeia7+gvWu Gkl/pT9D0q2/DrvKeJ81/pjxSTA2Hoj0ix5xzDSgnGnBLNrXh95S2o1FRWbDCE9/6G+7+VFpmviCN Ckfp4ZjeykxcJzRNgP5kfbtKr1omHLTzdpwTWD7G3oOdamZ2hQLlw2ut9DlJcLLNngn5/n1BBVNHd ly3eURPMO6x+D5+GUXMgGQE5P6+18ahz0Iuh54qdDfBKmZ17r3jP9GTPhon6sTHwQvYZ8SMXeRSPo k1EcMVpYr8SIMFn6ydHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i5otB-0007dF-61; Thu, 05 Sep 2019 10:21:17 +0000 Received: from mail-qt1-f194.google.com ([209.85.160.194]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i5ot7-0007cq-U3 for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2019 10:21:15 +0000 Received: by mail-qt1-f194.google.com with SMTP id c9so2100016qth.9 for ; Thu, 05 Sep 2019 03:21:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W9ASHhPKpQsIU9mZBi7LyeVQlq2CQJ2Nfa0cGg2cxjU=; b=dYUTNGe168QTkil57CletXSS+yXg8+69MkHC9L1OlLKeU6azxUx7R992QoC4p0Hzxj OUtSFIgnvT2smHPy3MYxv1H4xruHdJUMJy6kLAW4iJzBME56UglVAtouVrXgyRLUA31n 9g87ZqM4vulR3dU+iO1JZvGgvu0UAOfJytfgZ8TzCgW46i+fqhr1yD2gINIXfFCwHf5R WTbJIqHAMHnN/TCf2uVBHmAnli4/A2KT0/DXvV1/IyUofaGPbYMdU1l2v35xYAWgSM/B Pqn6d9VycFQtT877Kc+5MLQjdnopt6LG3WbScrRPxtwoLjNoL9vTVReJv6/GxcYE5HP9 /3KQ== X-Gm-Message-State: APjAAAUPvbl2d57TkUjEO2OJjoGS0ybuAXasJmgF/tCiIKVa11xsFwt8 AXWl0LnvEGF+/KRfpax4NnKCAM1bQJv5+WW7DAA= X-Google-Smtp-Source: APXvYqw66BDokdBxyKl2ZBebLXBdM0Uc+EDEJXEwWO/OOdpU9zSB4XfPNlLYUumfYtGYq8zDk75S62/byvrXBZWShig= X-Received: by 2002:ac8:32ec:: with SMTP id a41mr2625217qtb.18.1567678872786; Thu, 05 Sep 2019 03:21:12 -0700 (PDT) MIME-Version: 1.0 References: <20190830220743.439670-14-lkundrak@v3.sk> <201909021510.0g4L7Wva%lkp@intel.com> In-Reply-To: <201909021510.0g4L7Wva%lkp@intel.com> From: Arnd Bergmann Date: Thu, 5 Sep 2019 12:20:56 +0200 Message-ID: Subject: Re: [PATCH v3 13/16] ARM: mmp: move cputype.h to include/linux/soc/ To: kbuild test robot X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190905_032113_966346_07EB7785 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , DTML , Jason Cooper , Stephen Boyd , Michael Turquette , "linux-kernel@vger.kernel.org" , Russell King , Lubomir Rintel , "Cc : Rob Herring" , kbuild-all@01.org, "To : Olof Johansson" , Thomas Gleixner , Kishon Vijay Abraham I , linux-clk , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 2, 2019 at 10:16 AM kbuild test robot 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 > 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 #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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel