- 10 2月, 2011 27 次提交
-
-
由 Tomas Winkler 提交于
Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: NTomas Winkler <tomas.winkler@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Tomas Winkler 提交于
Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: NTomas Winkler <tomas.winkler@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Tomas Winkler 提交于
remove PREFER_NTSC ifdef as it cannot be possible put into Kconfig Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: NTomas Winkler <tomas.winkler@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Tomas Winkler 提交于
Use INFO level when registering driver and ERR for error. Drop messages from oneliner exit function Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: NTomas Winkler <tomas.winkler@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Tomas Winkler 提交于
remove checks for NULL for usb_interface. USB bus won't call these functions with NULL Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: NTomas Winkler <tomas.winkler@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Tomas Winkler 提交于
Fix easycap build when CONFIG_SOUND is enabled but CONFIG_SND is not enabled. use choice construct to select between ALSA and OSS API binding drivers/built-in.o: In function `easycap_usb_disconnect': easycap_main.c:(.text+0x2aba20): undefined reference to `snd_card_free' drivers/built-in.o: In function `easycap_alsa_probe': (.text+0x2b784b): undefined reference to `snd_card_create' drivers/built-in.o: In function `easycap_alsa_probe': (.text+0x2b78fb): undefined reference to `snd_pcm_new' drivers/built-in.o: In function `easycap_alsa_probe': (.text+0x2b7916): undefined reference to `snd_pcm_set_ops' drivers/built-in.o: In function `easycap_alsa_probe': (.text+0x2b795b): undefined reference to `snd_card_register' drivers/built-in.o: In function `easycap_alsa_probe': (.text+0x2b79d8): undefined reference to `snd_card_free' drivers/built-in.o: In function `easycap_alsa_probe': (.text+0x2b7a78): undefined reference to `snd_card_free' drivers/built-in.o: In function `easycap_alsa_complete': (.text+0x2b7e68): undefined reference to `snd_pcm_period_elapsed' drivers/built-in.o:(.data+0x2cae8): undefined reference to `snd_pcm_lib_ioctl' Reported-by: NRandy Dunlap <randy.dunlap@oracle.com> Cc: R.M. Thomas <rmthomas@sciolus.org> Signed-off-by: NTomas Winkler <tomas.winkler@intel.com> Acked-by: NRandy Dunlap <randy.dunlap@oracle.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Dan Carpenter 提交于
The original code had calls to snprintf(p, 7, "wpa_ie=") but that string is 8 characters (because snprintf() puts a NUL terminator on the end). So instead of an '=' the what gets written to buf is a NUL terminator followed by the rest of the string. And actually the %02x formats are three chars as well when you include the terminator. Signed-off-by: NDan Carpenter <error27@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
The current ieee80211 library does not pass net_device structures around. Switch code to use private data structure to get I/O addresses. Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Mike McCormack 提交于
Signed-off-by: NMike McCormack <mikem@ring3k.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Arend van Spriel 提交于
adds implementation for allowing configuration of dot11RTSThreshold as defined in the 802.11 standards. The mac80211 module will use callback set_rts_threshold to configure this in the driver. Reviewed-by: NRoland Vossen <rvossen@broadcom.com> Reviewed-by: NBrett Rudley <brudley@broadcom.com> Reviewed-by: NHenry Ptasinski <henryp@broadcom.com> Signed-off-by: NArend van Spriel <arend@broadcom.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 05 2月, 2011 13 次提交
-
-
由 Robert Jennings 提交于
This patch eliminates duplicate code. The remove_block_head function is a special case of remove_block which can be contained in remove_block without confusion. The portion of code in remove_block_head which was noted as "DEBUG ONLY" is now mandatory. Doing this provides consistent management of the double linked list of blocks under a freelist and makes this consolidation of delete block code safe. The first and last blocks will have NULL pointers in their previous and next page pointers respectively. Additionally, any time a block is removed from a free list the next and previous pointers will be set to NULL to avoid misuse outside xvmalloc. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Acked-by: NNitin Gupta <ngupta@vflare.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Robert Jennings 提交于
Currently zram will do nothing to the page in the bvec when that page has not been previously written. This allows random data to leak to user space. That can be seen by doing the following: ## Load the module and create a 256Mb zram device called /dev/zram0 # modprobe zram # echo $((256*1024*1024)) > /sys/class/block/zram0/disksize ## Initialize the device by writing zero to the first block # dd if=/dev/zero of=/dev/zram0 bs=512 count=1 ## Read ~256Mb of memory into a file and hope for something interesting # dd if=/dev/zram0 of=file This patch will treat an unwritten page as a zero-filled page. If a page is read before a write has occurred the data returned is all 0's. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Robert Jennings 提交于
By swapping the total_pages statistic with the lock we close a hole in the structure for 64-bit CPUs. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Robert Jennings 提交于
Add a debug config flag to enable debug printk output and future debug code. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Robert Jennings 提交于
This change is in a conditional block which is entered only when there is an existing data block on the freelist where the insert has taken place. The new block is pushed onto the freelist stack and this conditional block is updating links in the prior stack head to point to the new stack head. After this conditional block the first-/second-level indices are updated to indicate that there is a free block at this location. This patch adds an immediate return from the conditional block to avoid setting bits again to indicate a free block on this freelist. The bits would already be set because there was an existing free block on this freelist. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Robert Jennings 提交于
On a 64K page kernel, the value PAGE_SIZE passed to blk_queue_logical_block_size would overflow the logical block size argument (resulting in setting it to 0). This patch sets the logical block size to 4096, using a new ZRAM_LOGICAL_BLOCK_SIZE constant. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Robert Jennings 提交于
xvmalloc will not currently function with 64K pages. Newly allocated pages will be inserted at an offset beyond the end of the first-level index. This tuning is needed to properly size the allocator for 64K pages. The default 3 byte shift results in a second level list size which can not be indexed using the 64 bits of the flbitmap in the xv_pool structure. The shift must increase to 4 bytes between second level list entries to fit the size of the first level bitmap. Here are a few statistics for structure sizes on 32- and 64-bit CPUs with 4KB and 64KB page sizes. bits_per_long 32 64 64 page_size 4,096 4,096 65,535 xv_align 4 8 8 fl_delta 3 3 4 num_free_lists 508 508 4,094 xv_pool size 4,144b 8,216b 66,040b per object overhead 32 64 64 zram struct 0.5GB disk 512KB 1024KB 64KB This patch maintains the current tunings for 4K pages, adds an optimal sizing for 64K pages and adds a safe tuning for any other page sizes. Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: NPekka Enberg <penberg@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Arend van Spriel 提交于
removed the message from the driver to avoid polluting the kernel log with messages indicating nothing is wrong. Signed-off-by: NArend van Spriel <arend@broadcom.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Arend van Spriel 提交于
Remove differences in util sources for the two supported drivers. Signed-off-by: NArend van Spriel <arend@broadcom.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Arend van Spriel 提交于
This patch allows to build both drivers. Previous patch for this failed using -j option. This has been fixed by adding files with include statement for the fullmac driver. Verified this is working using -j4 option. Signed-off-by: NArend van Spriel <arend@broadcom.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Arend van Spriel 提交于
Since 2.6.38-rc1 we are getting a compiler warning due to changed API in net/cfg80211.h. This change fixes the warning but driver will need to be modified later to handle the additional parameters. Cc: Brett Rudley <brudley@broadcom.com> Cc: Henry Ptasinski <henryp@broadcom.com> Cc: Roland Vossen <rvossen@broadcom.com> Cc: Dowan Kim <dowan@broadcom.com> Signed-off-by: NArend van Spriel <arend@broadcom.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Marek Belisko 提交于
Signed-off-by: NMarek Belisko <marek.belisko@open-nandra.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Marek Belisko 提交于
Fix compilation warning: drivers/staging/olpc_dcon/olpc_dcon.c: In function ‘dcon_probe’: drivers/staging/olpc_dcon/olpc_dcon.c:704:21: warning: ignoring return value of ‘device_create_file’, declared with attribute warn_unused_result and add cleaning of created files when creation of one failed. Signed-off-by: NMarek Belisko <marek.belisko@open-nandra.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-