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.92 #3 (Red Hat Linux)) id 1i1uum-0008Td-3I for barebox@lists.infradead.org; Sun, 25 Aug 2019 15:58:50 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sun, 25 Aug 2019 17:58:39 +0200 Message-Id: <20190825155844.18455-3-u.kleine-koenig@pengutronix.de> In-Reply-To: <20190825155844.18455-1-u.kleine-koenig@pengutronix.de> References: <20190825155844.18455-1-u.kleine-koenig@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 v2 2/7] reset_source: fix ordering of exported functions To: barebox@lists.infradead.org RGVjbGFyZSBhbmQgaW1wbGVtZW50IGdldHRlcnMgZmlyc3QsIHRoZW4gc2V0dGVycy4gVGhpcyBz eW5jcyB0aGUgb3JkZXIKb2YgZnVuY3Rpb25zIGluIHJlc2V0X3NvdXJjZS5jIGFuZCByZXNldF9z b3VyY2UuaC4KClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2Vu aWdAcGVuZ3V0cm9uaXguZGU+Ci0tLQogY29tbW9uL3Jlc2V0X3NvdXJjZS5jICB8IDEyICsrKysr Ky0tLS0tLQogaW5jbHVkZS9yZXNldF9zb3VyY2UuaCB8IDMzICsrKysrKysrKysrKysrKysrKyst LS0tLS0tLS0tLS0tLQogMiBmaWxlcyBjaGFuZ2VkLCAyNSBpbnNlcnRpb25zKCspLCAyMCBkZWxl dGlvbnMoLSkKCmRpZmYgLS1naXQgYS9jb21tb24vcmVzZXRfc291cmNlLmMgYi9jb21tb24vcmVz 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