Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1608745imj; Thu, 14 Feb 2019 09:06:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IYpy3XJhy6qb+9sbL82y0k/hsOIIMRMX6hnvXOWLNXxDNgrSusYOTnLFVfNaDtn58wLUqRm X-Received: by 2002:a63:fe58:: with SMTP id x24mr846200pgj.255.1550163988343; Thu, 14 Feb 2019 09:06:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550163988; cv=none; d=google.com; s=arc-20160816; b=YXG3iDPwYh6hOrmNvWZSsDJKqzAobCGPj/dILjztRWaWOaeBJLjwR6qu6OMH+sl9jQ 1ShYlhvio5Zvvaq0th3g4osB5cURyg6sgKa+tAQlaAO5vowJBIpJ1WMDE2nqXYbAtEVf aATMPqIaG4BaJ5SLuo+J5rHosi+2SdZN+aKft0wWkGbTK1AiDM1ITsfKWoKR6LzcdO15 l7xY16cajewrWFDdGRXlY2/7Zy+SyKl6POloXF75ZXPHpHypfcbvj9gdd1Bw8gRyr6MJ FRTo2VNJ14YzOqe0I7uxEEBpSNxkZnJxAPeA2seA/JzpDx2MRr9dMg/OGVzKlF1ysV6K 15zw== 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:dkim-signature; bh=UGOe1QWxBfW7ndQ+5pJ1730NUq1Y6MJhDOUpYpQMxe0=; b=voAtbmcVSepO7RgxdLr/qmdwFl07HDuYhWEkWyvUCX3XoGr3Mg8k+AL/WaXIN3KmBg 8+k0sgWBaPO9v0lC33KVFM329GffUeK58gePpcYr8PaIi6UgxCAEpX9B77jkUdVEtLf/ ukHyPNXVjOL1dTV4cEqAmz79KYeDpggt94Iv0Fc+J89kOQGaBkzHaEy1pNVRarLSI+aR c9sth241fS0ca8pH7XvQ/YYR7kuehFad8BR/dG4xqppq7wY/DAD6gCtcfV5obE63YiBD 96CK0eTgtWJFs4zglL3ybkPkbNhLlxv+AP9FQYLh2GQvf/URQZIpMF0LQA2mSArbYVzw dvCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=VhubYzw9; 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 y3si2844959plt.333.2019.02.14.09.06.12; Thu, 14 Feb 2019 09:06:28 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=VhubYzw9; 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 S2437423AbfBNI0W (ORCPT + 99 others); Thu, 14 Feb 2019 03:26:22 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:21786 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387959AbfBNI0V (ORCPT ); Thu, 14 Feb 2019 03:26:21 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 440Txl2cQsz9tykV; Thu, 14 Feb 2019 09:26:19 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=VhubYzw9; dkim-adsp=pass; dkim-atps=neutral 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 Qw9cU7uYJVyD; Thu, 14 Feb 2019 09:26:19 +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 440Txl1TDkz9tykT; Thu, 14 Feb 2019 09:26:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550132779; bh=UGOe1QWxBfW7ndQ+5pJ1730NUq1Y6MJhDOUpYpQMxe0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=VhubYzw92naM79UL/+0hi+1+NEcvnnU3bQRHgsGDBfIqBacAR7/iK9YAL6AcenuJf YEkGq9lsGySsSDJasFWezq6po3hyapKUbVThJHkW8IFFpesSPbZsm1lzhHw1avf6wq MI0quGZdL2izttXopZLDeuWbOD0y9bNCjy7DyziQ= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 173748B87D; Thu, 14 Feb 2019 09:26:20 +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 590FFlPJ2vnd; Thu, 14 Feb 2019 09:26:20 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 79F0F8B756; Thu, 14 Feb 2019 09:26:19 +0100 (CET) Subject: Re: [PATCH 01/11] powerpc: remove dead ifdefs in To: Christoph Hellwig , Masahiro Yamada Cc: linux-xtensa@linux-xtensa.org, linux-s390@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org References: <20190213174005.28785-1-hch@lst.de> <20190213174005.28785-2-hch@lst.de> From: Christophe Leroy Message-ID: Date: Thu, 14 Feb 2019 09:26:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190213174005.28785-2-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 13/02/2019 à 18:39, Christoph Hellwig a écrit : > __KERNEL__ is never not defined for non-uapi headers, and GENERIC_CSUM > isn't ever set for powerpc either. GENERIC_CSUM was abandonned by commit d4fde568a34a ("powerpc/64: Use optimized checksum routines on little-endian") Could you also remove the 'config GENERIC_CSUM' item in arch/powerpc/Kconfig ? Christophe > > Signed-off-by: Christoph Hellwig > --- > arch/powerpc/include/asm/checksum.h | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/arch/powerpc/include/asm/checksum.h b/arch/powerpc/include/asm/checksum.h > index a78a57e5058d..37c309500260 100644 > --- a/arch/powerpc/include/asm/checksum.h > +++ b/arch/powerpc/include/asm/checksum.h > @@ -1,6 +1,5 @@ > #ifndef _ASM_POWERPC_CHECKSUM_H > #define _ASM_POWERPC_CHECKSUM_H > -#ifdef __KERNEL__ > > /* > * This program is free software; you can redistribute it and/or > @@ -9,9 +8,6 @@ > * 2 of the License, or (at your option) any later version. > */ > > -#ifdef CONFIG_GENERIC_CSUM > -#include > -#else > #include > #include > /* > @@ -217,6 +213,4 @@ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, > const struct in6_addr *daddr, > __u32 len, __u8 proto, __wsum sum); > > -#endif > -#endif /* __KERNEL__ */ > -#endif > +#endif /* _ASM_POWERPC_CHECKSUM_H */ >