]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: tidspbridge: remove OPTIONAL
authorMenon, Nishanth <nm@ti.com>
Thu, 22 Jul 2010 21:03:48 +0000 (16:03 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 21:41:04 +0000 (14:41 -0700)
OPTIONAL modifier makes no sense in linux kernel

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tidspbridge/core/chnl_sm.c
drivers/staging/tidspbridge/include/dspbridge/cod.h
drivers/staging/tidspbridge/include/dspbridge/dspchnl.h
drivers/staging/tidspbridge/include/dspbridge/dspdefs.h
drivers/staging/tidspbridge/include/dspbridge/node.h
drivers/staging/tidspbridge/include/dspbridge/proc.h
drivers/staging/tidspbridge/pmgr/cod.c
drivers/staging/tidspbridge/rmgr/dbdcd.c
drivers/staging/tidspbridge/rmgr/nldr.c
drivers/staging/tidspbridge/rmgr/node.c
drivers/staging/tidspbridge/rmgr/proc.c

index 01d4a221dad8ac2fc760e82e9dfd7f9c6d4897a0..7640547a8a4374fd7d076280622394aae39ff70a 100644 (file)
@@ -91,7 +91,7 @@ static int search_free_channel(struct chnl_mgr *chnl_mgr_obj,
  */
 int bridge_chnl_add_io_req(struct chnl_object *chnl_obj, void *host_buf,
                               u32 byte_size, u32 buf_size,
-                              OPTIONAL u32 dw_dsp_addr, u32 dw_arg)
+                              u32 dw_dsp_addr, u32 dw_arg)
 {
        int status = 0;
        struct chnl_object *pchnl = (struct chnl_object *)chnl_obj;
index 6f01c62c7e694ac769904640b1afe8fd63eda181..f2d205cfdd903902e953821da5c09be6874a8041 100644 (file)
@@ -93,7 +93,7 @@ extern void cod_close(struct cod_libraryobj *lib);
  */
 extern int cod_create(OUT struct cod_manager **mgr,
                             char *str_zl_file,
-                            OPTIONAL const struct cod_attrs *attrs);
+                            const struct cod_attrs *attrs);
 
 /*
  *  ======== cod_delete ========
index 9f489a587f02b6f899fd4a3be085a5c3d1b06d24..3f562222890e388f7c64c176fc2f213c1613b3a7 100644 (file)
@@ -35,7 +35,7 @@ extern int bridge_chnl_open(OUT struct chnl_object **chnl,
                                   struct chnl_mgr *hchnl_mgr,
                                   s8 chnl_mode,
                                   u32 ch_id,
-                                  const OPTIONAL struct chnl_attr
+                                  const struct chnl_attr
                                   *pattrs);
 
 extern int bridge_chnl_close(struct chnl_object *chnl_obj);
@@ -43,7 +43,7 @@ extern int bridge_chnl_close(struct chnl_object *chnl_obj);
 extern int bridge_chnl_add_io_req(struct chnl_object *chnl_obj,
                                      void *host_buf,
                                      u32 byte_size, u32 buf_size,
-                                     OPTIONAL u32 dw_dsp_addr, u32 dw_arg);
+                                     u32 dw_dsp_addr, u32 dw_arg);
 
 extern int bridge_chnl_get_ioc(struct chnl_object *chnl_obj,
                                   u32 timeout, OUT struct chnl_ioc *chan_ioc);
index ea0ed0ae56ef5051aab4e3f906cfb4131424538e..ea1124c7dc29d1188948559b94970c0566a6c3fa 100644 (file)
@@ -412,7 +412,7 @@ typedef int(*fxn_chnl_open) (OUT struct chnl_object
                                    struct chnl_mgr *hchnl_mgr,
                                    s8 chnl_mode,
                                    u32 ch_id,
-                                   const OPTIONAL struct
+                                   const struct
                                    chnl_attr * pattrs);
 
 /*
@@ -475,7 +475,7 @@ typedef int(*fxn_chnl_addioreq) (struct chnl_object
                                        void *host_buf,
                                        u32 byte_size,
                                        u32 buf_size,
-                                       OPTIONAL u32 dw_dsp_addr, u32 dw_arg);
+                                       u32 dw_dsp_addr, u32 dw_arg);
 
 /*
  *  ======== bridge_chnl_get_ioc ========
index 44c0da2bf99057e9caec030302bc0f08ec3d61b1..b226c87a0d9e28d6d5b906506c530a5e005b66db 100644 (file)
@@ -57,8 +57,8 @@
  */
 extern int node_allocate(struct proc_object *hprocessor,
                                const struct dsp_uuid *node_uuid,
-                               OPTIONAL const struct dsp_cbdata
-                               *pargs, OPTIONAL const struct dsp_nodeattrin
+                               const struct dsp_cbdata
+                               *pargs, const struct dsp_nodeattrin
                                *attr_in,
                                OUT struct node_object **ph_node,
                                struct process_context *pr_ctxt);
@@ -86,7 +86,7 @@ extern int node_allocate(struct proc_object *hprocessor,
  *  Ensures:
  */
 extern int node_alloc_msg_buf(struct node_object *hnode,
-                                    u32 usize, OPTIONAL struct dsp_bufferattr
+                                    u32 usize, struct dsp_bufferattr
                                     *pattr, OUT u8 **pbuffer);
 
 /*
@@ -182,8 +182,8 @@ extern int node_connect(struct node_object *node1,
                               u32 stream1,
                               struct node_object *node2,
                               u32 stream2,
-                              OPTIONAL struct dsp_strmattr *pattrs,
-                              OPTIONAL struct dsp_cbdata
+                              struct dsp_strmattr *pattrs,
+                              struct dsp_cbdata
                               *conn_param);
 
 /*
@@ -335,7 +335,7 @@ extern void node_exit(void);
  */
 extern int node_free_msg_buf(struct node_object *hnode,
                                    u8 *pbuffer,
-                                   OPTIONAL struct dsp_bufferattr
+                                   struct dsp_bufferattr
                                    *pattr);
 
 /*
index 01e597a07ecf7ba5f085d05bff433a32674cdf27..c872f6356aeae4ca86c60148460e00b2b0105a0c 100644 (file)
@@ -52,7 +52,7 @@ extern char *iva_img;
  *      When attr_in is NULL, the default timeout value is 10 seconds.
  */
 extern int proc_attach(u32 processor_id,
-                             OPTIONAL const struct dsp_processorattrin
+                             const struct dsp_processorattrin
                              *attr_in, void **ph_processor,
                              struct process_context *pr_ctxt);
 
index a5c5a3ab362ed4aa4c7370993bfa85695389dd13..d25f8ce75e43dca2a7996f7a4f211f8108801e21 100644 (file)
@@ -217,7 +217,7 @@ void cod_close(struct cod_libraryobj *lib)
  *
  */
 int cod_create(OUT struct cod_manager **mgr, char *str_zl_file,
-                     OPTIONAL const struct cod_attrs *attrs)
+                     const struct cod_attrs *attrs)
 {
        struct cod_manager *mgr_new;
        struct dbll_attrs zl_attrs;
index 0281eb2db6c6cc90c41da6eb0b7bd8359e4d7b53..c89db0ec5548827963dedf1af78214f489621b3d 100644 (file)
@@ -70,9 +70,9 @@ static char dsp_char2_gpp_char(char *word, s32 dsp_char_size);
 static int get_dep_lib_info(struct dcd_manager *hdcd_mgr,
                                   struct dsp_uuid *uuid_obj,
                                   OUT u16 *num_libs,
-                                  OPTIONAL OUT u16 *num_pers_libs,
-                                  OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
-                                  OPTIONAL OUT bool *prstnt_dep_libs,
+                                  OUT u16 *num_pers_libs,
+                                  OUT struct dsp_uuid *dep_lib_uuids,
+                                  OUT bool *prstnt_dep_libs,
                                   enum nldr_phase phase);
 
 /*
@@ -1394,9 +1394,9 @@ static char dsp_char2_gpp_char(char *word, s32 dsp_char_size)
 static int get_dep_lib_info(struct dcd_manager *hdcd_mgr,
                                   struct dsp_uuid *uuid_obj,
                                   OUT u16 *num_libs,
-                                  OPTIONAL OUT u16 *num_pers_libs,
-                                  OPTIONAL OUT struct dsp_uuid *dep_lib_uuids,
-                                  OPTIONAL OUT bool *prstnt_dep_libs,
+                                  OUT u16 *num_pers_libs,
+                                  OUT struct dsp_uuid *dep_lib_uuids,
+                                  OUT bool *prstnt_dep_libs,
                                   enum nldr_phase phase)
 {
        struct dcd_manager *dcd_mgr_obj = hdcd_mgr;
index 1215f63493d7bdc57dec41305d11507828c8845d..e35ee7df634b8e22581b969f64c13b188a92c365 100644 (file)
@@ -307,8 +307,8 @@ static int load_ovly(struct nldr_nodeobject *nldr_node_obj,
                            enum nldr_phase phase);
 static int remote_alloc(void **ref, u16 mem_sect, u32 size,
                               u32 align, u32 *dsp_address,
-                              OPTIONAL s32 segmnt_id,
-                              OPTIONAL s32 req, bool reserve);
+                              s32 segmnt_id,
+                              s32 req, bool reserve);
 static int remote_free(void **ref, u16 space, u32 dsp_address, u32 size,
                              bool reserve);
 
@@ -1630,7 +1630,7 @@ func_end:
  */
 static int remote_alloc(void **ref, u16 mem_sect, u32 size,
                               u32 align, u32 *dsp_address,
-                              OPTIONAL s32 segmnt_id, OPTIONAL s32 req,
+                              s32 segmnt_id, s32 req,
                               bool reserve)
 {
        struct nldr_nodeobject *hnode = (struct nldr_nodeobject *)ref;
index bb6695971e90265af22094ae6aef89494ec334c4..069ee9e5e28ccb6fc85d897270c71e9aefc2f8f0 100644 (file)
@@ -292,8 +292,8 @@ enum node_state node_get_state(void *hnode)
  */
 int node_allocate(struct proc_object *hprocessor,
                         const struct dsp_uuid *node_uuid,
-                        OPTIONAL const struct dsp_cbdata *pargs,
-                        OPTIONAL const struct dsp_nodeattrin *attr_in,
+                        const struct dsp_cbdata *pargs,
+                        const struct dsp_nodeattrin *attr_in,
                         OUT struct node_object **ph_node,
                         struct process_context *pr_ctxt)
 {
@@ -685,7 +685,7 @@ func_end:
  *      Allocates buffer for zero copy messaging.
  */
 DBAPI node_alloc_msg_buf(struct node_object *hnode, u32 usize,
-                        OPTIONAL OUT struct dsp_bufferattr *pattr,
+                        OUT struct dsp_bufferattr *pattr,
                         OUT u8 **pbuffer)
 {
        struct node_object *pnode = (struct node_object *)hnode;
@@ -833,8 +833,8 @@ func_end:
  */
 int node_connect(struct node_object *node1, u32 stream1,
                        struct node_object *node2,
-                       u32 stream2, OPTIONAL struct dsp_strmattr *pattrs,
-                       OPTIONAL struct dsp_cbdata *conn_param)
+                       u32 stream2, struct dsp_strmattr *pattrs,
+                       struct dsp_cbdata *conn_param)
 {
        struct node_mgr *hnode_mgr;
        char *pstr_dev_name = NULL;
@@ -1674,7 +1674,7 @@ void node_exit(void)
  *      Frees the message buffer.
  */
 int node_free_msg_buf(struct node_object *hnode, u8 * pbuffer,
-                            OPTIONAL struct dsp_bufferattr *pattr)
+                            struct dsp_bufferattr *pattr)
 {
        struct node_object *pnode = (struct node_object *)hnode;
        int status = 0;
index c1559ee2d1be4736c53f4bd1243a49013ea2eb5e..be137ad39a7cfd2bdb363629bb704deca09abf17 100644 (file)
@@ -272,7 +272,7 @@ static inline struct page *get_mapping_page(struct dmm_map_object *map_obj,
  */
 int
 proc_attach(u32 processor_id,
-           OPTIONAL const struct dsp_processorattrin *attr_in,
+           const struct dsp_processorattrin *attr_in,
            void **ph_processor, struct process_context *pr_ctxt)
 {
        int status = 0;