Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: most: hdm-usb/hdm_usb.c. Fix "missing static keyword" warnings

This is a patch to the most/hdm-usb/hdm_usb.c file. It
makes several local functions and structures static to prevent global
visibility.

Signed-off-by: Adrian Remonda <adrianremonda@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Adrian Remonda and committed by
Greg Kroah-Hartman
23fe15fa 04ca5837

+8 -8
+8 -8
drivers/staging/most/hdm-usb/hdm_usb.c
··· 290 290 * 291 291 * Returns 0 on success or error code otherwise. 292 292 */ 293 - int hdm_poison_channel(struct most_interface *iface, int channel) 293 + static int hdm_poison_channel(struct most_interface *iface, int channel) 294 294 { 295 295 struct most_dev *mdev; 296 296 ··· 328 328 * This inserts the INIC hardware specific padding bytes into a streaming 329 329 * channel's buffer 330 330 */ 331 - int hdm_add_padding(struct most_dev *mdev, int channel, struct mbo *mbo) 331 + static int hdm_add_padding(struct most_dev *mdev, int channel, struct mbo *mbo) 332 332 { 333 333 struct most_channel_config *conf = &mdev->conf[channel]; 334 334 unsigned int j, num_frames, frame_size; ··· 365 365 * This takes the INIC hardware specific padding bytes off a streaming 366 366 * channel's buffer. 367 367 */ 368 - int hdm_remove_padding(struct most_dev *mdev, int channel, struct mbo *mbo) 368 + static int hdm_remove_padding(struct most_dev *mdev, int channel, struct mbo *mbo) 369 369 { 370 370 unsigned int j, num_frames, frame_size; 371 371 struct most_channel_config *const conf = &mdev->conf[channel]; ··· 644 644 * 645 645 * Context: Could in _some_ cases be interrupt! 646 646 */ 647 - int hdm_enqueue(struct most_interface *iface, int channel, struct mbo *mbo) 647 + static int hdm_enqueue(struct most_interface *iface, int channel, struct mbo *mbo) 648 648 { 649 649 struct most_dev *mdev; 650 650 struct buf_anchor *anchor; ··· 743 743 * @channel: channel ID 744 744 * @conf: structure that holds the configuration information 745 745 */ 746 - int hdm_configure_channel(struct most_interface *iface, int channel, 747 - struct most_channel_config *conf) 746 + static int hdm_configure_channel(struct most_interface *iface, int channel, 747 + struct most_channel_config *conf) 748 748 { 749 749 unsigned int num_frames; 750 750 unsigned int frame_size; ··· 824 824 * This triggers the USB vendor requests to read the hardware address and 825 825 * the current link status of the attached device. 826 826 */ 827 - int hdm_update_netinfo(struct most_dev *mdev) 827 + static int hdm_update_netinfo(struct most_dev *mdev) 828 828 { 829 829 struct device *dev = &mdev->usb_device->dev; 830 830 int i; ··· 873 873 * polls for the NI state of the INIC every 2 seconds. 874 874 * 875 875 */ 876 - void hdm_request_netinfo(struct most_interface *iface, int channel) 876 + static void hdm_request_netinfo(struct most_interface *iface, int channel) 877 877 { 878 878 struct most_dev *mdev; 879 879