Received: by 10.223.185.116 with SMTP id b49csp1050603wrg; Wed, 21 Feb 2018 11:12:36 -0800 (PST) X-Google-Smtp-Source: AH8x227p3iJvRU4xSnmcpXLFKLzW+RMbugQ7nb8Bh+rI5RFPtnS34AFmfNnHOp5oHmkXZ4Bs0NiK X-Received: by 10.98.253.17 with SMTP id p17mr4266251pfh.105.1519240356488; Wed, 21 Feb 2018 11:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519240356; cv=none; d=google.com; s=arc-20160816; b=tTqgl/KZFKT6NoYVhbknTqf+ux3TuQgZRekA9wgCp+5bUzgL+OCUBr/P3qdW+A62cA 58WIwaiZyU6n+IiLWi/6oH3YIzhZst1hS7GJ/pubr32Tw2yfVlF/jlGgZ6jRpJr2nhKD mgtcKwBJrA7p3evFOxMMYJiw8Kf4/M84CYz5kGb1Nn7EDF+IGcfb6pSv1UwIoye0CBbg OfTFfnoJNAi/GasIBsrowZ6NcJcIPEx7o4APqH3WnZeEHTizXVmyqs4EzIvJVgfyfrLy Te3ktxAY1uVX4CL89opRIzeIFX3g3QdKdF1+IJM+hHlFLXkfJgCTtdW8iR0hYK0pF6nP 2Ylg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=r6X3xrmkLKnzMiSllkRzsNCcuSuwM8L6rsg6tASQLHg=; b=wvQ7xBH7Ud1XRKect8U9l0n9bI2PpqZCxjQbqdg2FZVI932Hf26xrMvVuc2yqUxQ6N fzElQ3hqwDMlHxJt2uRoiPnO9CRX2Ci8/njyTO105j/FjIHzDvDA86GGq5jgmraB0ZjC azGiJV9cwnXN8AzrABjxDltgH7uDewKo5IKiAw9/jE3U9B2KgeSlmKPKUoOaohERanlX 1zeKzEG4T4I6N84YjzjR6Lr9u2+lP9XC9a4cFwDvjdwezJudRnTxbKS5Qv/f5i7VRDEi A/LjdLq0AhsbtIO/E5NkBPz+tV2Xhrum+LQBxdFKOnJDFDqBCQ88sBRhckEacJboMPY5 C7ug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j125si3414044pfg.348.2018.02.21.11.12.10; Wed, 21 Feb 2018 11:12:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938390AbeBURyf (ORCPT + 99 others); Wed, 21 Feb 2018 12:54:35 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:56890 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934039AbeBURxq (ORCPT ); Wed, 21 Feb 2018 12:53:46 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 3zmlTV11b1z9tvpp; Wed, 21 Feb 2018 18:53:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id qzWnqozFL3FX; Wed, 21 Feb 2018 18:53:34 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 3zmlTV0SnKz9tvpn; Wed, 21 Feb 2018 18:53:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E74948B92A; Wed, 21 Feb 2018 18:53:44 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id UopWkZAFI55B; Wed, 21 Feb 2018 18:53:44 +0100 (CET) Received: from [192.168.232.53] (unknown [192.168.232.53]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2D5B68B921; Wed, 21 Feb 2018 18:53:44 +0100 (CET) Subject: Re: [PATCH 5/6] powerpc: Implement DISCONTIGMEM and allow selection on PPC32 To: =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= Cc: Kate Stewart , Kees Cook , Greg Kroah-Hartman , Philippe Ombredanne , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michael Bringmann , Paul Mackerras , kbuild-all@01.org, Thiago Jung Bauermann , Nathan Fontenot , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Joel Stanley References: <20180220161424.5421-6-j.neuschaefer@gmx.net> <201802210756.OZokd64C%fengguang.wu@intel.com> <20180221160815.dxhpsejt74zeqqjd@latitude> From: christophe leroy Message-ID: Date: Wed, 21 Feb 2018 18:53:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180221160815.dxhpsejt74zeqqjd@latitude> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-Antivirus: Avast (VPS 180221-0, 21/02/2018), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 21/02/2018 ? 17:08, Jonathan Neusch?fer a ?crit?: > On Wed, Feb 21, 2018 at 07:46:28AM +0800, kbuild test robot wrote: > [...] >>>> include/linux/mmzone.h:1239:19: error: conflicting types for 'pfn_valid' >> static inline int pfn_valid(unsigned long pfn) >> ^~~~~~~~~ >> In file included from include/linux/mmzone.h:912:0, >> from include/linux/gfp.h:6, >> from include/linux/mm.h:10, >> from include/linux/mman.h:5, >> from arch/powerpc/kernel/asm-offsets.c:22: >> arch/powerpc/include/asm/mmzone.h:40:19: note: previous definition of 'pfn_valid' was here >> static inline int pfn_valid(int pfn) >> ^~~~~~~~~ >> make[2]: *** [arch/powerpc/kernel/asm-offsets.s] Error 1 >> make[2]: Target '__build' not remade because of errors. >> make[1]: *** [prepare0] Error 2 >> make[1]: Target 'prepare' not remade because of errors. >> make: *** [sub-make] Error 2 > > Oops, I'll fix this in the next version (and compile-test on ppc64...). > > Weirdly enough, x86-32 and parisc define pfn_valid with an int > parameter, too (both of them since the Beginning Of Time, aka. > v2.6.12-rc2). > Behind the fact that the pfn type is different, my understanding is that you have to define CONFIG_HAVE_ARCH_PFN_VALID in the Kconfig in order to avoid it being included in include/linux/mmzone.h Christophe --- L'absence de virus dans ce courrier ?lectronique a ?t? v?rifi?e par le logiciel antivirus Avast. https://www.avast.com/antivirus