Staging:tidspbridge Fix minor checkpatch.pl warning
authorAdithya Krishnamurthy <linux.challenge1@gmail.com>
Thu, 19 Jun 2014 03:48:00 +0000 (09:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:16:04 +0000 (17:16 -0700)
Fixed checkpatch "WARNING: Missing a blank line after declarations"

Signed-off-by: Adithya Krishnamurthy <linux.challenge1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 files changed:
drivers/staging/tidspbridge/core/chnl_sm.c
drivers/staging/tidspbridge/core/io_sm.c
drivers/staging/tidspbridge/core/tiomap3430.c
drivers/staging/tidspbridge/core/tiomap_io.c
drivers/staging/tidspbridge/core/wdt.c
drivers/staging/tidspbridge/dynload/cload.c
drivers/staging/tidspbridge/dynload/reloc.c
drivers/staging/tidspbridge/pmgr/chnl.c
drivers/staging/tidspbridge/rmgr/dbdcd.c
drivers/staging/tidspbridge/rmgr/drv_interface.c
drivers/staging/tidspbridge/rmgr/nldr.c
drivers/staging/tidspbridge/rmgr/node.c
drivers/staging/tidspbridge/rmgr/proc.c

index 16fa3462fbbe851cb971cf41468f0c9c80c1abae..c855992f595088edee625eb4c1b3201eae6864a0 100644 (file)
@@ -486,6 +486,7 @@ int bridge_chnl_get_info(struct chnl_object *chnl_obj,
 {
        int status = 0;
        struct chnl_object *pchnl = (struct chnl_object *)chnl_obj;
+
        if (channel_info != NULL) {
                if (pchnl) {
                        /* Return the requested information: */
index c2829aa7780fb832fb814776c9bb63fb90af4cf8..42f94e157efdcfaa2f14416c1c7b7a6fb937e743 100644 (file)
@@ -249,6 +249,7 @@ int bridge_io_create(struct io_mgr **io_man,
 int bridge_io_destroy(struct io_mgr *hio_mgr)
 {
        int status = 0;
+
        if (hio_mgr) {
                /* Free IO DPC object */
                tasklet_kill(&hio_mgr->dpc_tasklet);
index 8945b4e3a2a6fcccf7e57687d6425f44400252b8..bf952ef7e6965a993e7dcf79c713a227ea33cf3f 100644 (file)
@@ -1057,6 +1057,7 @@ static int bridge_brd_mem_copy(struct bridge_dev_context *dev_ctxt,
        u32 total_bytes = ul_num_bytes;
        u8 host_buf[BUFFERSIZE];
        struct bridge_dev_context *dev_context = dev_ctxt;
+
        while (total_bytes > 0 && !status) {
                copy_bytes =
                    total_bytes > BUFFERSIZE ? BUFFERSIZE : total_bytes;
@@ -1094,6 +1095,7 @@ static int bridge_brd_mem_write(struct bridge_dev_context *dev_ctxt,
        struct bridge_dev_context *dev_context = dev_ctxt;
        u32 ul_remain_bytes = 0;
        u32 ul_bytes = 0;
+
        ul_remain_bytes = ul_num_bytes;
        while (ul_remain_bytes > 0 && !status) {
                ul_bytes =
index f53ed98d18c1986cc17a6753b1ed985173fc15eb..28364672c7f8365219b73f2696f9caa8edc3841c 100644 (file)
@@ -176,6 +176,7 @@ int write_dsp_data(struct bridge_dev_context *dev_context,
        struct cfg_hostres *resources = dev_context->resources;
        int status = 0;
        u32 base1, base2, base3;
+
        base1 = OMAP_DSP_MEM1_SIZE;
        base2 = OMAP_DSP_MEM2_BASE - OMAP_DSP_MEM1_BASE;
        base3 = OMAP_DSP_MEM3_BASE - OMAP_DSP_MEM1_BASE;
@@ -229,6 +230,7 @@ int write_ext_dsp_data(struct bridge_dev_context *dev_context,
        u32 ul_shm_offset_virt = 0;
        struct cfg_hostres *host_res = dev_context->resources;
        bool trace_load = false;
+
        temp_byte1 = 0x0;
        temp_byte2 = 0x0;
 
index c7ee467f0f12aaf88d63b3931cd9b04413ba53e7..b19f887dfd889415605eb4df112fcfd55f5d48ab 100644 (file)
@@ -33,6 +33,7 @@ static struct dsp_wdt_setting dsp_wdt;
 void dsp_wdt_dpc(unsigned long data)
 {
        struct deh_mgr *deh_mgr;
+
        dev_get_deh_mgr(dev_get_first(), &deh_mgr);
        if (deh_mgr)
                bridge_deh_notify(deh_mgr, DSP_WDTOVERFLOW, 0);
index 9d54744805b88a6ea9a3dba376685800996c34dd..83f2106ff8a7ef805a2a7c620777570346dd820f 100644 (file)
@@ -160,6 +160,7 @@ int dynamic_load_module(struct dynamic_loader_stream *module,
                if (!dl_state.dload_errcount) {
                        /* fix up entry point address */
                        unsigned sref = dl_state.dfile_hdr.df_entry_secn - 1;
+
                        if (sref < dl_state.allocated_secn_count)
                                dl_state.dfile_hdr.df_entrypt +=
                                    dl_state.ldr_sections[sref].run_addr;
@@ -269,6 +270,7 @@ dynamic_open_module(struct dynamic_loader_stream *module,
                if (!dl_state.dload_errcount) {
                        /* fix up entry point address */
                        unsigned sref = dl_state.dfile_hdr.df_entry_secn - 1;
+
                        if (sref < dl_state.allocated_secn_count)
                                dl_state.dfile_hdr.df_entrypt +=
                                    dl_state.ldr_sections[sref].run_addr;
@@ -476,6 +478,7 @@ static void allocate_sections(struct dload_state *dlthis)
        struct doff_scnhdr_t *shp;
        struct ldr_section_info *asecs;
        struct my_handle *hndl;
+
        nsecs = dlthis->dfile_hdr.df_no_scns;
        if (!nsecs)
                return;
@@ -1089,6 +1092,7 @@ static int relocate_packet(struct dload_state *dlthis,
                unsigned rinbuf;
                int siz;
                struct reloc_record_t *rp, rrec[MY_RELOC_BUF_SIZ];
+
                rp = rrec;
                rinbuf = rnum > MY_RELOC_BUF_SIZ ? MY_RELOC_BUF_SIZ : rnum;
                siz = rinbuf * sizeof(struct reloc_record_t);
@@ -1502,6 +1506,7 @@ static void swap_words(void *data, unsigned siz, unsigned bitmap)
        sp = (u16 *) data;
        do {
                register u16 tmp;
+
                tmp = *sp;
                *sp++ = SWAP16BY8(tmp);
        } while ((i -= 1) > 0);
@@ -1543,6 +1548,7 @@ static char *copy_tgt_strings(void *dstp, void *srcp, unsigned charcount)
        register tgt_au_t *src = (tgt_au_t *) srcp;
        register tgt_au_t *dst = (tgt_au_t *) dstp;
        register int cnt = charcount;
+
        do {
 #if TARGET_AU_BITS <= BITS_PER_AU
                /* byte-swapping issues may exist for strings on target */
@@ -1598,6 +1604,7 @@ static void init_module_handle(struct dload_state *dlthis)
        struct modules_header mhdr;
        struct ldr_section_info dllview_info;
        struct dynload_symbol *debug_mirror_sym;
+
        hndl = dlthis->myhandle;
        if (!hndl)
                return;         /* must be errors detected, so forget it */
index 463abdb6392f92413b4126aa8b00c473a806b167..bb422b6932904e1e2cb5b1dfea4aa8fcc61cebb2 100644 (file)
@@ -135,6 +135,7 @@ int dload_repack(struct dload_state *dlthis, rvalue val, tgt_au_t *data,
         */
        if (sgn) {
                unsigned tmp = (val >> fieldsz) + (sgn & 0x1);
+
                if (tmp > ovf_limit[sgn - 1])
                        return 1;
        }
@@ -403,6 +404,7 @@ void dload_relocate(struct dload_state *dlthis, tgt_au_t *data,
        case RACT_C6BASE:
                if (dlthis->bss_run_base == 0) {
                        struct dynload_symbol *symp;
+
                        symp = dlthis->mysym->find_matching_symbol
                            (dlthis->mysym, bsssymbol);
                        /* lookup value of global BSS base */
index 4bd8686f2355e82821a2497eaf81a74f3593cef2..e03c32679aa50c469a70aeb629cfad2b9c0c7266 100644 (file)
@@ -75,6 +75,7 @@ int chnl_create(struct chnl_mgr **channel_mgr,
 
        if (!status) {
                struct bridge_drv_interface *intf_fxns;
+
                dev_get_intf_fxns(hdev_obj, &intf_fxns);
                /* Let Bridge channel module finish the create: */
                status = (*intf_fxns->chnl_create) (&hchnl_mgr, hdev_obj,
index 2ae48c9a936213dc0868d0f2baa682060b12a309..c91d1d7d08840f76697a2f39591dd1c8af6eb1e1 100644 (file)
@@ -489,6 +489,7 @@ int dcd_get_object_def(struct dcd_manager *hdcd_mgr,
        strncpy(sz_sect_name, ".", 2);
        do {
                char *uuid = strsep(&tmp, "-");
+
                if (!uuid)
                        break;
                len -= strlen(uuid);
index 74d31dabe83235942e93115a8614fd839e03b15f..e3918d2efa17a1b796464eb75d07fe34d2e3a82a 100644 (file)
@@ -351,6 +351,7 @@ static void bridge_recover(struct work_struct *work)
 {
        struct dev_object *dev;
        struct cfg_devnode *dev_node;
+
        if (atomic_read(&bridge_cref)) {
                reinit_completion(&bridge_comp);
                while (!wait_for_completion_timeout(&bridge_comp,
@@ -638,6 +639,7 @@ int drv_remove_all_resources(void *process_ctxt)
 {
        int status = 0;
        struct process_context *ctxt = (struct process_context *)process_ctxt;
+
        drv_remove_all_strm_res_elements(ctxt);
        drv_remove_all_node_res_elements(ctxt);
        drv_remove_all_dmm_res_elements(ctxt);
index 5ac507ccd19d6aac6282d658317ef748e553f056..900585ab059a65fd1ae2ff56fab8d7ae0699ad4c 100644 (file)
@@ -1542,6 +1542,7 @@ static int remote_alloc(void **ref, u16 mem_sect, u32 size,
        struct rmm_addr *rmm_addr_obj = (struct rmm_addr *)dsp_address;
        bool mem_load_req = false;
        int status = -ENOMEM;   /* Set to fail */
+
        nldr_obj = hnode->nldr_obj;
        rmm = nldr_obj->rmm;
        /* Convert size to DSP words */
index 9d3044a384eeb4b882cc1cd24cb8cf26e86082a8..133f2dbc37623662262df5fc978918c9cd526b2d 100644 (file)
@@ -273,6 +273,7 @@ static struct node_ldr_fxns nldr_fxns = {
 enum node_state node_get_state(void *hnode)
 {
        struct node_object *pnode = (struct node_object *)hnode;
+
        if (!pnode)
                return -1;
        return pnode->node_state;
@@ -2365,6 +2366,7 @@ static void delete_node(struct node_object *hnode,
            (struct proc_object *)hnode->processor;
 #endif
        int status;
+
        if (!hnode)
                goto func_end;
        hnode_mgr = hnode->node_mgr;
index cd5235a4f77c855a183cae9dca8437d97010a4ca..23e5146989b18d42f73658715517c52027d44180 100644 (file)
@@ -200,6 +200,7 @@ static struct dmm_map_object *find_containing_mapping(
                                u32 mpu_addr, u32 size)
 {
        struct dmm_map_object *map_obj;
+
        pr_debug("%s: looking for mpu_addr 0x%x size 0x%x\n", __func__,
                                                mpu_addr, size);
 
@@ -985,6 +986,7 @@ int proc_get_state(void *hprocessor,
 int proc_get_trace(void *hprocessor, u8 *pbuf, u32 max_size)
 {
        int status;
+
        status = -ENOSYS;
        return status;
 }
@@ -1737,6 +1739,7 @@ static int proc_monitor(struct proc_object *proc_obj)
 static s32 get_envp_count(char **envp)
 {
        s32 ret = 0;
+
        if (envp) {
                while (*envp++)
                        ret++;