From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XAb59-00032J-JE for barebox@lists.infradead.org; Fri, 25 Jul 2014 08:42:30 +0000 From: Sascha Hauer Date: Fri, 25 Jul 2014 10:42:04 +0200 Message-Id: <1406277724-4370-4-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1406277724-4370-1-git-send-email-s.hauer@pengutronix.de> References: <1406277724-4370-1-git-send-email-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/3] fs: ext4: le32_to_cpu() used on a 16-bit field To: barebox@lists.infradead.org RnJvbSBVLUJvb3QgY29tbWl0OgoKfCBjb21taXQgOGI0MTVmNzAzZjg4ZDFkM2IwNDY2ODMwMDQ3 YWZmYmJmN2YyNDkxMwp8IEF1dGhvcjogUm9tbWVsIEN1c3RvZGlvIDxzZXNzeWFyZ2MrdWJvb3RA Z21haWwuY29tPgp8IERhdGU6ICAgU3VuIEp1bCAyMSAxMDo1MzoyNSAyMDEzICswMjAwCnwKfCAg ICAgZXh0NGZzOiBsZTMyX3RvX2NwdSgpIHVzZWQgb24gYSAxNi1iaXQgZmllbGQKfAp8ICAgICBG aXggcmVhZGluZyBleHQ0X2V4dGVudF9oZWFkZXIgc3RydXR1cmUgb24gQkUgbWFjaGluZXMuICBT b21lIDE2IGJpdAp8ICAgICBmaWVsZHMgd2hlcmUgY29udmVydGVkIHRvIDMyIGJpdCBmaWVsZHMs IGR1ZSB0byB0aGUgYnl0ZSBzd2FwIG9uIEJFCnwgICAgIG1hY2hpbmVzIHRoZSBjb250YWluaW5n IHZhbHVl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