[PATCH] mg_disk: add CONFIG_PM_SLEEP to suspend/resume functions

2013-03-25 Thread Jingoo Han
Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following build warning when CONFIG_PM_SLEEP is not selected. This is because sleep PM callbacks defined by SIMPLE_DEV_PM_OPS are only used when the CONFIG_PM_SLEEP is enabled. drivers/block/mg_disk.c:783:12: warning: 'mg_suspend' defined

[PATCH RFC/RFT] regulator: ab8500: Remove is_enabled from struct ab8500_regulator_info

2013-03-25 Thread Axel Lin
The is_enabled flag looks not necessary at all, it also introduces some issues because current code updates info->is_enabled flag in error paths of ab8500_regulator_enable() and ab8500_regulator_disable(). Thus this patch removes is_enabled from struct ab8500_regulator_info. This patch also remove

[PATCH -next] ASoC: arizona: remove duplicated include from arizona.c

2013-03-25 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- sound/soc/codecs/arizona.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 26e1579..c979ff2 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codec

linux-next: Tree for Mar 26

2013-03-25 Thread Stephen Rothwell
Hi all, Please be careful testing this tree due to some unfixed warnings in the block layer ... Changes since 20130325: The vl4-dvb tree gained a build failure for which I disabled a staging driver. The net-next tree gained conflicts against the wireless tree. The wireless-next tree gained

Re: [Suggestion] kernel: 'now' may be used uninitialized in posix_cpu_timer_schedule function

2013-03-25 Thread Chen Gang
oh, sorry, it seems better to let ARM folks know about it. ;-) On 2013年03月26日 14:36, Chen Gang wrote: > Hello Maintainers: > > compiling with EXTRA_CFLAGS=-W: > make V=1 EXTRA_CFLAGS=-W ARCH=arm s3c2410_defconfig > make V=1 EXTRA_CFLAGS=-W ARCH=arm menuconfig > set 'arm-linux

[Suggestion] kernel: 'now' may be used uninitialized in posix_cpu_timer_schedule function

2013-03-25 Thread Chen Gang
Hello Maintainers: compiling with EXTRA_CFLAGS=-W: make V=1 EXTRA_CFLAGS=-W ARCH=arm s3c2410_defconfig make V=1 EXTRA_CFLAGS=-W ARCH=arm menuconfig set 'arm-linux-gnu-' for cross chain prefix make V=1 EXTRA_CFLAGS=-W ARCH=arm it will report: kernel/posix-cpu-timers.c:106

Re: Submitting fbdev tree patches

2013-03-25 Thread Tony Prisk
On Mon, 2013-03-25 at 05:27 +, Jingoo Han wrote: > On Monday, March 25, 2013 2:11 PM, Tony Prisk wrote: > > > > Is anyone taking patches for fbdev at the moment? > > > > I sent in some patches for 3.9 but didn't hear back - checking the lists > > it doesn't appear Florian has posted much sinc

linux-next: build failure after merge of the final tree (block tree related)

2013-03-25 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/built-in.o: In function `bio_alloc_pages': (.opd+0x2364a8): multiple definition of `bio_alloc_pages' fs/built-in.o:(.opd+0x7188): first defined here Caused by an interaction between co

[net-next 3/5] packet: set transport header before doing xmit

2013-03-25 Thread Jason Wang
Set the transport header for 1) some drivers (e.g ixgbe needs l4 header to do atr) 2) precise packet length estimation (introduced in 1def9238) needs l4 header to compute header length. So this patch first tries to get l4 header for packet socket through skb_flow_dissect(), and pretend no l4 heade

[net-next 5/5] net_sched: better precise estimation on packet length for untrusted packets

2013-03-25 Thread Jason Wang
gso_segs were reset to zero when kernel receive packets from untrusted source. But we use this zero value to estimate precise packet len which is wrong. So this patch tries to estimate the correct gso_segs value before using it in qdisc_pkt_len_init(). Cc: Eric Dumazet Signed-off-by: Jason Wang

[net-next 2/5] tuntap: set transport header before passing it to kernel

2013-03-25 Thread Jason Wang
Currently, for the packets receives from tuntap, before doing header check, kernel just reset the transport header in netif_receive_skb() which pretends no l4 header. This is suboptimal for precise packet length estimation (introduced in 1def9238) which needs correct l4 header for gso packets. So

[net-next 4/5] netback: set transport header before passing it to kernel

2013-03-25 Thread Jason Wang
Currently, for the packets receives from netback, before doing header check, kernel just reset the transport header in netif_receive_skb() which pretends non l4 header. This is suboptimal for precise packet length estimation (introduced in 1def9238: net_sched: more precise pkt_len computation) whic

[net-next 1/5] macvtap: set transport header before passing skb to lower device

2013-03-25 Thread Jason Wang
Set the transport header for 1) some drivers (e.g ixgbe) needs l4 header 2) precise packet length estimation (introduced in 1def9238) needs l4 header to compute header length. For the packets with partial checksum, the patch just set the transport header to csum_start. Otherwise tries to use skb_f

[net-next 0/5] set transport header for untrusted packets

2013-03-25 Thread Jason Wang
We don't set transport header for untrusted packets in the past, but for the follwoing reasons, we need to do it now. - Better packet length estimation (introduced in 1def9238) needs l4 header for gso packets to compute the header length. - Some driver needs l4 header (e.g. ixgbe needs tcp heade

linux-next: build failure after merge of the final tree (v4l-dvb tree related)

2013-03-25 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c: In function 'solo_enc_default': drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c:1031:7: error: case label does not reduce to an integer

Re: [PATCH 2/2] cpufreq: drivers: Remove unnecessary assignments of policy-> members

2013-03-25 Thread Sekhar Nori
On 3/25/2013 3:54 PM, Viresh Kumar wrote: > On 25 March 2013 15:11, Sekhar Nori wrote: >> So down in the cpufreq driver probe below, we bail out if freq_table is >> not provided. So all this checking for freq_table in the code you pasted >> above is superfluous. If you can clean that part up and

linux-next: build warning after merge of the final tree (akpm and block tree related)

2013-03-25 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build produced this warning: fs/bio.c: In function 'submit_bio_wait': fs/bio.c:786:17: warning: assignment from incompatible pointer type [enabled by default] This is due to an interaction between commit 9e882242c ("block: Add submit_bio_

Re: [PATCH v3] USB: PHY: Palmas USB Transceiver Driver

2013-03-25 Thread Kishon Vijay Abraham I
Hi, On Monday 25 March 2013 03:16 PM, Laxman Dewangan wrote: On Monday 25 March 2013 03:02 PM, Kishon Vijay Abraham I wrote: From: Graeme Gregory This is the driver for the OTG transceiver built into the Palmas chip. It handles the various USB OTG events that can be generated by cable inserti

[PATCH v2 4/6] sched: move up affinity check to mitigate useless redoing overhead

2013-03-25 Thread Joonsoo Kim
Currently, LBF_ALL_PINNED is cleared after affinity check is passed. So, if task migration is skipped by small load value or small imbalance value in move_tasks(), we don't clear LBF_ALL_PINNED. At last, we trigger 'redo' in load_balance(). Imbalance value is often so small that any tasks cannot b

[PATCH v2 6/6] sched: prevent to re-select dst-cpu in load_balance()

2013-03-25 Thread Joonsoo Kim
Commit 88b8dac0 makes load_balance() consider other cpus in its group. But, in that, there is no code for preventing to re-select dst-cpu. So, same dst-cpu can be selected over and over. This patch add functionality to load_balance() in order to exclude cpu which is selected once. We prevent to re

[PATCH v2 5/6] sched: rename load_balance_tmpmask to load_balance_mask

2013-03-25 Thread Joonsoo Kim
This name doesn't represent specific meaning. So rename it to imply it's purpose. Signed-off-by: Joonsoo Kim diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7f12624..07b4178 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6865,7 +6865,7 @@ struct task_group root_task_

[PATCH v2 2/6] sched: explicitly cpu_idle_type checking in rebalance_domains()

2013-03-25 Thread Joonsoo Kim
After commit 88b8dac0, dst-cpu can be changed in load_balance(), then we can't know cpu_idle_type of dst-cpu when load_balance() return positive. So, add explicit cpu_idle_type checking. Cc: Srivatsa Vaddagiri Signed-off-by: Joonsoo Kim diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c ind

[PATCH v2 1/6] sched: change position of resched_cpu() in load_balance()

2013-03-25 Thread Joonsoo Kim
cur_ld_moved is reset if env.flags hit LBF_NEED_BREAK. So, there is possibility that we miss doing resched_cpu(). Correct it as changing position of resched_cpu() before checking LBF_NEED_BREAK. Acked-by: Peter Zijlstra Signed-off-by: Joonsoo Kim diff --git a/kernel/sched/fair.c b/kernel/sched/

[PATCH v2 3/6] sched: don't consider other cpus in our group in case of NEWLY_IDLE

2013-03-25 Thread Joonsoo Kim
Commit 88b8dac0 makes load_balance() consider other cpus in its group, regardless of idle type. When we do NEWLY_IDLE balancing, we should not consider it, because a motivation of NEWLY_IDLE balancing is to turn this cpu to non idle state if needed. This is not the case of other cpus. So, change co

[PATCH v2 0/6] correct load_balance()

2013-03-25 Thread Joonsoo Kim
Commit 88b8dac0 makes load_balance() consider other cpus in its group. But, there are some missing parts for this feature to work properly. This patchset correct these things and make load_balance() robust. Others are related to LBF_ALL_PINNED. This is fallback functionality when all tasks can't b

[PATCH 2/2] perf/x86: Ivy Bridge-EP uncore support

2013-03-25 Thread Yan, Zheng
From: "Yan, Zheng" The uncore subsystem in Ivy Bridge-EP is similar to Sandy Bridge-EP. There are some differences in config register encoding and pci device IDs. The Ivy Bridge-EP uncore also supports a few new events. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event_intel_uncore.

[PATCH 1/2] perf/x86: fix SNB-EP CBO and PCU uncore PMU filter management

2013-03-25 Thread Yan, Zheng
From: "Yan, Zheng" The existing code assumes all Cbox and PCU events are using filter, but actually the filter is event specific. Furthermore the filter is sub-divided into multiple fields which are used by different events. Signed-off-by: Yan, Zheng Reported-by: Stephane Eranian --- arch/x86

linux-next: manual merge of the akpm tree with the block tree

2013-03-25 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in block/blk-core.c between commit f79ea4161434 ("block: Refactor blk_update_request()") from the block tree and commit "block, aio: batch completion for bios/kiocbs" from the akpm tree. I fixed it up (see below) and can carry th

linux-next: manual merge of the akpm tree with the block tree

2013-03-25 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got conflicts in drivers/md/raid1.c and drivers/md/raid10.c between commit 9e882242c619 ("block: Add submit_bio_wait(), remove from md") from the block tree and commit "block: prep work for batch completion" from the akpm tree. I fixed it up (b

Re: [PATCH 05/10] migrate: add hugepage migration code to migrate_pages()

2013-03-25 Thread Naoya Horiguchi
On Mon, Mar 25, 2013 at 02:04:16PM +0100, Michal Hocko wrote: > On Fri 22-03-13 16:23:50, Naoya Horiguchi wrote: > [...] > > @@ -523,6 +544,11 @@ static inline int check_pmd_range(struct > > vm_area_struct *vma, pud_t *pud, > > pmd = pmd_offset(pud, addr); > > do { > > next = p

linux-next: manual merge of the akpm tree with the block tree

2013-03-25 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in include/linux/blk_types.h between commit a38352e0ac02 ("block: Add an explicit bio flag for bios that own their bvec") from the block tree and commit "mm: make snapshotting pages for stable writes a per-bio operation" from the

Re: [PATCH] drivers: virtio: Use PTR_RET function

2013-03-25 Thread Andrew Morton
On Tue, 26 Mar 2013 13:57:09 +1030 Rusty Russell wrote: > Alexandru Gheorghiu writes: > > > Used PTR_RET function instead of IS_ERR and PTR_ERR. > > Patch found using coccinelle. > > WTF is PTR_RET? PTR_RET doesn't return anything. Why is it called > that? It doesn't even make sense. > > Z

Re: [PATCH] drivers: virtio: Use PTR_RET function

2013-03-25 Thread Rusty Russell
Alexandru Gheorghiu writes: > Used PTR_RET function instead of IS_ERR and PTR_ERR. > Patch found using coccinelle. WTF is PTR_RET? PTR_RET doesn't return anything. Why is it called that? It doesn't even make sense. ZERO_OR_PTR_ERR() maybe. But what problem are we solving? Insufficient chur

[PATCH 1/1] mfd: max77686: Use NULL instead of 0

2013-03-25 Thread Sachin Kamat
'data' is a pointer and hence use NULL instead of 0. Silences the following warning: drivers/mfd/max77686.c:49:50: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat Cc: Jonghwa Lee --- drivers/mfd/max77686.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) dif

signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer

2013-03-25 Thread Ben Hutchings
On Thu, 2013-03-21 at 01:41 +, Ben Hutchings wrote: > On Wed, 2013-03-20 at 21:43 +0100, Sebastian Gottschall (DD-WRT) wrote: > > Am 20.03.2013 20:02, schrieb Sebastian Gottschall (DD-WRT): > > > Hello > > > > > > The patch for sa_restorer will break mips builds, since sa_restorer > > > isnt d

Re: [PATCH v2] X.509: Support parse long form of length octets in Authority Key Identifier

2013-03-25 Thread joeyli
Hi experts, I didn't this patch merged to any git tree or maybe I missed. Where is the right place for send X.509 patch? Thanks a lot! Joey Lee 於 四,2013-03-14 於 15:34 +0800,Lee, Chun-Yi 提到: > From: Chun-Yi Lee > > Per X.509 spec in 4.2.1.1 section, the structure of Authority Key > Identifier

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
On Mon, Mar 25 2013, Dave Chinner wrote: > On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: >> On Mon, Mar 25 2013, Dave Chinner wrote: >> > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: >> >> Call cond_resched() from shrink_dentry_list() to preserve >> >> shrink_dcache_

Re: [PATCH 03/10] soft-offline: use migrate_pages() instead of migrate_huge_page()

2013-03-25 Thread Naoya Horiguchi
On Mon, Mar 25, 2013 at 01:31:28PM +0100, Michal Hocko wrote: > On Fri 22-03-13 16:23:48, Naoya Horiguchi wrote: > > Currently migrate_huge_page() takes a pointer to a hugepage to be > > migrated as an argument, instead of taking a pointer to the list of > > hugepages to be migrated. This behavior

[PATCH] clocksource: Fix build error when !CONFIG_CLKSRC_OF

2013-03-25 Thread Axel Lin
Fix below build error: CC drivers/clocksource/exynos_mct.o drivers/clocksource/exynos_mct.c:557:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__unused' drivers/clocksource/exynos_mct.c:558:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__unused' ma

Re: [PATCH 02/10] migrate: make core migration code aware of hugepage

2013-03-25 Thread Naoya Horiguchi
On Mon, Mar 25, 2013 at 11:57:01AM +0100, Michal Hocko wrote: > On Fri 22-03-13 16:23:47, Naoya Horiguchi wrote: ... > > diff --git v3.9-rc3.orig/mm/hugetlb.c v3.9-rc3/mm/hugetlb.c > > index 98a478e..a787c44 100644 > > --- v3.9-rc3.orig/mm/hugetlb.c > > +++ v3.9-rc3/mm/hugetlb.c > > @@ -48,7 +48,8

[PATCH] ia64 idle: delete (*idle)()

2013-03-25 Thread Len Brown
From: Len Brown 3e7fc708eb (ia64 idle: delete pm_idle) in 3.9-rc1 didn't finish the job, leaving an un-initialized reference to (*idle)(). Reported-by: Lars-Peter Clausen Signed-off-by: Len Brown --- arch/ia64/kernel/process.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --

Re: [PATCH 01/10] migrate: add migrate_entry_wait_huge()

2013-03-25 Thread Naoya Horiguchi
On Mon, Mar 25, 2013 at 11:13:40AM +0100, Michal Hocko wrote: > On Fri 22-03-13 16:23:46, Naoya Horiguchi wrote: > > When we have a page fault for the address which is backed by a hugepage > > under migration, the kernel can't wait correctly until the migration > > finishes. This is because pte_off

Re: [PATCH 8/9] spark: cpufreq: move cpufreq driver to drivers/cpufreq

2013-03-25 Thread Viresh Kumar
On 26 March 2013 07:30, Viresh Kumar wrote: > On 25 March 2013 22:37, David Miller wrote: >> From: Viresh Kumar >> Date: Mon, 25 Mar 2013 22:24:44 +0530 >> >>> This patch moves cpufreq driver of SPARK architecture to drivers/cpufreq. >> >> I don't know what spark is. > > :( > > s/spark/sparc ...

Re: [PATCH 05/15] KDB: add more exports for supporting KDB modules v2

2013-03-25 Thread Mike Travis
On 3/25/2013 7:38 PM, Eric W. Biederman wrote: > Mike Travis writes: > >> This patch adds some significant KDB functions to be usable by >> externally built and loadable KDB modules. All added functions >> have been marked EXPORT_SYMBOL_GPL as that seems to be the norm. >> No 'EXPORT_SYMBOL's

linux-next: build failure after merge of the char-misc tree

2013-03-25 Thread Stephen Rothwell
face (SSBI) driver") which added the Kconfig symbol MSM_SSBI (later changed to just SSBI) which did not exist in the tree before. However, MFD_PM8921_CORE depended on it and that selects MFD_PM8XXX which allows the above file to build (and fail). I have used the char-misc tree from next-201

Re: [PATCH] powerpc: remove two lines of dead code

2013-03-25 Thread Michael Ellerman
On Mon, Mar 25, 2013 at 11:32:11AM +0100, Paul Bolle wrote: > Commit c1fb6816fb1b78dd94b673b0fdaa9a7a16e97bd1 ("powerpc: Add > relocation on exception vector handlers") added two lines of code that > depend on the macro CONFIG_HVC_SCOM. That macro doesn't exist. Perhaps > it was intended to use CON

Re: [PATCH 1/1 v1] the recommended crash memory reservation is too small for x86_64.

2013-03-25 Thread WANG Chao
On 03/25/2013 07:52 PM, 周洲仪 wrote: > Thanks for reviewing > Is it sounds good to add following line into section "Boot into System > Kernel": > > The memory reserved for crash kernel should be no less than the unpacked > init ram disk size > that loaded with dump-capture kernel plus wired me

linux-next: manual merge of the usb tree with the tty tree

2013-03-25 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in drivers/usb/serial/usb-serial.c between commit 6aad04f21374 ("TTY: add tty_port_tty_wakeup helper") from the tty tree and commit d12e211d4484 ("USB: serial: clean up debug info") from the usb tree. I fixed it up (I just used the

[PATCH] ptp_pch: eliminate a number of sparse warnings

2013-03-25 Thread kpark3469
From: Sahara This fixes a number of sparse warnings like: warning: incorrect type in argument 2 (different address spaces) expected void volatile [noderef] *addr got unsigned int * warning: Using plain integer as NULL pointer Additionally this fixes a warning from checkpatch.pl like

RE: [PATCH 09/16] ia64 idle: delete pm_idle

2013-03-25 Thread Brown, Len
> > - idle = pm_idle; > > if (!idle) > > Hm, if I'm not mistaken idle will uninitialized at this point, so this > could quite likely lead to a crash. thanks, will fix. -Len -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

Re: [PATCH] include/linux/platform_data: beautify code, 'inline' is better in front of 'void'

2013-03-25 Thread Chen Gang
On 2013年03月26日 10:47, Nicolas Pitre wrote: > On Tue, 26 Mar 2013, Chen Gang wrote: > >> a hacker may find something "valuable" with the aid of compiler ;-) >> >> maybe, it is a patch which is too minor to apply. I can understand :-) > > You should send such patches to Jiri Kosina . > ok

Re: [PATCH] arch: remove CONFIG_GENERIC_FIND_NEXT_BIT again

2013-03-25 Thread rkuo
> CONFIG_GENERIC_FIND_NEXT_BIT was removed in v3.0, but reappeared in two > architectures. Remove it again. > > Signed-off-by: Paul Bolle > --- > 0) Untested. > > 1) See commit 63e424c84429903c92a0f1e9654c31ccaf6694d0 ("arch: remove > CONFIG_GENERIC_FIND_{NEXT_BIT,BIT_LE,LAST_BIT}") for the remova

Re: [PATCH] include/linux/platform_data: beautify code, 'inline' is better in front of 'void'

2013-03-25 Thread Nicolas Pitre
On Tue, 26 Mar 2013, Chen Gang wrote: > a hacker may find something "valuable" with the aid of compiler ;-) > > maybe, it is a patch which is too minor to apply. I can understand :-) You should send such patches to Jiri Kosina . Nicolas -- To unsubscribe from this list: send the line "un

Re: [RFC PATCH] sched: wake-affine throttle

2013-03-25 Thread Michael Wang
On 03/25/2013 10:31 PM, Mike Galbraith wrote: [snip] >> >> Do you mean 1ms interval is still too big? and you prefer to have a 0 >> option? > > Not really, I just think a fixed interval may not be good enough without > some idle time consideration. Once a single load gets going less > balancing i

[PATCH v5 3/5] PCI/AER: clean all untracked pci_ops_aer when rmmod aer_inject

2013-03-25 Thread Yijing Wang
When we do hot plug for pci devices that were injected aer errors, some newly created child buses' pci_ops will be assigned to pci_ops_aer. Aer_inject module will not track these pci_ops_aer(not list in pci_bus_ops_list),so we should clean all of these when rmmod aer_inject module. Reviewed-by:

[PATCH v5 5/5] PCI/AER: free pci_bus_ops_list and remove pci_bus_ops_pop

2013-03-25 Thread Yijing Wang
Rewrite pci_bus_ops_list release code for simplification, and clean no used function pci_bus_ops_pop(). Reviewed-by: Huang Ying Signed-off-by: Yijing Wang --- drivers/pci/pcie/aer/aer_inject.c | 25 ++--- 1 files changed, 6 insertions(+), 19 deletions(-) diff --git a/dri

[PATCH v5 2/5] PCI/AER: use list_for_each_entry to avoid a small race condition window

2013-03-25 Thread Yijing Wang
When we rmmod aer_inject module, there is a small race condition window between pci_bus_ops_pop() and pci_bus_set_ops() in aer_inject_exit, eg. pci_read_aer/pci_write_aer was called between them. So keep pci_bus_ops_list until pci_bus_set_ops complete, use list_for_each_entry() instead of pci_bu

[PATCH v5 1/5] PCI/AER: Fix pci_ops return NULL in pci_read/write_aer

2013-03-25 Thread Yijing Wang
When we injected aer errors to the pcie device by aer_inject module, pci_ops of the pci bus the device on will be assigned to pci_ops_aer.So if the target pci device is a bridge, once we hot-remove and hot-add the bridge, the newly created child bus's pci_ops will be assigned to pci_ops_aer too.N

[PATCH v5 4/5] PCI/AER: clean pci_bus_ops when related pci bus was removed

2013-03-25 Thread Yijing Wang
When Inject aer errors to the target pci device, a pci_bus_ops will be allocated for the pci device's pci bus.When the pci bus was removed, we should also release the pci_bus_ops. Signed-off-by: Yijing Wang Reviewed-by: Sven Dietrich --- drivers/pci/pcie/aer/aer_inject.c | 49

[PATCH v5 0/5] Fix aer_inject tool bug

2013-03-25 Thread Yijing Wang
Hi Tony, Can you pick up these bug fix patches into your ras tree? I sent them to PCI subsystem maillist, but Bjorn does not seem very interested in these aer_inject tool bug fix patches. Huang Ying is the author of aer_inject tool. And I had a long discussion with Huang Ying about these pat

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Dave Chinner
On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: > On Mon, Mar 25 2013, Dave Chinner wrote: > > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: > >> Call cond_resched() from shrink_dentry_list() to preserve > >> shrink_dcache_parent() interactivity. > >> > >> void shrink_d

Re: [PATCH 05/15] KDB: add more exports for supporting KDB modules v2

2013-03-25 Thread Eric W. Biederman
Mike Travis writes: > This patch adds some significant KDB functions to be usable by > externally built and loadable KDB modules. All added functions > have been marked EXPORT_SYMBOL_GPL as that seems to be the norm. > No 'EXPORT_SYMBOL's were changed from previous instances to avoid > breaking

Re:

2013-03-25 Thread Mrs Akilah Saeedi
-- I am Akilah Saeedi, i have 7.100,000.00 USD for you contact me on my provide email for more details. - Vidarebefordrat -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.ke

Re: [PATCH] include/linux/platform_data: beautify code, 'inline' is better in front of 'void'

2013-03-25 Thread Chen Gang
On 2013年03月26日 09:48, Greg KH wrote: > On Tue, Mar 26, 2013 at 09:22:57AM +0800, Chen Gang wrote: >> On 2013年03月26日 07:32, Greg KH wrote: >>> On Mon, Mar 25, 2013 at 10:36:22AM +0800, Chen Gang wrote: better to let 'inline' in front of 'void' >>> >>> Why? What does this fix? >>> >>> >>

[REPOST Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-25 Thread Rhyland Klein
Adding support for supplied_from char * array. This is meant to store the list of suppliers for a given supply, i.e. chargers for a battery. This list can be populated through devicetree readily as well as passed directly from the driver. Signed-off-by: Rhyland Klein --- v1: - Changed from RFC v

[REPOST Patch v1 1/3] power_supply: Define Binding for power-supplies

2013-03-25 Thread Rhyland Klein
This property is meant to be used in device nodes which represent power_supply devices that wish to provide a list of supplies which provide them power, such as a battery listing its chargers. Signed-off-by: Rhyland Klein --- v1: - changed from RFC v2 -> patch v1 - made poropery plural as it ca

[REPOST Patch v1 2/3] power: power_supply: Add core support for supplied_from

2013-03-25 Thread Rhyland Klein
This patch adds support for supplies to register a list of char *'s which represent the list of supplies which supply them. This is the opposite as the supplied_to list. This change maintains support for supplied_to until all drivers which make use of it already are converted. Signed-off-by: Rhyl

[REPOST Patch v1 0/3] Add DT Binding for Power-Supply power-supplies property

2013-03-25 Thread Rhyland Klein
This series defines a common way for devicetree initialized power_supplies to define their relationships between chargers and supplicants. This series adds a supplied_from array to complement the supplied_to array and to allow supplies to define the list of supplies which supply them. Then once t

Re: [PATCH] ARM: convert arm/arm64 arch timer to use CLKSRC_OF init

2013-03-25 Thread Rob Herring
On 03/25/2013 05:53 PM, John Stultz wrote: > On 03/25/2013 03:36 PM, Arnd Bergmann wrote: >> On Monday 25 March 2013, Rob Herring wrote: >>> I count integrator-cp, realview, versatile and non-DT VExpress that do >>> this (not surprisingly) and 25 platforms or timer implementations plus >>> arm64 th

Re: [PATCHv3 01/10] clocksource: add generic dummy timer driver

2013-03-25 Thread Stephen Boyd
On 03/25/13 11:00, Mark Rutland wrote: > >>> I've spent the last few hours trying to get the dummy_timer driver working >>> on >>> tc2 with the sp804 as the broadcast source (with architected timer support >>> disabled). It turns out that having dummy timer's rating so low means that >>> it >>> w

[git pull] Please pull some powerpc build fixes

2013-03-25 Thread Stephen Rothwell
The following changes since commit 3912a677f68f6084e0a7b6a1a29310ac1b083713: Merge tag 'pinctrl-fixes-for-v3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl (2013-03-24 10:11:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kerne

RE: [PATCH -next v2] mailbox: fix invalid use of sizeof in mailbox_msg_send()

2013-03-25 Thread Anna, Suman
> From: Wei Yongjun > > sizeof() when applied to a pointer typed expression gives the size of the > pointer, > not that of the pointed data. > > Signed-off-by: Wei Yongjun > --- > drivers/mailbox/mailbox.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers

linux-next: manual merge of the block tree with Linus' tree

2013-03-25 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in drivers/md/raid5.c between commit e3620a3ad526 ("MD RAID5: Avoid accessing gendisk or queue structs when not available") from Linus' tree and commit 2f6db2a70734 ("raid5: use bio_reset()") from the block tree. I fixed it up (se

Re: [PATCH 8/9] spark: cpufreq: move cpufreq driver to drivers/cpufreq

2013-03-25 Thread Viresh Kumar
On 25 March 2013 22:37, David Miller wrote: > From: Viresh Kumar > Date: Mon, 25 Mar 2013 22:24:44 +0530 > >> This patch moves cpufreq driver of SPARK architecture to drivers/cpufreq. > > I don't know what spark is. :( s/spark/sparc ... I will fix patch in V2.. -- To unsubscribe from this list

Re: [PATCH] [TRIVIAL] Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"

2013-03-25 Thread Rob Landley
On 03/25/2013 05:59:16 PM, Paul Bolle wrote: Signed-off-by: Paul Bolle --- Documentation/cgroups/memory.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Rob Landley Rob-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

Re: [PATCH] alpha: makefile: don't enforce small data model for kernel builds

2013-03-25 Thread Rob Landley
On 03/25/2013 03:55:28 PM, Matt Turner wrote: On Mon, Mar 25, 2013 at 1:06 PM, Michael Cree wrote: > On 26/03/2013, at 4:09 AM, Tobias Klausmann wrote: >> >> On Mon, 25 Mar 2013, Will Deacon wrote: >>> >>> Any news on these? I've included an updated version of the first patch, >>> with >>>

Re: [PATCH] include/linux/platform_data: beautify code, 'inline' is better in front of 'void'

2013-03-25 Thread Greg KH
On Tue, Mar 26, 2013 at 09:22:57AM +0800, Chen Gang wrote: > On 2013年03月26日 07:32, Greg KH wrote: > > On Mon, Mar 25, 2013 at 10:36:22AM +0800, Chen Gang wrote: > >> > >> better to let 'inline' in front of 'void' > > > > Why? What does this fix? > > > > > > > > when I am compiling with "E

Re: [PATCH] drivers: uio: Fix UIO device registration failure

2013-03-25 Thread Greg KH
On Tue, Mar 26, 2013 at 10:31:22AM +0900, Damian Hobson-Garcia wrote: > Until recently uio_get_minor() returned 0 for success and > a negative value on failure. This became non-negative for suceess and > negative for failure. Restore the original return value spec so that we can > successfully in

[PATCH] drivers: uio: Fix UIO device registration failure

2013-03-25 Thread Damian Hobson-Garcia
Until recently uio_get_minor() returned 0 for success and a negative value on failure. This became non-negative for suceess and negative for failure. Restore the original return value spec so that we can successfully initialize UIO devices with a non-zero minor device number. Signed-off-by: Dami

Re: [PATCH] include/linux/platform_data: beautify code, 'inline' is better in front of 'void'

2013-03-25 Thread Chen Gang
On 2013年03月26日 07:32, Greg KH wrote: > On Mon, Mar 25, 2013 at 10:36:22AM +0800, Chen Gang wrote: >> >> better to let 'inline' in front of 'void' > > Why? What does this fix? > > > when I am compiling with "EXTRA_FLAGS=-W", I get a warning: make V=1 EXTRA_CFLAGS=-W ARCH=arm randconfig

Re: [PATCH] block: removes dynamic allocation on stack

2013-03-25 Thread Jens Axboe
On Mon, Mar 25 2013, Philip J. Kelleher wrote: > From: Philip J Kelleher > > This patch removes dynamic allocation on the stack error. > > Signed-off-by: Philip J Kelleher > --- > > > diff -uprN -X linux-block/Documen

linux-next: manual merge of the wireless-next tree with the wireless tree

2013-03-25 Thread Stephen Rothwell
Hi John, Today's linux-next merge of the wireless-next tree got a conflict in net/mac80211/sta_info.c between commit 27a737ff7cb0 ("mac80211: always synchronize_net() during station removal") from the wireless tree and commits 3b8d9c290364 ("mac80211: remove underscores from some key functions") a

[PATCH] Fix child thread's introspection of /proc/self/exe

2013-03-25 Thread Ben Woodard
Allow threads other than the main thread to do introspection of files in proc without relying on read permissions. proc_pid_follow_link() calls proc_fd_access_allowed() which ultimately calls __ptrace_may_access(). Though this allows additional access to some proc files, we do not believe that

linux-next: manual merge of the net-next tree with the wireless tree

2013-03-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/wireless/core.h between commit f9f475292dbb ("cfg80211: always check for scan end on P2P device") from the wireless tree and commit 812569699119 ("cfg80211/mac80211: disconnect on suspend") from the net-next tree. I fixed

Re: RFC v2: Zynq Clock Controller

2013-03-25 Thread Sören Brinkmann
On Mon, Mar 25, 2013 at 07:10:35PM +0100, Lars-Peter Clausen wrote: > On 03/25/2013 06:59 PM, Sören Brinkmann wrote: > > Hi, > > > > On Mon, Mar 25, 2013 at 06:19:11PM +0100, Lars-Peter Clausen wrote: > >> On 03/25/2013 06:08 PM, Sören Brinkmann wrote: > >>> Hi Lars, > >>> > >>> On Mon, Mar 25, 20

Re: [PATCH 3/4] f2fs: remain nat cache entries for further free nid allocation

2013-03-25 Thread Namjae Jeon
2013/3/25, Jaegeuk Kim : > In the checkpoint flow, the f2fs investigates the total nat cache entries. > Previously, if an entry has NULL_ADDR, f2fs drops the entry and adds the > obsolete nid to the free nid list. > However, this free nid will be reused sooner, resulting in its nat entry > miss. >

linux-next: manual merge of the net-next tree with the wireless tree

2013-03-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/mac80211/sta_info.c between commit 27a737ff7cb0 ("mac80211: always synchronize_net() during station removal") from the wireless tree and commit 8d1f7ecd2af5 ("mac80211: defer tailroom counter manipulation when roaming") fr

Re: [PATCH 2/4] f2fs: do not skip writing file meta during fsync

2013-03-25 Thread Namjae Jeon
2013/3/25, Jaegeuk Kim : > This patch removes data_version check flow during the fsync call. > The original purpose for the use of data_version was to avoid writng inode > pages redundantly by the fsync calls repeatedly. Hi Jaegeuk. > However, when user can modify file meta and then call fsync, we

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
On Mon, Mar 25 2013, Dave Chinner wrote: > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: >> Call cond_resched() from shrink_dentry_list() to preserve >> shrink_dcache_parent() interactivity. >> >> void shrink_dcache_parent(struct dentry * parent) >> { >> while ((found = select

Re: [PATCH 1/4] f2fs: fix the recovery flow to handle errors correctly

2013-03-25 Thread Namjae Jeon
2013/3/25, Jaegeuk Kim : > 2013-03-25 (월), 15:30 +0900, Namjae Jeon: >> 2013/3/25, Jaegeuk Kim : >> > We should handle errors during the recovery flow correctly. >> > For example, if we get -ENOMEM, we should report a mount failure instead >> > of >> > conducting the remained mount procedure. >> >

Re: [PATCH] doc: change example to existing Makefile fragment

2013-03-25 Thread Rob Landley
On 03/25/2013 05:16:24 AM, Paul Bolle wrote: Signed-off-by: Paul Bolle --- Documentation/kbuild/makefiles.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Acked-by: Rob Landley Please send through the kbuild tree. Rob diff --git a/Documentation/kbuild/makefiles.txt b/Docum

Re: [PATCH 1/4] ARM: context tracking: add exception support

2013-03-25 Thread Kevin Hilman
Hi Russell, Russell King - ARM Linux writes: > On Wed, Mar 20, 2013 at 05:01:58PM -0700, Kevin Hilman wrote: >> Add ARM support for the context tracking subsystem by instrumenting >> exception entry/exit points. >> >> Special thanks to Mats Liljegren for testing, collaboration and adding >> sup

Re: [PATCHv2 09/12] staging: ti-soc-thermal: fix several kernel-doc warnings and error

2013-03-25 Thread Eduardo Valentin
On 25-03-2013 14:22, Greg KH wrote: On Tue, Mar 19, 2013 at 10:54:25AM -0400, Eduardo Valentin wrote: This patch updates the documentation to remove all warnings and errors reported by scripts/kernel-doc. Most are missing arguments due to wrong format. Cc: Nishanth Menon Signed-off-by: Eduard

Re: CONFIG_EARLY_PRINTK

2013-03-25 Thread Randy Dunlap
On 03/22/13 07:07, Thomas Meyer wrote: > Am Samstag, den 16.03.2013, 10:38 -0700 schrieb Randy Dunlap: >> On 03/16/13 08:08, Thomas Meyer wrote: >>> Am Mittwoch, den 13.03.2013, 12:56 -0700 schrieb Randy Dunlap: >>> Yes, >>> >>> so why not do this? As the text to EARLY_PRINTK explains? >> >> Yes, t

Re: [PATCH] init/Kconfig: make EXPERT as config instead of menuconfig

2013-03-25 Thread Randy Dunlap
On 03/21/13 19:02, zhangwei(Jovi) wrote: > There don't have any EXPERT menu guard, and no config item is > included in EXPERT menu, so change it as a config, not menu. > > This will make user more clear when they use 'make menuconfig' > or 'make nconfig'. > > Signed-off-by: zhangwei(Jovi) > Cc:

[PATCH] gpio: Renesas R-Car GPIO driver V3

2013-03-25 Thread Magnus Damm
From: Magnus Damm This patch is V3 of a GPIO driver for the R-Car series of SoCs from Renesas. This driver is designed to be reusable between multiple SoCs that share the same basic building block, but so far it has only been used on R-Car H1 (r8a7779). Each driver instance handles 32 GPIOs with

Re: [PATCH] seccomp: allow BPF_XOR based ALU instructions.

2013-03-25 Thread James Morris
On Fri, 15 Mar 2013, Nicolas Schichan wrote: > > Signed-off-by: Nicolas Schichan > --- > kernel/seccomp.c |2 ++ > 1 file changed, 2 insertions(+) Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next -- James Morris -- To unsubscribe from this list:

[PATCH 3/6] workqueue: protect wq->nr_drainers and ->flags with wq->mutex

2013-03-25 Thread Tejun Heo
From: Lai Jiangshan We're expanding wq->mutex to cover all fields specific to each workqueue with the end goal of replacing pwq_lock which will make locking simpler and easier to understand. wq->nr_drainers and ->flags are specific to each workqueue. Protect ->nr_drainers and ->flags with wq->m

[PATCH 4/6] workqueue: protect wq->pwqs and iteration with wq->mutex

2013-03-25 Thread Tejun Heo
From: Lai Jiangshan We're expanding wq->mutex to cover all fields specific to each workqueue with the end goal of replacing pwq_lock which will make locking simpler and easier to understand. init_and_link_pwq() and pwq_unbound_release_workfn() already grab wq->mutex when adding or removing a pwq

[PATCH 6/6] workqueue: remove pwq_lock which is no longer used

2013-03-25 Thread Tejun Heo
From: Lai Jiangshan To simplify locking, the previous patches expanded wq->mutex to protect all fields of each workqueue instance including the pwqs list leaving pwq_lock without any user. Remove the unused pwq_lock. tj: Rebased on top of the current dev branch. Updated description. Signed-of

  1   2   3   4   5   6   >