linux-mips
[Top] [All Lists]

Re: [PATCH RESEND v3 4/4] MIPS: Loongson64: Load platform device during

To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: Re: [PATCH RESEND v3 4/4] MIPS: Loongson64: Load platform device during boot
From: kbuild test robot <lkp@intel.com>
Date: Thu, 7 Dec 2017 12:01:15 +0800
Cc: kbuild-all@01.org, James Hogan <james.hogan@mips.com>, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Jiaxun Yang <jiaxun.yang@flygoat.com>
In-reply-to: <20171204092312.11256-5-jiaxun.yang@flygoat.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20171204092312.11256-5-jiaxun.yang@flygoat.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.23 (2014-03-12)
Hi Jiaxun,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.15-rc2 next-20171206]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Jiaxun-Yang/MIPS-Lonngson64-Copy-kernel-command-line-from-arcs_cmdline/20171206-065745
config: mips-lemote2f_defconfig (attached as .config)
compiler: mips64el-linux-gnuabi64-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   arch/mips/loongson64/lemote-2f/platform.c: In function 
'lemote2f_platform_init':
>> arch/mips/loongson64/lemote-2f/platform.c:24:9: error: return makes integer 
>> from pointer without a cast [-Werror=int-conversion]
     return platform_device_register_simple("yeeloong_laptop", -1, NULL, 0);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +24 arch/mips/loongson64/lemote-2f/platform.c

    18  
    19  static int __init lemote2f_platform_init(void)
    20  {
    21          if (mips_machtype != MACH_LEMOTE_YL2F89)
    22                  return -ENODEV;
    23  
  > 24          return platform_device_register_simple("yeeloong_laptop", -1, 
NULL, 0);
    25  }
    26  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

<Prev in Thread] Current Thread [Next in Thread>