Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6864340imu; Mon, 21 Jan 2019 18:04:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ZM3NdG48+vY1zXCUYBjXY+gaCZJ/fUVXPt80NDH/+c+bzRqOOO/AZcDVush3vDfZSaLL5 X-Received: by 2002:a17:902:8a95:: with SMTP id p21mr32999597plo.183.1548122650494; Mon, 21 Jan 2019 18:04:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548122650; cv=none; d=google.com; s=arc-20160816; b=mLsUU056y7g+oOBQkX/p1I91Wi1w7D2o+z81xcR2MRQlbc5jk1sGmhfpYIbnU1m3KT aPs8k60a0gRQJ0XNj2KFpcssB/8TGQGArb34W2rl+9HAMznn2anpKv+igVtnNmL14R9p q4+DJ33qdG2E7cGt9hdu6r0NJqSPb7F6qDcjbMYlIftFNLVF5Cn07O5MVSsJR7PJdy6+ h2OQZCIYXMziJ0YdxyEfNUN4DZvYneU3A6YNVugoA4cCrpMsIboQNkpUiQRN0GJOziqh +deN4lCDS++7BkbF6gHjweBbe+xqqqaYqHMT4p9c2kltPlxQTtXr92uMVan94yCawkG2 XNPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=3KjszKj7hQE/0MhMfckZri1t/eeBuLPzkQH2181wOFo=; b=hOcJpae9dXYKly3LFCaKTjTMyPex/6afFebYT8Ju4aJF9ctBpMgaIXamVTp2VpdzXp u8ebVDnsmh5BC3/lgmW+ew9GrAoIf/dfrJsQrzFPr7KKNLG6bNH8y/kx5GtCRM0f92LA wRKUglrFW5kkgjdh+WkvRaX5nFlNI67qHzFn5EvMWgwePdeNBzWWeWj2XkahqjcX2/v2 +cs07opCUr9BYBnKIpzcmfMJk4IbUdz9267SwXwtaOAi4PInNpC/m5YHYXrZkVTvNGWq 7Go3apTfvL3/Hp1atgRy4DxUZ6F+QMK2KsLPaG0AGdC8YqrspNMIQB0J1hWSZjrFMEOw FUdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=YeKQSxGa; 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 m15si14544955pfd.3.2019.01.21.18.03.54; Mon, 21 Jan 2019 18:04:10 -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=@nifty.com header.s=dec2015msa header.b=YeKQSxGa; 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 S1726766AbfAVCCG (ORCPT + 99 others); Mon, 21 Jan 2019 21:02:06 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:56995 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726601AbfAVCCG (ORCPT ); Mon, 21 Jan 2019 21:02:06 -0500 Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x0M21ptg027105; Tue, 22 Jan 2019 11:01:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x0M21ptg027105 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548122512; bh=3KjszKj7hQE/0MhMfckZri1t/eeBuLPzkQH2181wOFo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YeKQSxGa1HkCdiLdGwkOso2NappFwj5TacZlzLBUuhYtmCXU/vkSBfg0tLaFste7A 0i+b0Em/X2546+jWx4B8ymFFPJYbCz8JRFwemqhqJiNI1yhMnIniQqFyrn8WcwZhum 84msA0BClqJWkBZFHaA17wsaS+X8iVe7Qm1F9qdXHY8aUh8e4WwMumbCJczGCBMRBs a+RtlxmihYJ5EYPv+kUGMRN2bzfdDjBsyIkulTHNKrarp/u5B0O8PrfgaHolOs6gZT AoPW4VsnzxNBfuz/Gd0QdUXuS2PL5AulzNb6R0GE6L6/xBTUvfW0w/zMP4YM+uh07o dI+xrYqLX079w== X-Nifty-SrcIP: [209.85.222.52] Received: by mail-ua1-f52.google.com with SMTP id t8so7582124uap.0; Mon, 21 Jan 2019 18:01:51 -0800 (PST) X-Gm-Message-State: AJcUukdOsrz1ru3Ab+pwN2qW5n5vi4mzth1RXozccm4hX5GNIB9+WLb2 8Bsj1x1tUyAjjwRLWDY00QUh8lmW83yhwOzogsc= X-Received: by 2002:ab0:849:: with SMTP id b9mr12700737uaf.93.1548122510513; Mon, 21 Jan 2019 18:01:50 -0800 (PST) MIME-Version: 1.0 References: <1548038929-11814-1-git-send-email-yamada.masahiro@socionext.com> <20190121174106.6tgokdtlo5f72hdx@pburton-laptop> In-Reply-To: <20190121174106.6tgokdtlo5f72hdx@pburton-laptop> From: Masahiro Yamada Date: Tue, 22 Jan 2019 11:01:14 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] MIPS: remove meaningless generic-(CONFIG_GENERIC_CSUM) += checksum.h To: Paul Burton Cc: "linux-mips@vger.kernel.org" , Ralf Baechle , James Hogan , "linux-kernel@vger.kernel.org" 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 Hi Paul, On Tue, Jan 22, 2019 at 2:44 AM Paul Burton wrote: > > Hi Masahiro, > > On Mon, Jan 21, 2019 at 11:48:49AM +0900, Masahiro Yamada wrote: > > This line is weird in multiple ways. > > > > (CONFIG_GENERIC_CSUM) might be a typo of $(CONFIG_GENERIC_CSUM). > > > > Even if you add '$' to it, $(CONFIG_GENERIC_CSUM) is never evaluated > > to 'y' because scripts/Makefile.asm-generic does not include > > include/config/auto.conf. So, the asm-generic wrapper of checksum.h > > is never generated. > > > > Even if you manage to generate it, it is never included by anyone > > because MIPS has the checkin header with the same file name: > > > > arch/mips/include/asm/checksum.h > > > > As you see in the top Makefile, the checkin headers are included before > > generated ones. > > > > LINUXINCLUDE := \ > > -I$(srctree)/arch/$(SRCARCH)/include \ > > -I$(objtree)/arch/$(SRCARCH)/include/generated \ > > ... > > > > Commit 4e0748f5beb9 ("MIPS: Use generic checksum functions for MIPS R6") > > already added the asm-generic fallback code in the checkin header: > > > > #ifdef CONFIG_GENERIC_CSUM > > #include > > #else > > ... > > #endif > > > > Signed-off-by: Masahiro Yamada > > Good catch. Would you prefer to take this through your kbuild tree or > that I take it through the MIPS tree? Could you apply it to MIPS tree? Thanks. -- Best Regards Masahiro Yamada