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.2 #3 (Red Hat Linux)) id 1i88HL-0006AF-Be for barebox@lists.infradead.org; Wed, 11 Sep 2019 19:27:48 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 11 Sep 2019 21:27:38 +0200 Message-Id: <20190911192738.16983-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20190911192738.16983-1-u.kleine-koenig@pengutronix.de> References: <20190911192738.16983-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 2/2] state: provide dummy implementations for some functions when STATE is disabled To: barebox@lists.infradead.org VGhpcyBhbGxvd3MgdG8gc2ltcGxpZnkgc29tZSBjYWxsZXJzIGFzIGNhbiBiZSBzZWVuIGZyb20g dGhlCnBoeXRlYy1zb20tYW0zMzV4L2JvYXJkLmMgY2hhbmdlLiAoVGhlIGNoZWNrIGZvciBzdGF0 ZSAhPSBOVUxMIGNvdWxkIGJlCmRyb3BwZWQgYWxyZWFkeSBiZWZvcmUuKQoKU2lnbmVkLW9mZi1i eTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KLS0t CiBhcmNoL2FybS9ib2FyZHMvcGh5dGVjLXNvbS1hbTMzNXgvYm9hcmQuYyB8IDE0ICsrKystLS0t LQogaW5jbHVkZS9zdGF0ZS5oICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAzNiArKysrKysr KysrKysrKysrKysrKysrKwogMiBmaWxlcyBjaGFuZ2VkLCA0MSBpbnNlcnRpb25zKCspLC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