Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1766011AbdDSPfU (ORCPT ); Wed, 19 Apr 2017 11:35:20 -0400 Received: from twosheds.infradead.org ([90.155.92.209]:57348 "EHLO twosheds.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764426AbdDSPfT (ORCPT ); Wed, 19 Apr 2017 11:35:19 -0400 Message-ID: <1492616112.17682.266.camel@infradead.org> Subject: Re: [PATCH v3 1/6] mtd: dataflash: Replace C99 types with their kernel counterparts From: David Woodhouse To: Andrey Smirnov , linux-mtd@lists.infradead.org Cc: cphealy@gmail.com, Brian Norris , Boris Brezillon , Richard Weinberger , Cyrille Pitchen , linux-kernel@vger.kernel.org In-Reply-To: <20170419152305.17226-1-andrew.smirnov@gmail.com> References: <20170419152305.17226-1-andrew.smirnov@gmail.com> Content-Type: multipart/signed; micalg="sha-256"; protocol="application/x-pkcs7-signature"; boundary="=-yWy6MRY1EgkqyZEnT500" Date: Wed, 19 Apr 2017 16:35:12 +0100 Mime-Version: 1.0 X-Mailer: Evolution 3.18.5.2-0ubuntu3.1 X-SRS-Rewrite: SMTP reverse-path rewritten from by twosheds.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7714 Lines: 116 --=-yWy6MRY1EgkqyZEnT500 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2017-04-19 at 08:23 -0700, Andrey Smirnov wrote: > No functional change intended. FWIW I *deliberately* used the proper C datatypes throughout all of the MTD code instead of the silly kernel-speshul datatypes. To the extent of *fixing* submissions to be written in C when they were using the silly kernel types instead. There is a reason for the __u32 type in userspace APIs. There is basically no reason for 'u32' et al, just to save a trivial few characters in the type name. We might as well be using the proper language types. I appreciate that not everyone agrees with that, but at least it used to be consistent throughout the code I was maintaining. I'll defer to the currently active maintainers though... --=-yWy6MRY1EgkqyZEnT500 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCDzUw ggSvMIIDl6ADAgECAhEA4CPLFRKDU4mtYW56VGdrITANBgkqhkiG9w0BAQsFADBvMQswCQYDVQQG EwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRU UCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTE0MTIyMjAw MDAwMFoXDTIwMDUzMDEwNDgzOFowgZsxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1h bmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMUEw PwYDVQQDEzhDT01PRE8gU0hBLTI1NiBDbGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBF bWFpbCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAImxDdp6UxlOcFIdvFamBia3 uEngludRq/HwWhNJFaO0jBtgvHpRQqd5jKQi3xdhTpHVdiMKFNNKAn+2HQmAbqUEPdm6uxb+oYep LkNSQxZ8rzJQyKZPWukI2M+TJZx7iOgwZOak+FaA/SokFDMXmaxE5WmLo0YGS8Iz1OlAnwawsayT QLm1CJM6nCpToxDbPSBhPFUDjtlOdiUCISn6o3xxdk/u4V+B6ftUgNvDezVSt4TeIj0sMC0xf1m9 UjewM2ktQ+v61qXxl3dnUYzZ7ifrvKUHOHaMpKk4/9+M9QOsSb7K93OZOg8yq5yVOhM9DkY6V3Rh UL7GQD/L5OKfoiECAwEAAaOCARcwggETMB8GA1UdIwQYMBaAFK29mHo0tCb3+sQmVO8DveAky1Qa MB0GA1UdDgQWBBSSYW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