From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCVFK-0007Zs-F4 for barebox@lists.infradead.org; Tue, 16 Oct 2018 19:43:16 +0000 From: Oleksij Rempel Date: Tue, 16 Oct 2018 21:42:56 +0200 Message-Id: <20181016194256.8984-1-o.rempel@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 v1] fs: fix different compile warnings To: barebox@lists.infradead.org Cc: Oleksij Rempel ZnMvZnMuYzo5NjoxODogd2FybmluZzogbm8gcHJldmlvdXMgcHJvdG90eXBlIGZvciDigJhtbnRn ZXTigJkgWy1XbWlzc2luZy1wcm90b3R5cGVzXQogc3RydWN0IHZmc21vdW50ICptbnRnZXQoc3Ry dWN0IHZmc21vdW50ICptbnQpCiAgICAgICAgICAgICAgICAgIF5+fn5+fgpmcy9mcy5jOjEwNjo2 OiB3YXJuaW5nOiBubyBwcmV2aW91cyBwcm90b3R5cGUgZm9yIOKAmG1udHB1dOKAmSBbLVdtaXNz aW5nLXByb3RvdHlwZXNdCiB2b2lkIG1udHB1dChzdHJ1Y3QgdmZzbW91bnQgKm1udCkKICAgICAg Xn5+fn5+CmZzL2ZzLmM6MTE0OjE4OiB3YXJuaW5nOiBubyBwcmV2aW91cyBwcm90b3R5cGUgZm9y IOKAmGxvb2t1cF9tbnTigJkgWy1XbWlzc2luZy1wcm90b3R5cGVzXQogc3RydWN0IHZmc21vdW50 ICpsb29rdXBfbW50KHN0cnVjdCBwYXRoICpwYXRoKQogICAgICAgICAgICAgICAgICBefn5+fn5+ fn5+CgpTaWduZWQtb2ZmLWJ5OiBPbGVr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