Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6489269imu; Mon, 21 Jan 2019 09:45:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Gm0ScdWpal/H6J0/UfZiT/NA7d2mmA44Vq9BK7+FFR5xxIEk9qfKAlWwb6dwDmLAIzOCJ X-Received: by 2002:a17:902:280b:: with SMTP id e11mr31036673plb.269.1548092706008; Mon, 21 Jan 2019 09:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548092705; cv=none; d=google.com; s=arc-20160816; b=fc+6YPbVhxY4MwpQWc/LDJmwEGX+Xh+auPmF1rSaVKWrL0vj1TcBEo5OPLfpoDPeie hIrnBIae5ZvjteMeFA1BKI5rMOdGbgnrM5v9HkcHC3mIvi/w1BKLiGLm7/01oQeYiDBy nKeCJu/t6XzG4BuD8d+xkEKcE+BaSxaADOmKQPDh7+D1fjR4khSecurczLXjf4XyQD9l Nvy4sc3Y+sCrQ/izhVug/aBbIhu1sG3T7FMMb3EoVogKLDTTX30ybm3eQ/ptajqIo8Ya 7FDj9TuqMWzZoehLrE7/Wsw3z+9MmwdDplmrN58Bpc4o2Zw9lrtHRp/o+Yl9Kh0TmMxU a0YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput:user-agent :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=A50WbKhjDtu2p+6NUqQLuyv7ZFG0Rd+Fwj77A0tmMwc=; b=IQI7Z9jqYkUXUoduNvaCExyb419f2dS/yWp1nMh5PDP+5JKhgq/K3750elwILU830P aUZPzOsZ/AiaSwhMEv94Nd/GXS8bMoGPnzCB1Q1BS5W93Y6dXLWsHJtex8p+I4dJoaU1 FCiT6b3ZhBdHtu4Ss2BWPVfovo4jZ8dDFMCeC7qXMD+8VfvZmT/DyXtPyCgCWprg8ehz ANMBx8JUm76Ti0uQM0apcZJItIDBjIWnmH8UPvdPaElHvUAfVk7jVp7V5VOXfaPjv6+g g02/8S+9SPN8gbVcoNuRdHOE4pW/Bd9LVdvVeFQtNEEbAzRsL+VR/MmslUTMPWQdDNLa 83EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=TvTjAyCy; 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 36si1031638pgt.213.2019.01.21.09.44.50; Mon, 21 Jan 2019 09:45:05 -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=@wavesemi.onmicrosoft.com header.s=selector1-wavecomp-com header.b=TvTjAyCy; 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 S1727955AbfAURlM (ORCPT + 99 others); Mon, 21 Jan 2019 12:41:12 -0500 Received: from mail-eopbgr810105.outbound.protection.outlook.com ([40.107.81.105]:63994 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726020AbfAURlM (ORCPT ); Mon, 21 Jan 2019 12:41:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A50WbKhjDtu2p+6NUqQLuyv7ZFG0Rd+Fwj77A0tmMwc=; b=TvTjAyCybiqVMN57UEUJuz+S7RxXKvaxs7q8DWPzN2p5/9Tc3LoJAO4sTQlHDGinnvwsl8W5SOWBs/lRRhwq6WgWCTHzo+XKJJeBIAwua0ho61DmMoY7V5kJgBLJJKULaMFynhaz5bOFFpmQHjep07HV3k0ULf1akeQX6VMfZes= Received: from MWHPR2201MB1277.namprd22.prod.outlook.com (10.174.162.17) by MWHPR2201MB1342.namprd22.prod.outlook.com (10.174.162.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.27; Mon, 21 Jan 2019 17:41:08 +0000 Received: from MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::595e:ffcc:435b:9110]) by MWHPR2201MB1277.namprd22.prod.outlook.com ([fe80::595e:ffcc:435b:9110%4]) with mapi id 15.20.1537.031; Mon, 21 Jan 2019 17:41:08 +0000 From: Paul Burton To: Masahiro Yamada CC: "linux-mips@vger.kernel.org" , Ralf Baechle , James Hogan , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] MIPS: remove meaningless generic-(CONFIG_GENERIC_CSUM) += checksum.h Thread-Topic: [PATCH] MIPS: remove meaningless generic-(CONFIG_GENERIC_CSUM) += checksum.h Thread-Index: AQHUsTPzBeyheRw78kmwimq8c2pb3KW5/pAA Date: Mon, 21 Jan 2019 17:41:08 +0000 Message-ID: <20190121174106.6tgokdtlo5f72hdx@pburton-laptop> References: <1548038929-11814-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: <1548038929-11814-1-git-send-email-yamada.masahiro@socionext.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR07CA0002.namprd07.prod.outlook.com (2603:10b6:a02:bc::15) To MWHPR2201MB1277.namprd22.prod.outlook.com (2603:10b6:301:24::17) user-agent: NeoMutt/20180716 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [67.207.99.198] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR2201MB1342;6:pddHqMQYfkotPQa/XgwIENhzho08FaMKGw7l8WlcEYQR4Fh4Y5RF73fGvTii6lRRW5lZAXpnZSkbAnalz9WeNmBUsJiKDgvuhrU65TRyqBtSx742pAvImlKFN5c/nohkMMQAEPFiM9Szhrzslo23KCCGt8pvjFrfyEEytAEvYa0uuqqelCFzZwaLUFq+shfw/JDP7la9ciQwlCgZ+j4LB6E0AE95yvyW9NZXCAp1I6P4iqitzGqqNKc+L3nXTj0VIRru1+IafkQgzaq/gHf1eXB7lf2rlc2Ll3HCJt6jhn0zibW1xXzWscr5Yu7VbXPs6aF/Z8Ayph0tc0vARowXf8w2Y9EB/DLefY138S5OdarW4YLxXVtfbk56svjPcm5Or+4fVaDlnzxeIq0cWAl+iHk2IoTTDe2bp/OO0B8vLSggQqljLXJqqhWiGvxuBU8AArKP4e1CfRQdA+22rLkpWg==;5:izu7K7LSsvMftFHBgF6W7x0XhItnpoq2Dewg91avVXH7zaoGWr1yrwzU+nMYm57qDLxlvsb+9KiIN8uv6ZSvPH1v9JOPcvK5svRLn8cPTYaJLZMses+TK39S8eU3rOHydp2YryANJM5jkK44aJ5KiqmA03w/9a0hmJxnBC1zdWQhHBSZfzHRmYkdhk7iI7o2JhdJIv6XORT8v4iH8J/cFA==;7:sPsNqZLw+lGjMKQrR8mhrId9TWrkMvKhB9UlZJSnXc6iAekZp92xbmnjFJqe47JRRn+oQubcvW81L2/34vFaANh1WjIU8dMiCphGLOBpJ5KOfo62WFmuDI/MWYuySQTeYZ3XRRNsacS9R7LQSjUDeQ== x-ms-office365-filtering-correlation-id: e34ef511-84db-4871-b80f-08d67fc79ff7 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020);SRVR:MWHPR2201MB1342; x-ms-traffictypediagnostic: MWHPR2201MB1342: x-microsoft-antispam-prvs: x-forefront-prvs: 0924C6A0D5 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(396003)(376002)(346002)(366004)(136003)(39840400004)(199004)(189003)(66066001)(106356001)(71200400001)(6916009)(71190400001)(7736002)(305945005)(81156014)(81166006)(97736004)(229853002)(8676002)(6486002)(476003)(68736007)(6436002)(42882007)(8936002)(105586002)(14454004)(256004)(99286004)(6512007)(9686003)(2906002)(11346002)(486006)(386003)(6506007)(446003)(33896004)(33716001)(4326008)(44832011)(54906003)(53936002)(76176011)(102836004)(186003)(316002)(478600001)(6116002)(3846002)(26005)(1076003)(58126008)(6246003)(52116002)(25786009)(41533002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR2201MB1342;H:MWHPR2201MB1277.namprd22.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gklPA3ML3GTGnJ5tEFbfObIupij/yI3HYeaAXrDp+uQxSNkIgjoYdyyamaKG5EA6QPNK+Cp6a4Tht7AsIq2p4NhgYItxoz7pe2KdbfhML5kJWcD7hEpuC4nOil/oHHYlhk5m8YL1wdJq93rNz6cIpqmeSmtRUrN4rRYklEtsnLNaoaiRzNq+zeiJvrDgCxpTgaOaa+7uDcBVv0PLiusMfGgUCq4GXOmuuSFiIB8AFAPaOOxnUsqLtuIlcBKYOMSQ7m35XSO/LIm2Myt25kMIs5XSCU78/04c9Cg7HQDENUR2MIPGQ2JOv24aL4PzT8PeZBqjauHMtuHJRMPEWGidDuCrKUbNTu02Ui56Xq0F73RNnnDO1WUEArGXhBq2WU9tjzHsZnALOm+DaCPhGbbiC9RmDd0o3nNZS3/JUH10ce4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <8A4B56CD14441446ACD2BC76E5F8EE43@namprd22.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-Network-Message-Id: e34ef511-84db-4871-b80f-08d67fc79ff7 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jan 2019 17:41:07.7984 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR2201MB1342 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, On Mon, Jan 21, 2019 at 11:48:49AM +0900, Masahiro Yamada wrote: > This line is weird in multiple ways. >=20 > (CONFIG_GENERIC_CSUM) might be a typo of $(CONFIG_GENERIC_CSUM). >=20 > 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. >=20 > Even if you manage to generate it, it is never included by anyone > because MIPS has the checkin header with the same file name: >=20 > arch/mips/include/asm/checksum.h >=20 > As you see in the top Makefile, the checkin headers are included before > generated ones. >=20 > LINUXINCLUDE :=3D \ > -I$(srctree)/arch/$(SRCARCH)/include \ > -I$(objtree)/arch/$(SRCARCH)/include/generated \ > ... >=20 > Commit 4e0748f5beb9 ("MIPS: Use generic checksum functions for MIPS R6") > already added the asm-generic fallback code in the checkin header: >=20 > #ifdef CONFIG_GENERIC_CSUM > #include > #else > ... > #endif >=20 > 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? If the former: Acked-by: Paul Burton Thanks, Paul