From c06486ba0b1fb3c3c37c2141cdeb13afcf3d88f6 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Wed, 18 Jan 2017 15:02:42 +0100 Subject: [PATCH] Mark env-less connection objects as deprecated This patch is the counterpart of the commit "Warn about the use of deprecated env() function" in Genode repository: https://github.com/genodelabs/genode/commit/a7f40b24cad0a34f0ac0bd9256a5285a6bf7cd94 --- include/gpio_session/zynq/connection.h | 2 +- include/i2c_session/connection.h | 3 ++- include/vdma_session/connection.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/gpio_session/zynq/connection.h b/include/gpio_session/zynq/connection.h index 2252df7..f0b74c6 100644 --- a/include/gpio_session/zynq/connection.h +++ b/include/gpio_session/zynq/connection.h @@ -21,7 +21,7 @@ namespace Gpio { struct Connection : Genode::Connection, Session_client { - Connection(unsigned gpio_number) + Connection(unsigned gpio_number) __attribute__((deprecated)) : Genode::Connection(session("ram_quota=8K, gpio=%zd", gpio_number)), Session_client(cap()) { } }; diff --git a/include/i2c_session/connection.h b/include/i2c_session/connection.h index 07ad211..8349223 100644 --- a/include/i2c_session/connection.h +++ b/include/i2c_session/connection.h @@ -25,7 +25,8 @@ namespace I2C { public Session_client { public: - Connection(unsigned int bus_num) : + Connection(unsigned int bus_num) __attribute__((deprecated)) + : Genode::Connection(session("ram_quota=4K, bus=%zd", bus_num)), Session_client(cap()) { } }; diff --git a/include/vdma_session/connection.h b/include/vdma_session/connection.h index e37df5c..6a93dd5 100644 --- a/include/vdma_session/connection.h +++ b/include/vdma_session/connection.h @@ -21,7 +21,7 @@ namespace Vdma { struct Connection : Genode::Connection, Session_client { - Connection(unsigned vdma_number) + Connection(unsigned vdma_number) __attribute__((deprecated)) : Genode::Connection(session("ram_quota=8K, vdma=%zd", vdma_number)), Session_client(cap()) { } };