[PATCH 33/37] include/hw/s390x: Remove ifndef CONFIG_USER_ONLY in css.h

Richard Henderson posted 37 patches 8 months, 1 week ago
There is a newer version of this series
[PATCH 33/37] include/hw/s390x: Remove ifndef CONFIG_USER_ONLY in css.h
Posted by Richard Henderson 8 months, 1 week ago
We were hiding a number of declarations from user-only,
although it hurts nothing to allow them.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 include/hw/s390x/css.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/hw/s390x/css.h b/include/hw/s390x/css.h
index cd97e2b707..965545ce73 100644
--- a/include/hw/s390x/css.h
+++ b/include/hw/s390x/css.h
@@ -238,7 +238,6 @@ uint32_t css_get_adapter_id(CssIoAdapterType type, uint8_t isc);
 void css_register_io_adapters(CssIoAdapterType type, bool swap, bool maskable,
                               uint8_t flags, Error **errp);
 
-#ifndef CONFIG_USER_ONLY
 SubchDev *css_find_subch(uint8_t m, uint8_t cssid, uint8_t ssid,
                          uint16_t schid);
 bool css_subch_visible(SubchDev *sch);
@@ -262,7 +261,6 @@ int css_enable_mss(void);
 IOInstEnding css_do_rsch(SubchDev *sch);
 int css_do_rchp(uint8_t cssid, uint8_t chpid);
 bool css_present(uint8_t cssid);
-#endif
 
 extern const PropertyInfo css_devid_ro_propinfo;
 
-- 
2.43.0
Re: [PATCH 33/37] include/hw/s390x: Remove ifndef CONFIG_USER_ONLY in css.h
Posted by Pierrick Bouvier 8 months, 1 week ago
On 3/12/25 20:45, Richard Henderson wrote:
> We were hiding a number of declarations from user-only,
> although it hurts nothing to allow them.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   include/hw/s390x/css.h | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/include/hw/s390x/css.h b/include/hw/s390x/css.h
> index cd97e2b707..965545ce73 100644
> --- a/include/hw/s390x/css.h
> +++ b/include/hw/s390x/css.h
> @@ -238,7 +238,6 @@ uint32_t css_get_adapter_id(CssIoAdapterType type, uint8_t isc);
>   void css_register_io_adapters(CssIoAdapterType type, bool swap, bool maskable,
>                                 uint8_t flags, Error **errp);
>   
> -#ifndef CONFIG_USER_ONLY
>   SubchDev *css_find_subch(uint8_t m, uint8_t cssid, uint8_t ssid,
>                            uint16_t schid);
>   bool css_subch_visible(SubchDev *sch);
> @@ -262,7 +261,6 @@ int css_enable_mss(void);
>   IOInstEnding css_do_rsch(SubchDev *sch);
>   int css_do_rchp(uint8_t cssid, uint8_t chpid);
>   bool css_present(uint8_t cssid);
> -#endif
>   
>   extern const PropertyInfo css_devid_ro_propinfo;
>   

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>