19 Oct, 2011
6 commits
-
The stable@kernel.org email address has been replaced with the
stable@vger.kernel.org mailing list. Change the stable kernel rules to
reference the new list instead of the semi-defunct email alias.CC:
CC:
Signed-off-by: Josh Boyer
Signed-off-by: Greg Kroah-Hartman -
Dynamic debug recently added support for netdev_printk. It uses
__netdev_printk() to support this functionality. However, when CONFIG_NET
is not set, we get the following error:lib/built-in.o: In function `__dynamic_netdev_dbg':
(.text+0x9fda): undefined reference to `__netdev_printk'Fix this by making the call to netdev_printk() contingent upon CONFIG_NET.
We could have fixed this by defining netdev_printk() to a 'no-op' in the
!CONFIG_NET case. However, this is not consistent with how the networking
layer uses netdev_printk. For example, CONFIG_NET is not set,
netdev_printk() does not have a 'no-op' definition defined.Signed-off-by: Jason Baron
Acked-by: Randy Dunlap
Acked-by: Arnd Bergmann
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman -
We were using KERN_CONT to combine messages with their prefix. However,
KERN_CONT is not smp safe, in the sense that it can interleave messages.
This interleaving can result in printks coming out at the wrong loglevel.
With the high frequency of printks that dynamic debug can produce this is
not desirable.So make dynamic_emit_prefix() fill a char buf[64] instead of doing a
printk directly. If we enable printing out of function, module, line, or
pid info, they are placed in this 64 byte buffer. In my testing 64 bytes
was enough size to fulfill all requests. Even if it's not, we can match
up the printk itself to see where it's from, so to me this is no big deal.[akpm@linux-foundation.org: convert dangerous macro to C]
Signed-off-by: Jason Baron
Cc: Arnd Bergmann
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman -
The num_enabled accounting isn't actually used anywhere - remove them.
Signed-off-by: Jason Baron
Cc: Arnd Bergmann
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman -
Replace the repetitive struct _ddebug descriptor definitions with a new
DECLARE_DYNAMIC_DEBUG_META_DATA(name, fmt) macro.[akpm@linux-foundation.org: s/DECLARE/DEFINE/]
Signed-off-by: Jason Baron
Cc: Arnd Bergmann
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman -
To support >32-bit physical addresses for UIO_MEM_PHYS type we need to
extend the width of 'addr' in struct uio_mem. Numerous platforms like
embedded PPC, ARM, and X86 have support for systems with larger physical
address than logical.Since 'addr' may contain a physical, logical, or virtual address the
easiest solution is to just change the type to 'phys_addr_t' which
should always be greater than or equal to the sizeof(void *) such that
it can properly hold any of the address types.For physical address we can support up to a 44-bit physical address on a
typical 32-bit system as we utilize remap_pfn_range() for the mapping of
the memory region and pfn's are represnted by shifting the address by
the page size (typically 4k).Signed-off-by: Kai Jiang
Signed-off-by: Minghuan Lian
Signed-off-by: Kumar Gala
Signed-off-by: Hans J. Koch
Signed-off-by: Greg Kroah-Hartman
27 Sep, 2011
5 commits
-
"sysfs: use rb-tree for inode number lookup" added a new printk which
causes a new compile warning on s390 (and few other architectures):fs/sysfs/dir.c: In function 'sysfs_link_sibling':
fs/sysfs/dir.c:63:4: warning: format '%lx' expects argument of type
'long unsigned int', but argument 2 has type 'ino_t' [-WformAdd an explicit unsigned long cast since ino_t is an unsigned long on
most architectures.Cc: Mikulas Patocka
Signed-off-by: Heiko Carstens
Signed-off-by: Greg Kroah-Hartman -
When DEBUG_DRIVER is activated, be verbose and explicitly state when a
devicedriver match was rejected by the probe-function of the driver.
Now all code-paths report what is currently happening which helps
debugging, because you don't have to remember that no printout means
the match is rejected (and then you still don't know if it was because
of ENODEV or ENXIO).Signed-off-by: Wolfram Sang
Signed-off-by: Greg Kroah-Hartman -
The check to ensure that pages of recently added memory sections are correctly
marked as reserved before trying to online the memory is broken. The request
to online the memory fails with the following:kernel: section number XXX page number 256 not reserved, was it already online?
This updates the page reservation checking to check the pages of each memory
section of the memory block being onlined individually.Signed-off-by: Nathan Fontenot
Signed-off-by: Greg Kroah-Hartman -
The sysfs memory probe interface allows unaligned regions
to be added:# echo 0xffffff > /sys/devices/system/memory/probe
# cat /proc/iomem
00ffffff-01fffffe : System RAM
01ffffff-02fffffe : System RAM
02ffffff-03fffffe : System RAM
03ffffff-04fffffe : System RAM
04ffffff-05fffffe : System RAMReturn -EINVAL instead of creating these bad regions.
Signed-off-by: Anton Blanchard
Signed-off-by: Greg Kroah-Hartman -
This patch can remove the messy code file
Documentation/zh_CN/SumitChecklist. Of course, i will also fix this
matter and proofread it again and then submit it again.Signed-off-by: Harry Wei
Signed-off-by: Greg Kroah-Hartman
27 Aug, 2011
2 commits
-
Signed-off-by: Uwe Kleine-König
Signed-off-by: Greg Kroah-Hartman -
compared to the most powerful and already existing helper (namely
platform_device_register_resndata) this allows to specify a dma_mask.
To make eventual extensions later more easy, a struct holding the used
information is created instead of passing the information by function
parameters.Signed-off-by: Uwe Kleine-König
Signed-off-by: Greg Kroah-Hartman
25 Aug, 2011
2 commits
-
The driver model documentation was added to the kernel tree before
struct class was added to . Hence this patch that
updates the paragraph about struct class in
Documentation/driver-model/binding.txt.Signed-off-by: Bart Van Assche
Cc: Randy Dunlap
Signed-off-by: Greg Kroah-Hartman -
Several drivers use device_create_file() where device.groups should be
used instead. This patch documents that and also removes the comments
about device classes since these should not be used in new code in the
way documented until now in Documentation/driver-model/device.txt.Signed-off-by: Bart Van Assche
Cc: Randy Dunlap
Signed-off-by: Greg Kroah-Hartman
23 Aug, 2011
24 commits
-
kobject_uevent() uses a multicast socket and should ignore
if one of listeners cannot handle messages or nobody is
listening at all.Easily reproducible when a process in system is cloned
with CLONE_NEWNET flag.(See also http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5256)
Signed-off-by: Milan Broz
Acked-by: Kay Sievers
Cc: stable
Signed-off-by: Greg Kroah-Hartman -
Previously, netif_dbg() was using dynamic_dev_dbg() to perform
the underlying printk. Fix it to use __netdev_printk(), instead.Cc: David S. Miller
Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Previously, if dynamic debug was enabled netdev_dbg() was using
dynamic_dev_dbg() to print out the underlying msg. Fix this by making
sure netdev_dbg() uses __netdev_printk().Cc: David S. Miller
Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Add a maintainers entry for dynamic debug. Hopefully nobody
will object to me as maintainer...Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Remove no longer used dynamic debug control variables. The
definitions were removed a while ago, but we forgot to clean
up the extern references.Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Add pr_fmt(fmt) with __func__.
Converts "ddebug:" prefix to "dynamic_debug:".Most likely the if (verbose) outputs could
also be converted from pr_info to pr_debug.Signed-off-by: Joe Perches
Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Multiple printks with KERN_CONT can be interleaved by
other printks. Reduce the likelihood of that interleaving
by consolidating multiple calls to printk.Signed-off-by: Joe Perches
Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Adding dynamic_dev_dbg duplicated prefix output.
Consolidate that output to a single routine.Signed-off-by: Joe Perches
Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Unlike dynamic_pr_debug, dynamic uses of dev_dbg can not
currently add task_pid/KBUILD_MODNAME/__func__/__LINE__
to selected debug output.Add a new function similar to dynamic_pr_debug to
optionally emit these prefixes.Cc: Aloisio Almeida
Noticed-by: Aloisio Almeida
Signed-off-by: Joe Perches
Signed-off-by: Jason Baron
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Andy Shevchenko
Cc: Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman -
Only ML7213/ML7223(Bus-n) has this register.
Currently,this driver doesn't care register "FUNCSEL" in suspend/resume.
This patch saves/restores FUNCSEL register only when the device is ML7213 or
ML7223(Bus-n).Signed-off-by: Tomoya MORINAGA
Signed-off-by: Greg Kroah-Hartman -
If id_entry is available then it is used. However if we remove first the
driver followed by the device, then the id_entry is pointing to driver's
memory which is long gone.
Since id->name and plat->name are equal there is no point in
distinguishing them.Cc: Grant Likely
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior
Signed-off-by: Greg Kroah-Hartman -
Remove the __devinitconst to fix the section mismatch.
WARNING: drivers/uio/built-in.o(.data+0x2e8): Section mismatch in
reference from the variable uio_pdrv_genirq to the variable
.devinit.rodata:uio_of_genirq_match
The variable uio_pdrv_genirq references
the variable __devinitconst uio_of_genirq_match
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the
variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one,
*_consoleSigned-off-by: Wanlong Gao
Signed-off-by: Greg Kroah-Hartman -
Remove one *goto* label in uio.c.
Signed-off-by: Wanlong Gao
Signed-off-by: "Hans J. Koch"
Signed-off-by: Greg Kroah-Hartman -
The spin_lock in uio_pci_generic.c is only used in the interrupt
handler, which cannot be executed twice at the same time.
That makes the lock rather pointless. This patch removes it.Cc: "Michael S. Tsirkin"
Cc: Chris Wright
Cc: Jesse Barnes
Cc: Sebastian Andrzej Siewior
Cc: Anthony Foiani
Reported-by: Anthony Foiani
Reported-by: Sebastian Andrzej Siewior
Signed-off-by: Hans J. Koch
Acked-by: Michael S. Tsirkin
Signed-off-by: Greg Kroah-Hartman -
sysfs: use rb-tree for inode number lookup
This patch makes sysfs use red-black tree for inode number lookup.
Together with a previous patch to use red-black tree for name lookup,
this patch makes all sysfs lookups to have O(log n) complexity.Signed-off-by: Mikulas Patocka
Signed-off-by: Greg Kroah-Hartman -
sysfs: remove s_sibling hacks
s_sibling was used for three different purposes:
1) as a linked list of entries in the directory
2) as a linked list of entries to be deleted
3) as a pointer to "struct completion"This patch removes the hack and introduces new union u which
holds pointers for cases 2) and 3).This change is needed for the following patch that removes s_sibling at all
and replaces it with a rb tree.Signed-off-by: Mikulas Patocka
Signed-off-by: Greg Kroah-Hartman -
sysfs: use rb-tree for name lookups
Use red-black tree for name lookups.
Signed-off-by: Mikulas Patocka
Signed-off-by: Greg Kroah-Hartman -
sysfs: count subdirectories
This patch introduces a subdirectory counter for each sysfs directory.
Without the patch, sysfs_refresh_inode would walk all entries of the directory
to calculate the number of subdirectories.This patch improves time of "ls -la /sys/block" when there are 10000 block
devices from 9 seconds to 0.19 seconds.Signed-off-by: Mikulas Patocka
Signed-off-by: Greg Kroah-Hartman -
Although it is expected nowadays that every new sysfs attribute is
documented under Documentation/ABI, this is not yet mentioned in the
kernel documentation. This patch adds a note in the sysfs
documentation about that requirement.Signed-off-by: Bart Van Assche
Cc: Andrew Morton
Cc: Randy Dunlap
Signed-off-by: Greg Kroah-Hartman -
The file is fs/debugfs/inode.c but the comment says it is file.c.
This patch can fix this little mistake.Signed-off-by: Harry Wei
Signed-off-by: Greg Kroah-Hartman -
…l/git/tip/linux-2.6-tip
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
perf tools: Add group event scheduling option to perf record/stat
MAINTAINERS: Fix list of perf events source files
perf tools: Fix build against newer glibc
perf tools: Fix error handling of unknown events
perf evlist: Fix missing event name init for default event
perf list: Fix exit value -
* 'stable/bug.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
xen/tracing: Fix tracing config option properly
xen: Do not enable PV IPIs when vector callback not present
xen/x86: replace order-based range checking of M2P table by linear one
xen: xen-selfballoon.c needs more header files
22 Aug, 2011
1 commit
-
Steven Rostedt says we should use CONFIG_EVENT_TRACING.
Cc:Steven Rostedt
Signed-off-by: Jeremy Fitzhardinge
Signed-off-by: Konrad Rzeszutek Wilk