SPM: Add condition check for rhandle related context

'rhandle' is not needed if no connection based service exists.

Signed-off-by: Sherry Zhang <sherry.zhang2@arm.com>
Change-Id: I7b95d1ebb9e34644d78e50a96101ebaface820f7
diff --git a/interface/include/psa/service.h b/interface/include/psa/service.h
index 8addb75..977f394 100644
--- a/interface/include/psa/service.h
+++ b/interface/include/psa/service.h
@@ -79,11 +79,13 @@
                                  *  - secure partition id;
                                  *  - non secure client endpoint id.
                                  */
+#if CONFIG_TFM_CONNECTION_BASED_SERVICE_API == 1
     void *rhandle;              /* Be useful for binding a connection to some
                                  * application-specific data or function
                                  * pointer within the RoT Service
                                  * implementation.
                                  */
+#endif
     size_t in_size[PSA_MAX_IOVEC]; /* Provide the size of each client input
                                     * vector in bytes.
                                     */