ALSA: core: Follow standard EXPORT_SYMBOL() declarations
authorTakashi Iwai <tiwai@suse.de>
Fri, 16 Jun 2017 14:16:33 +0000 (16:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Jun 2017 14:19:16 +0000 (16:19 +0200)
Just a tidy up to follow the standard EXPORT_SYMBOL*() declarations
in order to improve grep-ability.

- Move EXPORT_SYMBOL*() to the position right after its definition
- Remove superfluous blank line before EXPORT_SYMBOL*() lines

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/info.c
sound/core/info_oss.c
sound/core/init.c
sound/core/isadma.c
sound/core/memalloc.c
sound/core/memory.c
sound/core/misc.c
sound/core/oss/mixer_oss.c
sound/core/sound.c
sound/core/sound_oss.c

index fc14ebe751d8fda95933147346b29b863f4300a2..bcf6a48cc70d3b82d78b1b7a944e1bd4e0b1dd5d 100644 (file)
@@ -652,7 +652,6 @@ int snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len)
        *line = '\0';
        return 0;
 }
-
 EXPORT_SYMBOL(snd_info_get_line);
 
 /**
@@ -690,7 +689,6 @@ const char *snd_info_get_str(char *dest, const char *src, int len)
                src++;
        return src;
 }
-
 EXPORT_SYMBOL(snd_info_get_str);
 
 /*
@@ -748,7 +746,6 @@ struct snd_info_entry *snd_info_create_module_entry(struct module * module,
                entry->module = module;
        return entry;
 }
-
 EXPORT_SYMBOL(snd_info_create_module_entry);
 
 /**
@@ -772,7 +769,6 @@ struct snd_info_entry *snd_info_create_card_entry(struct snd_card *card,
        }
        return entry;
 }
-
 EXPORT_SYMBOL(snd_info_create_card_entry);
 
 static void snd_info_disconnect(struct snd_info_entry *entry)
@@ -815,7 +811,6 @@ void snd_info_free_entry(struct snd_info_entry * entry)
                entry->private_free(entry);
        kfree(entry);
 }
-
 EXPORT_SYMBOL(snd_info_free_entry);
 
 /**
@@ -858,7 +853,6 @@ int snd_info_register(struct snd_info_entry * entry)
        mutex_unlock(&info_mutex);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_info_register);
 
 /*
index 1478c8dfd4739d49399cfc7e324d1901939c87a5..f479374b6bd861ec4e6f74e496bdc117b440c2ac 100644 (file)
@@ -61,7 +61,6 @@ int snd_oss_info_register(int dev, int num, char *string)
        mutex_unlock(&strings);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_oss_info_register);
 
 static int snd_sndstat_show_strings(struct snd_info_buffer *buf, char *id, int dev)
index 6bda8436d7652299a90c29d5608c0b4b34f4f693..00f2cbb76e6933785df81f663d33ff907b4deccd 100644 (file)
@@ -452,7 +452,6 @@ int snd_card_disconnect(struct snd_card *card)
 #endif
        return 0;       
 }
-
 EXPORT_SYMBOL(snd_card_disconnect);
 
 static int snd_card_do_free(struct snd_card *card)
@@ -718,7 +717,7 @@ int snd_card_add_dev_attr(struct snd_card *card,
 
        dev_err(card->dev, "Too many groups assigned\n");
        return -ENOSPC;
-};
+}
 EXPORT_SYMBOL_GPL(snd_card_add_dev_attr);
 
 /**
@@ -775,7 +774,6 @@ int snd_card_register(struct snd_card *card)
 #endif
        return 0;
 }
-
 EXPORT_SYMBOL(snd_card_register);
 
 #ifdef CONFIG_SND_PROC_FS
@@ -895,7 +893,6 @@ int snd_component_add(struct snd_card *card, const char *component)
        strcat(card->components, component);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_component_add);
 
 /**
@@ -930,7 +927,6 @@ int snd_card_file_add(struct snd_card *card, struct file *file)
        spin_unlock(&card->files_lock);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_card_file_add);
 
 /**
@@ -972,7 +968,6 @@ int snd_card_file_remove(struct snd_card *card, struct file *file)
        put_device(&card->card_dev);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_card_file_remove);
 
 #ifdef CONFIG_PM
@@ -1012,6 +1007,5 @@ int snd_power_wait(struct snd_card *card, unsigned int power_state)
        remove_wait_queue(&card->power_sleep, &wait);
        return result;
 }
-
 EXPORT_SYMBOL(snd_power_wait);
 #endif /* CONFIG_PM */
index 31e8544d7f2d760320d9db504cafa398d70bda49..7a8515abb5f9d0e979631ea4a4374d5472c30d7e 100644 (file)
@@ -55,7 +55,6 @@ void snd_dma_program(unsigned long dma,
                enable_dma(dma);
        release_dma_lock(flags);
 }
-
 EXPORT_SYMBOL(snd_dma_program);
 
 /**
@@ -73,7 +72,6 @@ void snd_dma_disable(unsigned long dma)
        disable_dma(dma);
        release_dma_lock(flags);
 }
-
 EXPORT_SYMBOL(snd_dma_disable);
 
 /**
@@ -113,5 +111,4 @@ unsigned int snd_dma_pointer(unsigned long dma, unsigned int size)
        else
                return size - result;
 }
-
 EXPORT_SYMBOL(snd_dma_pointer);
index f05cb6a8cbe02ed03a3f27499b08a8b36190bcd1..7f89d3c79a4b740b655342ebf4958d05fe6c6646 100644 (file)
@@ -54,6 +54,7 @@ void *snd_malloc_pages(size_t size, gfp_t gfp_flags)
        pg = get_order(size);
        return (void *) __get_free_pages(gfp_flags, pg);
 }
+EXPORT_SYMBOL(snd_malloc_pages);
 
 /**
  * snd_free_pages - release the pages
@@ -71,6 +72,7 @@ void snd_free_pages(void *ptr, size_t size)
        pg = get_order(size);
        free_pages((unsigned long) ptr, pg);
 }
+EXPORT_SYMBOL(snd_free_pages);
 
 /*
  *
@@ -217,6 +219,7 @@ int snd_dma_alloc_pages(int type, struct device *device, size_t size,
        dmab->bytes = size;
        return 0;
 }
+EXPORT_SYMBOL(snd_dma_alloc_pages);
 
 /**
  * snd_dma_alloc_pages_fallback - allocate the buffer area according to the given type with fallback
@@ -254,6 +257,7 @@ int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size,
                return -ENOMEM;
        return 0;
 }
+EXPORT_SYMBOL(snd_dma_alloc_pages_fallback);
 
 
 /**
@@ -287,13 +291,4 @@ void snd_dma_free_pages(struct snd_dma_buffer *dmab)
                pr_err("snd-malloc: invalid device type %d\n", dmab->dev.type);
        }
 }
-
-/*
- * exports
- */
-EXPORT_SYMBOL(snd_dma_alloc_pages);
-EXPORT_SYMBOL(snd_dma_alloc_pages_fallback);
 EXPORT_SYMBOL(snd_dma_free_pages);
-
-EXPORT_SYMBOL(snd_malloc_pages);
-EXPORT_SYMBOL(snd_free_pages);
index 4cd664efad770fc4e4284caa1bb053cbc5bd3166..19c9ea90d9bf9a0fd0c408c96649fbf164730d06 100644 (file)
@@ -55,7 +55,6 @@ int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size
        return 0;
 #endif
 }
-
 EXPORT_SYMBOL(copy_to_user_fromio);
 
 /**
@@ -88,5 +87,4 @@ int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size
        return 0;
 #endif
 }
-
 EXPORT_SYMBOL(copy_from_user_toio);
index 21b228046e8850d5db07ab2cce064006604a7bd4..0f818d593c9ee2720e52162f1d8e9cf2a5462dc0 100644 (file)
@@ -48,7 +48,6 @@ void release_and_free_resource(struct resource *res)
                kfree(res);
        }
 }
-
 EXPORT_SYMBOL(release_and_free_resource);
 
 #ifdef CONFIG_SND_VERBOSE_PRINTK
index 2ff9c12d664a8a5e568f37a7b6564c0fcd86e6a1..379bf486ccc74c598c6fd220d1230f56714431c6 100644 (file)
@@ -395,6 +395,7 @@ int snd_mixer_oss_ioctl_card(struct snd_card *card, unsigned int cmd, unsigned l
        fmixer.mixer = card->mixer_oss;
        return snd_mixer_oss_ioctl1(&fmixer, cmd, arg);
 }
+EXPORT_SYMBOL(snd_mixer_oss_ioctl_card);
 
 #ifdef CONFIG_COMPAT
 /* all compatible */
@@ -1425,5 +1426,3 @@ static void __exit alsa_mixer_oss_exit(void)
 
 module_init(alsa_mixer_oss_init)
 module_exit(alsa_mixer_oss_exit)
-
-EXPORT_SYMBOL(snd_mixer_oss_ioctl_card);
index 175f9e4e01c82d29a4da846d9adb6e77c9575d33..b30f027eb0fee7124756599c2bfd7c3a4bf074eb 100644 (file)
@@ -74,7 +74,6 @@ void snd_request_card(int card)
                return;
        request_module("snd-card-%i", card);
 }
-
 EXPORT_SYMBOL(snd_request_card);
 
 static void snd_request_other(int minor)
@@ -124,7 +123,6 @@ void *snd_lookup_minor_data(unsigned int minor, int type)
        mutex_unlock(&sound_mutex);
        return private_data;
 }
-
 EXPORT_SYMBOL(snd_lookup_minor_data);
 
 #ifdef CONFIG_MODULES
index 0ca9d72b227327e7237ca8caf2adb6398f4c42a3..0a5c66229a227caf7c5740ddd3fcdf39873a7c52 100644 (file)
@@ -55,7 +55,6 @@ void *snd_lookup_oss_minor_data(unsigned int minor, int type)
        mutex_unlock(&sound_oss_mutex);
        return private_data;
 }
-
 EXPORT_SYMBOL(snd_lookup_oss_minor_data);
 
 static int snd_oss_kernel_minor(int type, struct snd_card *card, int dev)
@@ -159,7 +158,6 @@ int snd_register_oss_device(int type, struct snd_card *card, int dev,
        kfree(preg);
        return -EBUSY;
 }
-
 EXPORT_SYMBOL(snd_register_oss_device);
 
 int snd_unregister_oss_device(int type, struct snd_card *card, int dev)
@@ -200,7 +198,6 @@ int snd_unregister_oss_device(int type, struct snd_card *card, int dev)
        kfree(mptr);
        return 0;
 }
-
 EXPORT_SYMBOL(snd_unregister_oss_device);
 
 /*