• Maximilian Luz's avatar
    platform/surface: aggregator: Make SSAM_DEFINE_SYNC_REQUEST_x define static functions · 03ee3183
    Maximilian Luz authored
    The SSAM_DEFINE_SYNC_REQUEST_x() macros are intended to reduce
    boiler-plate code for SSAM request definitions by defining a wrapper
    function for the specified request. The client device variants of those
    macros, i.e. SSAM_DEFINE_SYNC_REQUEST_CL_x() in particular rely on the
    multi-device (MD) variants, e.g.:
    
        #define SSAM_DEFINE_SYNC_REQUEST_CL_R(name, rtype, spec...)   \
            SSAM_DEFINE_SYNC_REQUEST_MD_R(__raw_##name, rtype, spec)  \
            int name(struct ssam_device *sdev, rtype *ret)            \
            {                                                         \
                return __raw_##name(sdev->ctrl, sdev->uid.target,     \
                                    sdev->uid.instance, ret);         \
            }
    
    This now creates the problem that it is not possible to declare the
    generated functions static via
    
        static SSAM_DEFINE_SYNC_REQUEST_CL_R(...)
    
    as this will only apply to the function defined by the mul...
    03ee3183
client.rst 16.8 KB