From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754853AbdJIPHr (ORCPT ); Mon, 9 Oct 2017 11:07:47 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:49827 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754581AbdJIPHo (ORCPT ); Mon, 9 Oct 2017 11:07:44 -0400 X-IronPort-AV: E=Sophos;i="5.42,500,1500912000"; d="scan'208";a="57510593" From: Bart Van Assche To: "mst@redhat.com" CC: "hch@lst.de" , "linux-kernel@vger.kernel.org" , "torvalds@linux-foundation.org" Subject: Re: [PATCH] linux/types.h: Restore the ability to disable sparse endianness checks Thread-Topic: [PATCH] linux/types.h: Restore the ability to disable sparse endianness checks Thread-Index: AQHTPsfpNidr/j8ehUyvQHGzmN9zsKLbhcaAgAAdXoA= Date: Mon, 9 Oct 2017 15:07:42 +0000 Message-ID: <1507561661.2674.3.camel@wdc.com> References: <20171006172353.16758-1-bart.vanassche@wdc.com> <20171009162008-mutt-send-email-mst@kernel.org> In-Reply-To: <20171009162008-mutt-send-email-mst@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; x-originating-ip: [63.163.107.100] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1533;20:0kCYZkEFHNJyHi9zRi5a2cyipyEBRa/ucWiCwGDgFPJxzcWIy4ZM3gWf0vZpdR3FsODhqH9xUUxy0bU70lDl5Z1zVyRr2vmGIShfWXTOqmyao4VOzETeKnWHS02EBe9NTDZTZnfA0M6mJciEwcl6zAs6DY+rqZugC0oK2TE2zVA= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 7598b6af-8df1-4faf-167c-08d50f277d3b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:CY1PR0401MB1533; x-ms-traffictypediagnostic: CY1PR0401MB1533: wdcipoutbound: EOP-TRUE x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0401MB1533;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0401MB1533; x-forefront-prvs: 045584D28C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(39860400002)(24454002)(189002)(51444003)(377424004)(199003)(54906003)(3280700002)(3660700001)(189998001)(101416001)(36756003)(86362001)(50986999)(103116003)(2900100001)(6916009)(2950100002)(54356999)(229853002)(6436002)(76176999)(6506006)(68736007)(106356001)(6486002)(77096006)(81156014)(478600001)(66066001)(14454004)(81166006)(33646002)(2906002)(2351001)(5660300001)(105586002)(7736002)(305945005)(2501003)(4326008)(99286003)(5640700003)(8936002)(72206003)(6512007)(8676002)(1730700003)(25786009)(102836003)(316002)(53936002)(3846002)(6246003)(6116002)(97736004);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1533;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2017 15:07:42.0552 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1533 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v99F7qwP022820 On Mon, 2017-10-09 at 16:22 +0300, Michael S. Tsirkin wrote: > On Fri, Oct 06, 2017 at 10:23:53AM -0700, Bart Van Assche wrote: > > The purpose of patch "linux/types.h: enable endian checks for all > > sparse builds" was to encourage driver authors to annotate > > endianness correctly in their drivers. However, since that patch > > went upstream no endianness annotations in drivers have been fixed. > > I think that this shows that the followed approach does not work, > > probably because several driver authors do not use sparse. Restore > > the ability to disable sparse endianness checks such that it > > becomes again easy to review other sparse diagnostics for people > > who want to analyze drivers they are not the author of. > > > > References: commit 05de97003c77 ("linux/types.h: enable endian checks for all sparse builds") > > Signed-off-by: Bart Van Assche > > Cc: Christoph Hellwig > > Cc: Linus Torvalds > > I still think the new default is good. You probably want ability to > disable these checks selectively for the specific drivers though. Makes > it easier to spot what needs to be fixed. Hello MST, I agree with what you wrote. And what you described is what my patch implements - keep endianness checking enabled by default and make it possible to disable it selectively. Does that mean that you agree with the patch I posted? Thanks, Bart.