Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751259AbdCQJRn (ORCPT ); Fri, 17 Mar 2017 05:17:43 -0400 Received: from mga02.intel.com ([134.134.136.20]:29367 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751021AbdCQJRk (ORCPT ); Fri, 17 Mar 2017 05:17:40 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,176,1486454400"; d="gz'50?scan'50,208,50";a="68308425" Date: Fri, 17 Mar 2017 17:17:15 +0800 From: kbuild test robot To: Stephen Boyd Cc: kbuild-all@01.org, Frank Rowand , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] of: Mark property::value as const Message-ID: <201703171613.IWm6RSo1%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <148951941955.30407.4217812594792852642@sboyd-linaro> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 12377 Lines: 197 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Stephen, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc2 next-20170310] [cannot apply to glikely/devicetree/next] [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/Stephen-Boyd/of-Mark-property-value-as-const/20170317-143414 config: powerpc-allnoconfig (attached as .config) compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/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=powerpc All errors (new ones prefixed by >>): arch/powerpc/kernel/pci_32.c: In function 'pcibios_make_OF_bus_map': >> arch/powerpc/kernel/pci_32.c:141:10: error: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] memcpy(map_prop->value, pci_to_OF_bus_map, pci_bus_count); ^~~~~~~~ In file included from include/linux/string.h:18:0, from include/uapi/linux/uuid.h:21, from include/linux/uuid.h:19, from include/linux/mod_devicetable.h:12, from include/linux/pci.h:20, from arch/powerpc/kernel/pci_32.c:6: arch/powerpc/include/asm/string.h:21:15: note: expected 'void *' but argument is of type 'const void *' extern void * memcpy(void *,const void *,__kernel_size_t); ^~~~~~ cc1: all warnings being treated as errors vim +141 arch/powerpc/kernel/pci_32.c e05b3b4a Paul Mackerras 2006-01-15 125 */ e05b3b4a Paul Mackerras 2006-01-15 126 for (i=0; idn; 44ef3390 Stephen Rothwell 2007-12-10 132 e05b3b4a Paul Mackerras 2006-01-15 133 if (!node) e05b3b4a Paul Mackerras 2006-01-15 134 continue; e05b3b4a Paul Mackerras 2006-01-15 135 make_one_node_map(node, hose->first_busno); e05b3b4a Paul Mackerras 2006-01-15 136 } 8c8dc322 Stephen Rothwell 2007-04-24 137 dn = of_find_node_by_path("/"); 8c8dc322 Stephen Rothwell 2007-04-24 138 map_prop = of_find_property(dn, "pci-OF-bus-map", NULL); a7f67bdf Jeremy Kerr 2006-07-12 139 if (map_prop) { a7f67bdf Jeremy Kerr 2006-07-12 140 BUG_ON(pci_bus_count > map_prop->length); a7f67bdf Jeremy Kerr 2006-07-12 @141 memcpy(map_prop->value, pci_to_OF_bus_map, pci_bus_count); a7f67bdf Jeremy Kerr 2006-07-12 142 } 8c8dc322 Stephen Rothwell 2007-04-24 143 of_node_put(dn); e05b3b4a Paul Mackerras 2006-01-15 144 #ifdef DEBUG e05b3b4a Paul Mackerras 2006-01-15 145 printk("PCI->OF bus map:\n"); e05b3b4a Paul Mackerras 2006-01-15 146 for (i=0; i %d\n", i, pci_to_OF_bus_map[i]); :::::: The code at line 141 was first introduced by commit :::::: a7f67bdf2c9f24509b8e81e0f35573b611987c80 [POWERPC] Constify & voidify get_property() :::::: TO: Jeremy Kerr :::::: CC: Paul Mackerras --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation --tKW2IUtsqtDRztdT Content-Type: application/gzip Content-Disposition: attachment; filename=".config.gz" Content-Transfer-Encoding: base64 H4sICHyjy1gAAy5jb25maWcAjDzZctu4su/nK1gz9yGpupN4zVK3/ACBoIiIJBgAlGS/sBRZ SVSxJR8tM8nf326Qkrg0lElVyja6sTUavYN//ufPgO136+fZbjmfPT39Cr4tVovNbLd4DL4u nxb/F4QqyJQNRCjtG0BOlqv9z7cv638Wm5d5cPPm8vLNxV+b+VUwWmxWi6eAr1dfl9/2MMJy vfrPn9CDqyySwzLP+bubYLkNVutdsF3s/uOA+WY9X2y3602w3b+8rDc7aD11KAdKja5NeX11 96s1Uvnh9ufP5mBtoAd2c+Fpv6HbxdXFRRPQWxisqm579/Pn6Q9EiPKiuWaWWDkW3DOasWGZ pkV7hLqR2HyaliaRXBjPcDEbizKHrqbIc6Vts79Jcy/dQqX0QCQJMew4NMotpP6b50U5QBJl oWRZa+FNtOurgWxNzzSPyzy+NyULQ13a8t0NYJArcqhhyryYNV5FuGM3t3kjbJGXudBuoUwL Rk6RCREesUQ6gL8iqY0teVxkI2KuTJdSfzZ3t5dXhyZjGR9ZzbhokLuGVc3QI0rY0PThieKj UOR9gJ4YkZZTHg9h88A8Q6WljdMTgiNOzEwpEzW8Kosm0YciE1oCG0yEHMaW6IRUBRKVXMVC i8yWKTOj1iE2KXoYj5siJWgimE7uy1zLzDbHYBl0sTIVqrB3lx8uuqvLxpo1NmR4DNRXqbRl BADgXwUDCt1Zfcrua/aGKxby7s0owsGwvHx3e3tBnvdhbjsw9xl1GVkBYs7N1BxZ5CzXeOVp Rg1FxIrElo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