Re: [PATCH 3/5] clk: convert clock name allocations to kstrdup_const

2015-01-12 Thread Andrzej Hajda
On 01/13/2015 12:11 AM, Mike Turquette wrote: > Quoting Andrzej Hajda (2015-01-12 01:18:41) >> Clock subsystem frequently performs duplication of strings located >> in read-only memory section. Replacing kstrdup by kstrdup_const >> allows to avoid such operations. >> >> Signed-off-by: Andrzej

Re: [PATCH 1/5] gpio: Cygnus: define Broadcom Cygnus GPIO binding

2015-01-12 Thread Linus Walleij
On Sat, Dec 6, 2014 at 1:40 AM, Ray Jui wrote: > Document the GPIO device tree binding for Broadcom Cygnus SoC > > Signed-off-by: Ray Jui > Reviewed-by: Scott Branden (...) > +- #gpio-cells: > +Must be two. The first cell is the GPIO pin number (within the > +controller's domain) and the

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-12 Thread Pavel Machek
On Tue 2015-01-13 09:40:18, Pantelis Antoniou wrote: > Hi Pavel, > > > On Jan 13, 2015, at 09:28 , Pavel Machek wrote: > > > > Hi! > > > >> +What: /sys/class/fpga_manager//firmware > >> +Date: October 2014 > >> +KernelVersion:3.18 >

Re: [PATCH -mm 2/2] mm: vmscan: init reclaim_state in do_try_to_free_pages

2015-01-12 Thread Vladimir Davydov
On Mon, Jan 12, 2015 at 05:26:34PM -0500, Johannes Weiner wrote: > On Mon, Jan 12, 2015 at 12:30:38PM +0300, Vladimir Davydov wrote: > > All users of do_try_to_free_pages() want to have current->reclaim_state > > set in order to account reclaimed slab pages. So instead of duplicating > > the

Re: Fwd: [rhashtable] WARNING: CPU: 0 PID: 10 at kernel/locking/mutex.c:570 mutex_lock_nested()

2015-01-12 Thread Ying Xue
On 01/12/2015 08:42 PM, Thomas Graf wrote: > On 01/12/15 at 09:38am, Ying Xue wrote: >> Hi Thomas, >> >> I am really unable to see where is wrong leading to below warning >> complaints. Can you please help me check it? > > Not sure yet. It's not your patch that introduced the issue though. > It

Re: [PATCH 6/7] input: alps: Add sanity checks for non DualPoint devices

2015-01-12 Thread Pali Rohár
On Monday 12 January 2015 01:31:00 Dmitry Torokhov wrote: > On Fri, Nov 14, 2014 at 08:38:25PM +0100, Pali Rohár wrote: > > This patch adds sanity checks and reject trackstick packets > > from ALPS devices which do not have trackstick present > > (those without ALPS_DUALPOINT flag). > > > > Make

Re: [PATCH -mm 1/2] mm: vmscan: account slab pages on memcg reclaim

2015-01-12 Thread Vladimir Davydov
On Mon, Jan 12, 2015 at 05:18:39PM -0500, Johannes Weiner wrote: > On Mon, Jan 12, 2015 at 12:30:37PM +0300, Vladimir Davydov wrote: > > Since try_to_free_mem_cgroup_pages() can now call slab shrinkers, we > > should initialize reclaim_state and account reclaimed slab pages in > >

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-12 Thread Pantelis Antoniou
Hi Pavel, > On Jan 13, 2015, at 09:28 , Pavel Machek wrote: > > Hi! > >> +What: /sys/class/fpga_manager//firmware >> +Date: October 2014 >> +KernelVersion: 3.18 >> +Contact:Alan Tull >> +Description:Name of

[PATCH v2] xen/x86: properly retrieve NMI reason

2015-01-12 Thread Jan Beulich
Using the native code here can't work properly, as the hypervisor would normally have cleared the two reason bits by the time Dom0 gets to see the NMI (if passed to it at all). There's a shared info field for this, and there's an existing hook to use - just fit the two together. This is

Re: [PATCH v9 3/4] ASoC: tda998x: add a codec to the HDMI transmitter

2015-01-12 Thread Jean-Francois Moine
On Sun, 11 Jan 2015 23:03:14 +0200 Jyri Sarha wrote: > Some more comments based on my - finally successful - attempt to use > this code with BBB HDMI audio. > > On 01/07/2015 12:51 PM, Jean-Francois Moine wrote: > > This patch adds a CODEC to the NXP TDA998x HDMI transmitter. [snip] >

[PATCH] rcu_tree: avoid touch rnp->completed when starts a new GP

2015-01-12 Thread Lai Jiangshan
In rcu_gp_init(), rnp->completed equals to rsp->completed in THEORY, we don't need to touch it normally. If something goes wrong, it will complain and fixup rnp->completed and avoid oops. Signed-off-by: Lai Jiangshan --- kernel/rcu/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH 1/4] usb: gadget: u_uac1: fix build issue

2015-01-12 Thread Huang Rui
On Tue, Jan 13, 2015 at 06:51:40AM +, Peter Chen wrote: > > > See below error message: > > CC [M] drivers/gpu/drm/nouveau/core/subdev/vm/nv50.o > > CC [M] drivers/staging/lustre/lnet/selftest/module.o > > drivers/usb/gadget/function/f_uac1.c: In function ‘f_audio_free_inst’: > >

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-12 Thread Pavel Machek
Hi! > +What: /sys/class/fpga_manager//firmware > +Date: October 2014 > +KernelVersion: 3.18 > +Contact:Alan Tull > +Description:Name of the FPGA image file to load using > firmware >

Re: [PATCH v2 5/5] mm/compaction: add tracepoint to observe behaviour of compaction defer

2015-01-12 Thread Joonsoo Kim
On Mon, Jan 12, 2015 at 05:35:47PM +0100, Vlastimil Babka wrote: > On 01/12/2015 09:21 AM, Joonsoo Kim wrote: > > compaction deferring logic is heavy hammer that block the way to > > the compaction. It doesn't consider overall system state, so it > > could prevent user from doing compaction

Re: [PATCH 1/2] workqueue: update numa affinity info at node hotplug

2015-01-12 Thread Lai Jiangshan
On 12/26/2014 04:11 AM, Tejun Heo wrote: > On Wed, Dec 17, 2014 at 01:56:29PM +0900, Kamezawa Hiroyuki wrote: >> Let me correct my words. Main purpose of this patch 1/2 is handling a case >> "node disappers" after boot. >> And try to handle physicall node hotplug caes. >> >> Changes of cpu<->node

Re: [PATCH v2 4/5] mm/compaction: more trace to understand when/why compaction start/finish

2015-01-12 Thread Joonsoo Kim
On Mon, Jan 12, 2015 at 04:53:53PM +0100, Vlastimil Babka wrote: > On 01/12/2015 09:21 AM, Joonsoo Kim wrote: > > It is not well analyzed that when/why compaction start/finish or not. With > > these new tracepoints, we can know much more about start/finish reason of > > compaction. I can find

Re: [PATCH] perf: fix dwarf unwind using libunwind.

2015-01-12 Thread Jiri Olsa
On Tue, Jan 13, 2015 at 10:54:37AM +0800, Wang Nan wrote: SNIP > > +static int elf_is_exec(int fd, const char *name) > +{ > + Elf *elf; > + GElf_Ehdr ehdr; > + int retval = 0; > + > + elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); > + if (elf == NULL) > +

Re: [PATCH] staging: vt6656: whitespace checkpatch warning fix.

2015-01-12 Thread Krzysztof Adamski
On Mon, Jan 12, 2015 at 07:41:34PM -0800, Greg Kroah-Hartman wrote: On Mon, Dec 22, 2014 at 05:08:34PM +0100, Krzysztof Adamski wrote: This fixes following checkpatch.pl error: ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Krzysztof Adamski --- drivers/staging/vt6656/rxtx.c

Re: [PATCH 3/5] workqueue: fixup existing pool->node

2015-01-12 Thread Lai Jiangshan
On 12/26/2014 04:14 AM, Tejun Heo wrote: > On Mon, Dec 15, 2014 at 09:23:49AM +0800, Lai Jiangshan wrote: >> The pwqs of the old node's cpumask do be discarded. But the pools of the old >> node's cpumask maybe recycle. For example, a new workqueue's affinity is set >> to >> the old node's cpumask

[PATCH] gpio: stmpe: enforce device tree only mode

2015-01-12 Thread Linus Walleij
Require that device tree be used with STMPE (all platforms use this) and enforce OF_GPIO, then delete the platform data. Signed-off-by: Linus Walleij --- MFD: folks: please ACK this so I can funnel it through the GPIO tree. --- drivers/gpio/Kconfig | 1 + drivers/gpio/gpio-stmpe.c | 23

Re: [PATCH v6 08/17] ARM64 / ACPI: Parse FADT table to get PSCI flags for PSCI init

2015-01-12 Thread Hanjun Guo
On 2015年01月12日 19:41, Lorenzo Pieralisi wrote: On Mon, Jan 12, 2015 at 04:26:41AM +, Hanjun Guo wrote: On 2015年01月10日 03:04, Lorenzo Pieralisi wrote: On Sun, Jan 04, 2015 at 10:55:09AM +, Hanjun Guo wrote: There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Konstantin Khlebnikov
On Mon, Jan 12, 2015 at 11:21 PM, Andrew Morton wrote: > On Sun, 11 Jan 2015 16:54:06 +0300 Konstantin Khlebnikov > wrote: > >> Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() >> ("kernel BUG at mm/rmap.c:399!"). >> >> Anon_vma_clone() is usually called for a copy of source vma

RE: [PATCH 1/4] usb: gadget: u_uac1: fix build issue

2015-01-12 Thread Peter Chen
> See below error message: > CC [M] drivers/gpu/drm/nouveau/core/subdev/vm/nv50.o > CC [M] drivers/staging/lustre/lnet/selftest/module.o > drivers/usb/gadget/function/f_uac1.c: In function ‘f_audio_free_inst’: > drivers/usb/gadget/function/f_uac1.c:904:21: error: ‘struct f_uac1_opts’ has >

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-12 Thread Michael Chan
On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: > [ 17.203009] BUG: sleeping function called from invalid context at > /home/peter/src/kernels/mainline/kernel/irq/manage.c:104 > [ 17.203067] in_atomic(): 1, irqs_disabled(): 0, pid: 1106, name: ip > [ 17.203092] 2 locks held by

Re: [PATCH v2] Staging: vt6656: Checkpatch fix: else after break or return

2015-01-12 Thread Sudip Mukherjee
On Tue, Jan 13, 2015 at 11:54:27AM +0530, Sudip Mukherjee wrote: > On Mon, Jan 12, 2015 at 09:58:17PM -0800, Greg KH wrote: > > On Tue, Jan 13, 2015 at 10:53:12AM +0530, Sudip Mukherjee wrote: > > > > > > any reason why this return was removed ? > > > > Because it's not needed. > > yes, it is

Re: Query: ARM64: Behavior of el1_dbg exception while executing el0_dbg

2015-01-12 Thread Pratyush Anand
On Monday 12 January 2015 11:00 PM, Will Deacon wrote: On Fri, Jan 09, 2015 at 05:13:29PM +, Pratyush Anand wrote: On Friday 09 January 2015 09:16 PM, Will Deacon wrote: On Thu, Jan 08, 2015 at 05:28:37PM +, Pratyush Anand wrote: On Thursday 08 January 2015 09:53 PM, Will Deacon

[PATCH] memcg: remove extra newlines from memcg oom kill log

2015-01-12 Thread Greg Thelen
Commit e61734c55c24 ("cgroup: remove cgroup->name") added two extra newlines to memcg oom kill log messages. This makes dmesg hard to read and parse. The issue affects 3.15+. Example: Task in /t <<< extra #1 killed as a result of limit of /t

[PATCH] mmc: core: fix race condition in mmc_wait_data_done

2015-01-12 Thread Jialing Fu
The following panic is captured in ker3.14, but the issue still exists in latest kernel. - [ 20.738217] c0 3136 (Compiler) Unable to handle kernel NULL pointer dereference at virtual address 0578 .. [ 20.738499] c0

linux-next: Tree for Jan 13

2015-01-12 Thread Stephen Rothwell
Hi all, Changes since 20150112: The imx-mxs tree gained a conflict against the arm-soc tree. The mvebu tree gained a conflict against the arm-soc tree. The net-next tree lost its build failure. The usb-gadget tree gained conflicts against the usb.current tree. The pinctrl tree lost its build

[PATCH 1/4] usb: gadget: u_uac1: fix build issue

2015-01-12 Thread Huang Rui
Since gaudio member is removed at f_uac1_opts, it also needs to remove the cleanup call of gaudio member at f_uac1_opts when the usb function instance is freed. See below error message: CC [M] drivers/gpu/drm/nouveau/core/subdev/vm/nv50.o CC [M] drivers/staging/lustre/lnet/selftest/module.o

Re: [PATCH] sata: xgene: add ACPI support for APM X-Gene SATA ports

2015-01-12 Thread Hanjun Guo
On 2015年01月13日 05:07, Suman Tripathi wrote: Hi, Tested-by: Suman Tripathi On Thu, Jan 8, 2015 at 11:35 PM, Hanjun Guo mailto:hanjun@linaro.org>> wrote: On 2015年01月09日 01:56, Feng Kan wrote: On Wed, Jan 7, 2015 at 11:50 PM, Hanjun Guo mailto:hanjun@linaro.org>>

Re: [PATCH v2] Staging: vt6656: Checkpatch fix: else after break or return

2015-01-12 Thread Sudip Mukherjee
On Mon, Jan 12, 2015 at 09:58:17PM -0800, Greg KH wrote: > On Tue, Jan 13, 2015 at 10:53:12AM +0530, Sudip Mukherjee wrote: > > On Tue, Jan 13, 2015 at 03:51:36AM +1100, Emrys Bayliss wrote: > > > This patch fixes the following checkpatch.pl error: > > > rxtx.c:588: WARNING: else is not generally

Re: [PATCH 0/4] sh-pfc: Add emev2 pinmux support

2015-01-12 Thread Linus Walleij
On Fri, Dec 12, 2014 at 9:01 PM, Niklas Söderlund wrote: > Greetings, > > This patchset introduces pinmux support for the EMMA Mobile EV2 board to > the sh-pfc pin-controller driver. Devicetree bindings for gpio and the > populated serial connector are also defined in 3/4 and 4/4. > > Comments

[PATCH v1] dma: imx-sdma: switch to dynamic context mode after script loaded

2015-01-12 Thread Robin Gong
Below comments got from Page4724 of Reference Manual of i.mx6q: http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf --"Static context mode should be used for the first channel called after reset to ensure that the all context RAM for that channel is initialized during the context

Re: [RFC 05/15] gpio: move DT parsing code to separate functions

2015-01-12 Thread Linus Walleij
On Wed, Dec 10, 2014 at 4:48 PM, Andrzej Hajda wrote: > The patch moves Device Tree parsing logic to separate > function. > > Signed-off-by: Andrzej Hajda I think this patch need to be rebased on the GPIO devel branch, but looks like it makes things cleaner so can stand on its own merits. We

Re: [PATCH v2] gianfar: correct the bad expression while writing bit-pattern

2015-01-12 Thread Eric Dumazet
On Mon, 2015-01-12 at 22:01 -0800, Eric Dumazet wrote: > On Tue, 2015-01-13 at 10:58 +0530, Sanjeev Sharma wrote: > > This patch correct the bad expression while writing the > > bit-pattern from software's buffer to hardware registers. > > > > Signed-off-by: Sanjeev Sharma > > --- > > Changes in

Re: [PATCH] staging: vt6656: Use ether_addr_copy() in vnt_fill_ieee80211_rts.

2015-01-12 Thread Greg Kroah-Hartman
On Tue, Dec 16, 2014 at 09:30:21AM +0100, Krzysztof Adamski wrote: > Both struct ieee80211_rts and struct ieee80211_hdr defined in > linux/ieee80211.h are declared as __aligned(2) so it is safe to use > ether_addr_copy() instead of memcpy(). > > Signed-off-by: Krzysztof Adamski > --- >

Re: [PATCH] staging:vt6655 Add extern variable in head file

2015-01-12 Thread Greg Kroah-Hartman
On Tue, Dec 16, 2014 at 03:39:50PM +0800, sunwxg wrote: > From: Sun Wang > > Subject: [PATCH] staging:vt6655 Add extern variable in head file Why is this in the middle of the patch? I would have to hand edit it out :( > > Extern variable must be declared in head file. Compiler can catch the

Re: [PATCH v2] Staging: vt6656: Checkpatch fix: else after break or return

2015-01-12 Thread Greg KH
On Tue, Jan 13, 2015 at 10:53:12AM +0530, Sudip Mukherjee wrote: > On Tue, Jan 13, 2015 at 03:51:36AM +1100, Emrys Bayliss wrote: > > This patch fixes the following checkpatch.pl error: > > rxtx.c:588: WARNING: else is not generally useful after a break or return > > was the checkpatch error

Re: [PATCH] staging: vt6655: mib.c: Remove some unused functions

2015-01-12 Thread Greg Kroah-Hartman
On Thu, Jan 01, 2015 at 06:18:32PM +0100, Rickard Strandqvist wrote: > Removes some functions that are not used anywhere: > STAvClearAllCounter() STAvClear802_11Counter() > STAvUpdateTDStatCounterEx() STAvUpdateRDStatCounterEx() > > This was partially found by using a static code analysis program

Re: [PATCH v2] gianfar: correct the bad expression while writing bit-pattern

2015-01-12 Thread Eric Dumazet
On Tue, 2015-01-13 at 10:58 +0530, Sanjeev Sharma wrote: > This patch correct the bad expression while writing the > bit-pattern from software's buffer to hardware registers. > > Signed-off-by: Sanjeev Sharma > --- > Changes in v2: > - incorporated review comment as per Sergei. > >

Re: [PATCH] staging: vt6656: whitespace checkpatch warning fix.

2015-01-12 Thread Greg Kroah-Hartman
On Wed, Dec 10, 2014 at 06:05:31PM +0100, Krzysztof Adamski wrote: > This fixes following checkpatch.pl error: > ERROR: space prohibited before that ',' (ctx:WxW) > > Signed-off-by: Krzysztof Adamski > --- > drivers/staging/vt6656/rxtx.c |2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] staging: vt6655: remove unused function in mac.c

2015-01-12 Thread Greg KH
On Wed, Dec 10, 2014 at 01:50:16PM +0800, Fred Chou wrote: > From: Fred Chou > > Removed the unused function MACvGetShortRetryLimit, which also > fixed the following sparse warning: > drivers/staging/vt6655/mac.c:162:6: warning: > symbol 'MACvGetShortRetryLimit' was not declared. Should it be

Re: [PATCH] staging: vt6656: whitespace checkpatch warning fix.

2015-01-12 Thread Greg Kroah-Hartman
On Mon, Dec 22, 2014 at 05:08:34PM +0100, Krzysztof Adamski wrote: > This fixes following checkpatch.pl error: > ERROR: space prohibited before that ',' (ctx:WxW) > > Signed-off-by: Krzysztof Adamski > --- > drivers/staging/vt6656/rxtx.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] staging: vt6655: srom.c: Remove some unused functions

2015-01-12 Thread Greg Kroah-Hartman
On Sun, Dec 21, 2014 at 07:03:03PM +0100, Rickard Strandqvist wrote: > Removes some functions that are not used anywhere: > SROMbAutoLoad() SROMvReadSubSysVenId() SROMvWriteEtherAddress() > SROMvWriteAllContents() SROMbIsRegBitsOff() SROMbIsRegBitsOn() > SROMvRegBitsOff() SROMvRegBitsOn() > >

Re: [PATCH] staging: vt6656: Use ether_addr_copy() on vnt_private members.

2015-01-12 Thread Greg Kroah-Hartman
On Mon, Dec 22, 2014 at 05:15:41PM +0100, Krzysztof Adamski wrote: > This patch fixes checkpatch.pl warning: > WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet > addresses are __aligned(2) > > current_net_addr and permanent_net_addr members of vnt_private alignment > is changed to

Re: [PATCH] staging: vt6655: mac.c: Remove unused function

2015-01-12 Thread Greg Kroah-Hartman
On Sun, Dec 07, 2014 at 11:02:44PM +0100, Rickard Strandqvist wrote: > Remove the function MACbCompareContext() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist > --- >

Re: [PATCH 1/1] [PATCH] Staging:vt6655: sparse warning fix

2015-01-12 Thread Greg KH
On Tue, Dec 09, 2014 at 08:58:31PM +0530, Adithya K wrote: > From: Adithya Krishnamurthy > > Fixed sparse warning(symbol was not declared. Should it be static) fix. > > Signed-off-by: Adithya Krishnamurthy > --- > --- > drivers/staging/vt6655/device_main.c | 2 +- > 1 file changed, 1

linux-next: manual merge of the akpm-current tree with the char-misc tree

2015-01-12 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in drivers/misc/ti-st/st_core.c between commit 0ec0cf19201d ("drivers:misc:ti-st: protect against bad packets") from the char-misc tree and commit 55ed078edf3f ("drivers/misc/ti-st/st_core.c: fix NULL dereference on

RE: [Devel] [PATCH 3/3] ACPICA: Remove use of __DATE__ macro

2015-01-12 Thread Zheng, Lv
Hi, Rasmus Just for your information. There is also a known bug related to the application header printing. The fix is: https://github.com/zetalog/acpica/commit/79e75432 But this bug can only be seen for EFI ports of ACPICA utilities, it won't be detected in the kernel source tree. Hope this is

Re: [alsa-devel] [PATCH] ASoC: wm8904: fix runtime warning

2015-01-12 Thread Bo Shen
Hi Lars-Perter Clausen, On 01/12/2015 05:30 PM, Lars-Peter Clausen wrote: On 01/12/2015 04:32 AM, Bo Shen wrote: [...] diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 4d2d2b1..38582d7 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -1076,10

Re: [PATCH] fs: namespace: Simplify function commit_tree()

2015-01-12 Thread Jiang Liu
On 2015/1/13 13:28, Al Viro wrote: > On Tue, Jan 13, 2015 at 01:08:06PM +0800, Jiang Liu wrote: >> Simplify function commit_tree() in fs/namespace.c, it also improves code >> readability. > > Huh? > >> static void commit_tree(struct mount *mnt, struct mount *shadows) >> { >> struct mount

[PATCH v2] gianfar: correct the bad expression while writing bit-pattern

2015-01-12 Thread Sanjeev Sharma
This patch correct the bad expression while writing the bit-pattern from software's buffer to hardware registers. Signed-off-by: Sanjeev Sharma --- Changes in v2: - incorporated review comment as per Sergei. drivers/net/ethernet/freescale/gianfar_ethtool.c | 2 +- 1 file changed, 1

Re: [PATCH] fs: namespace: Simplify function commit_tree()

2015-01-12 Thread Al Viro
On Tue, Jan 13, 2015 at 01:08:06PM +0800, Jiang Liu wrote: > Simplify function commit_tree() in fs/namespace.c, it also improves code > readability. Huh? > static void commit_tree(struct mount *mnt, struct mount *shadows) > { > struct mount *parent = mnt->mnt_parent; > - struct mount

Re: [PATCH net-next] rhashtable: Lower/upper bucket may map to same lock while shrinking

2015-01-12 Thread David Miller
From: Thomas Graf Date: Mon, 12 Jan 2015 23:58:21 + > Each per bucket lock covers a configurable number of buckets. While > shrinking, two buckets in the old table contain entries for a single > bucket in the new table. We need to lock down both while linking. > Check if they are protected

Re: [PATCH] kbuild: fix scripts/headers.sh to see the correct Kbuild path

2015-01-12 Thread Masahiro Yamada
Hi Sam, IIRC, you mentioned scripts/headers.sh is pointless and should be removed from the code base. If so, this patch of mine has no point. Could you consider removing scripts/headers.sh ? Best Regards Masahiro Yamada On Wed, 3 Dec 2014 15:52:15 +0900 Masahiro Yamada wrote: > The

Re: [PATCH v2] Staging: vt6656: Checkpatch fix: else after break or return

2015-01-12 Thread Sudip Mukherjee
On Tue, Jan 13, 2015 at 03:51:36AM +1100, Emrys Bayliss wrote: > This patch fixes the following checkpatch.pl error: > rxtx.c:588: WARNING: else is not generally useful after a break or return was the checkpatch error solved with this change? have you checked? and the checkpatch is giving error

Re: [RFC 1/4] lockdep: additional lock specific information when dumping locks

2015-01-12 Thread Sasha Levin
On 01/12/2015 11:23 AM, Peter Zijlstra wrote: >>> > > Alternatively, make better/more use of lock_acquired() and track the >>> > > acquire vs acquired information in the held_lock (1 bit) and look at it >>> > > when printing. >> > >> > We could do that, but then we'd lose the ability to get

Re: [PATCH v3 00/13] mtd: st_spi_fsm: Align with ST's internal development

2015-01-12 Thread Brian Norris
On Mon, Dec 15, 2014 at 11:59:07AM +, Lee Jones wrote: > Hi Brian, all, > > [x] Bulid test > [x] Bisectable > [x] Smatch > [x] Sparse Picked patches 1, 2, and 5 to l2-mtd.git. I requested changes to patch 3 and possibly 4. The rest look OK, but I don't want to futz with patch conflicts

[PATCH] next: drm/atomic: Use copy_from_user to copy 64 bit data from user space

2015-01-12 Thread Guenter Roeck
Copying 64 bit data from user space using get_user is not supported on all architectures, and may result in the following build error. ERROR: "__get_user_bad" [drivers/gpu/drm/drm.ko] undefined! Avoid the problem by using copy_from_user. Fixes: d34f20d6e2f2 ("drm: Atomic modeset ioctl") Cc: Rob

fs: locks: WARNING: CPU: 16 PID: 4296 at fs/locks.c:236 locks_free_lock_context+0x10d/0x240()

2015-01-12 Thread Sasha Levin
: 4296 Comm: trinity-c273 Not tainted 3.19.0-rc4-next-20150112-sasha-00053-g23c147e02e-dirty #1710 [ 887.082229] 8804c9f4f8e8 [ 887.083773] 9154e0a6 8804cad98000 8804c9f4f938 [ 887.085280] 8140a4d0

Re: [PATCH v3 08/13] mtd: st_spi_fsm: Update the JEDEC probe to handle extended READIDs

2015-01-12 Thread Brian Norris
On Mon, Dec 15, 2014 at 11:59:15AM +, Lee Jones wrote: > The previous code was based on 3-byte JEDEC IDs, with a possible 2-byte > extension. However, devices are now emerging that return 6 or more bytes of > READID data and the additional bytes are required to differentiate between >

[PATCH] fs: namespace: Simplify function commit_tree()

2015-01-12 Thread Jiang Liu
Simplify function commit_tree() in fs/namespace.c, it also improves code readability. Signed-off-by: Jiang Liu --- fs/namespace.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index cd1e9681a0cf..c2b6f6f676ec 100644 ---

Re: [PATCH] x86, build: replace Perl script with Shell script

2015-01-12 Thread Rob Landley
On 01/12/2015 08:17 PM, Kees Cook wrote: > Commit e6023367d779 ("x86, kaslr: Prevent .bss from overlaping initrd") > added Perl to the required build environment. This reimplements in shell > the Perl script used to find the size of the kernel with bss and brk added. > > Reported-by: Rob Landley

Re: [PATCH v3 03/13] mtd: st_spi_fsm: dt-bindings: Deprecate generic compatible string

2015-01-12 Thread Brian Norris
+ devicetree Please include devicet...@vger.kernel.org whenever you send DT patches like this. On Mon, Dec 15, 2014 at 11:59:10AM +, Lee Jones wrote: > This driver now obtains platform information via DT matching, which requires > a compatible string per platform. This change introduces the

Re: [PATCH v3 04/13] mtd: st_spi_fsm: Fetch boot device locations from DT match tables

2015-01-12 Thread Brian Norris
+ devicetree On Mon, Dec 15, 2014 at 11:59:11AM +, Lee Jones wrote: > To trim down on the amount of properties used by this driver and to conform > to the newly agreed method of acquiring syscfg registers/offsets, we now > obtain this information using match tables. > > In the process we are

Re: [PATCH v2 1/5] perf tools: [uclibc] fix statfs.f_type data type mismatch build error

2015-01-12 Thread Vineet Gupta
On Tuesday 13 January 2015 07:18 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Jan 12, 2015 at 12:05:22PM +0100, Jiri Olsa escreveu: > On Sat, Jan 10, 2015 at 04:40:50PM +0530, Vineet Gupta wrote: > > From: Alexey Brodkin > > > > ARC Linux uses the no legacy

Re: [PATCH v3 3/3] media: au0828 remove video and vbi buffer timeout work-around

2015-01-12 Thread Devin Heitmueller
Hi Shuah, On Mon, Jan 12, 2015 at 9:56 PM, Shuah Khan wrote: > au0828 does video and vbi buffer timeout handling to prevent > applications such as tvtime from hanging by ensuring that the > video frames continue to be delivered even when the ITU-656 > input isn't receiving any data. This

Re: [PATCH] jffs2: compr_rubin: Remove unused function

2015-01-12 Thread Brian Norris
On Sun, Jan 11, 2015 at 05:36:48PM +0100, Rickard Strandqvist wrote: > Remove the function pulledbits() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Pushed to l2-mtd.git. Thanks.

[PATCH] mtd: denali: remove unnecessary stubs

2015-01-12 Thread Masahiro Yamada
This driver uses NAND_ECC_HW_SYNDROME mode. The nand_scan_tail() function would not complain about missing ecc->calculate, ecc->correct, ecc->hwctl handlers. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 38 -- 1 file changed, 38

Re: [PATCH net] ipv6: Prevent ipv6_find_hdr() from returning ENOENT for valid non-first fragments

2015-01-12 Thread Rahul Sharma
Hi On Mon, Jan 12, 2015 at 5:21 PM, Pablo Neira Ayuso wrote: > On Mon, Jan 12, 2015 at 04:38:16PM +0530, Rahul Sharma wrote: >> Hi Pablo, Hannes >> >> On Fri, Jan 9, 2015 at 9:20 PM, Hannes Frederic Sowa >> wrote: >> > On Fr, 2015-01-09 at 12:45 +0100, Pablo Neira Ayuso wrote: >> >> Hi Hannes,

linux-next: manual merge of the usb-gadget tree with the usb.current tree

2015-01-12 Thread Stephen Rothwell
Hi Felipe, Today's linux-next merge of the usb-gadget tree got a conflict in drivers/usb/gadget/udc/bdc/bdc_ep.c between commit f26d29e34e20 ("usb: gadget: udc: avoid dereference before NULL check in ep_queue") from the usb.current tree and commit d71b0d7764a7 ("usb: gadget: udc: remove bogus

Re: [PATCH v3 11/13] mtd: st_spi_fsm: General tidy-up

2015-01-12 Thread Brian Norris
On Mon, Dec 15, 2014 at 11:59:18AM +, Lee Jones wrote: > Due to the nature of the port (lots of copy/paste) much of the white-space > is taken up by spaces instead of tab separators. This patch aims to change > that. > > Signed-off-by: Lee Jones checkpatch.pl gives several warnings like

Re: [PATCH v5 3/3] dma: imx-sdma: reorg code to make code clean

2015-01-12 Thread Robin Gong
On Fri, Dec 05, 2014 at 10:11:44PM +0530, Vinod Koul wrote: > On Thu, Oct 23, 2014 at 10:22:20AM +0800, Robin Gong wrote: > > Code reorg for transfer prepare and bus width check to make code > > cleaner. > This should have been 1st patch :( > > -- > ~Vinod > Got it.Thanks. -- To unsubscribe from

linux-next: manual merge of the usb-gadget tree with the usb.current tree

2015-01-12 Thread Stephen Rothwell
Hi Felipe, Today's linux-next merge of the usb-gadget tree got a conflict in drivers/usb/dwc2/gadget.c between commit 62f4f0651ce8 ("usb: dwc2: gadget: kill requests with 'force' in s3c_hsotg_udc_stop()") from the usb.current tree and commit 6b448af46e2a ("drivers: usb: dwc2: remove 'force'

Re: [PATCH v5 1/3] dma: imx-sdma: add support for sdma memory copy

2015-01-12 Thread Robin Gong
On Fri, Dec 05, 2014 at 10:09:18PM +0530, Vinod Koul wrote: > On Thu, Oct 23, 2014 at 10:22:18AM +0800, Robin Gong wrote: > > > -static struct dma_async_tx_descriptor *sdma_prep_slave_sg( > > - struct dma_chan *chan, struct scatterlist *sgl, > > - unsigned int sg_len, enum

Re: Linux 3.19-rc3

2015-01-12 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/09/2015 09:51 PM, David Lang wrote: > On Fri, 9 Jan 2015, Linus Torvalds wrote: > >> Big pages are a bad bad bad idea. They work fine for databases, >> and that's pretty much just about it. I'm sure there are some >> other loads, but they are

Re: [PATCH mtd] mtd:devices: Add Altera EPCQ Driver

2015-01-12 Thread Brian Norris
On Thu, Dec 18, 2014 at 12:23:16AM -0800, vn...@altera.com wrote: > From: Viet Nga Dao > > Altera EPCQ Controller is a soft IP which enables access to Altera EPCQ and > EPCS flash chips. This patch adds driver for these devices. > > Signed-off-by: Viet Nga Dao This drivers seems awfully

Re: [PATCH RESEND 1/1] X86: Mark the Hyper-V clocksource as being continuous

2015-01-12 Thread Jason Wang
On Tue, Jan 13, 2015 at 8:26 AM, K. Y. Srinivasan wrote: The Hyper-V clocksource is continuous; mark it accordingly. Signed-off-by: K. Y. Srinivasan Cc: stable --- arch/x86/kernel/cpu/mshyperv.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Acked-by: Jason Wang diff

Re: [LKP] [params] RIP: 0010:[] [] sysfs_add_file_mode_ns+0x64/0x1f0

2015-01-12 Thread Rusty Russell
Huang Ying writes: > FYI, we noticed the below changes on > > commit 18eb74fa94161380c1acc9cf562cb835c4e54a25 ("params: cleanup sysfs > allocation") Thanks! This is caused by CONFIG_DEBUG_LOCK_ALLOC, which adds fields to 'struct attribute'. In particular ignore_lockdep is never initialized.

Re: New maintainer for dwc2

2015-01-12 Thread Felipe Balbi
On Tue, Jan 13, 2015 at 01:17:48AM +, Paul Zimmerman wrote: > > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > Sent: Monday, January 12, 2015 5:02 PM > > > > On Mon, Jan 12, 2015 at 11:14:54PM +, Paul Zimmerman wrote: > > > Hi everyone, > > > > > > I will be

[PATCH] perf: fix dwarf unwind using libunwind.

2015-01-12 Thread Wang Nan
Original perf tool fails to unwind user stack if the event is issued in a shared object: $ perf record -e syscalls:sys_enter_write -g --call-graph=dwarf babeltrace $ perf report --stdio # To display the perf.data header info, please use --header/--header-only options. # # Samples:

[PATCH v3 3/3] media: au0828 remove video and vbi buffer timeout work-around

2015-01-12 Thread Shuah Khan
au0828 does video and vbi buffer timeout handling to prevent applications such as tvtime from hanging by ensuring that the video frames continue to be delivered even when the ITU-656 input isn't receiving any data. This work-around is complex as it introduces set and clear timer code paths in

[PATCH v3 2/3] media: au0828 - convert to use videobuf2

2015-01-12 Thread Shuah Khan
Convert au0828 to use videobuf2. Tested with NTSC. Tested video and vbi devices with xawtv, tvtime, and vlc. Ran v4l2-compliance to ensure there are no regressions. video now has no failures and vbi has 3 fewer failures. video before: test VIDIOC_G_FMT: FAIL 3 failures Total: 72, Succeeded: 69,

[PATCH v3 0/3] au0828 vb2 conversion

2015-01-12 Thread Shuah Khan
This patch series includes patch v3 of the au0828 vb2 conversion, removing video and vbi buffer timeout handling, and a patch to fix compile error from au0828_boards initialization which uses a a define from videobuf-core.h which is no longer included with the vb2 conversion change. The following

[PATCH v3 1/3] media: fix au0828 compile error from au0828_boards initialization

2015-01-12 Thread Shuah Khan
au0828 picked up UNSET from videobuf-core.h and fails to compile if videobuf-core.h isn't included. Change it to use -1U instead to fix the problem. drivers/media/usb/au0828/au0828-cards.c:47:17: error: ‘UNSET’ undeclared here (not in a function) .tuner_type = UNSET, Signed-off-by:

Re: [PATCH] i40e: don't enable and init FCOE by default when do PF reset

2015-01-12 Thread Ethan Zhao
Vasu, On Sat, Jan 10, 2015 at 2:18 AM, Dev, Vasu wrote: >> -Original Message- >> From: Ronciak, John >> Sent: Friday, January 09, 2015 8:42 AM >> To: Ethan Zhao; Kirsher, Jeffrey T; Brandeburg, Jesse; Allan, Bruce W; >> Wyborny, Carolyn; Skidmore, Donald C; Rose, Gregory V; Vick,

Re: [3.19-rc3] tg3: BUG: sleeping function called from invalid context

2015-01-12 Thread Prashant Sreedharan
On Mon, 2015-01-12 at 19:59 -0500, Peter Hurley wrote: > On 3.19-rc3, I'm seeing this might_sleep() warning [1] from the tg3_open() > call stack. Let me know if I need to bisect this. > > Regards, > Peter Hurley > > [1] > > [ 17.203009] BUG: sleeping function called from invalid context at >

Re: [PATCH v7 0/7] sched: support dl task migration during cpu hotplug and other fixes

2015-01-12 Thread Wanpeng Li
Cc Juri's gmail On Mon, Jan 12, 2015 at 10:04:52AM +0800, Wanpeng Li wrote: >Ping, >On Tue, Jan 06, 2015 at 07:20:11AM +0800, Wanpeng Li wrote: >>Ping Juri, Peter, 1/7~6/7 can be reviewed/applied separately since patch 7/7 >>is still need more work. >>On Sun, Jan 04, 2015 at 10:31:47AM +0800,

Re: [PATCH v4 1/2] watchdog: Add driver for Mediatek watchdog

2015-01-12 Thread Joe Perches
On Mon, 2015-01-12 at 16:34 +0100, Matthias Brugger wrote: > This patch adds a driver for the Mediatek SoC integrated > watchdog. This driver supports watchdog and software reset > for mt65xx and mt81xx SoCs. trivia: > diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c [] >

Re: [PATCH V2] mm/thp: Allocate transparent hugepages on local node

2015-01-12 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > Vlastimil Babka writes: > >> On 12/01/2014 03:06 PM, Aneesh Kumar K.V wrote: >>> "Kirill A. Shutemov" writes: >>> On Mon, Dec 01, 2014 at 11:16:43AM +0530, Aneesh Kumar K.V wrote: > This make sure that we try to allocate hugepages from local node if >

RE: [Devel] [PATCH 3/3] ACPICA: Remove use of __DATE__ macro

2015-01-12 Thread Zheng, Lv
Hi, I've added this patch into the 201501 ACPICA materials for review: https://github.com/acpica/acpica/pull/61 If it is merged, it will appear in Linux kernel after 201501 ACPICA release. Thanks for reporting. Best regards -Lv > From: David E. Box [mailto:david.e@linux.intel.com] > Sent:

RE: [PATCH] acpi: acpica: utstate: Remove unused function

2015-01-12 Thread Zheng, Lv
Hi, I've added this patch into the 201501 ACPICA materials for review: https://github.com/acpica/acpica/pull/61 If it is merged, it will appear in Linux kernel after 201501 ACPICA release. Thanks for reporting. Best regards -Lv > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent:

Re: [PATCH v4 0/2] ARM: mediatek: Add watchdog driver

2015-01-12 Thread Eddie Huang
Hi Matthias, On Mon, 2015-01-12 at 16:34 +0100, Matthias Brugger wrote: > Mediatek SoCs have a watchdog driver. This patch set adds driver and DTS > binding. The driver also implements a restart handler to reboot the SoC. > > Changes for v4: > - fix indentation errors > - delete unused include >

Re: [PATCH 0/3] mm: cma: /proc/cmainfo

2015-01-12 Thread Minchan Kim
Hello, Steven, On Fri, Jan 09, 2015 at 09:19:04AM -0500, Steven Rostedt wrote: > > Wow, too much work over the holidays ;-) Pretend to be diligent. > > > On Tue, 30 Dec 2014 13:47:26 +0900 > Minchan Kim wrote: > > > > Then, I don't think we could keep all of allocations. What we need > >

Re: [Xen-devel] [PATCH v2] [Bugfix] x86/apic: Fix xen IRQ allocation failure caused by commit b81975eade8c

2015-01-12 Thread Jiang Liu
On 2015/1/12 23:01, David Vrabel wrote: > On 12/01/15 13:39, Jiang Liu wrote: >> Commit b81975eade8c ("x86, irq: Clean up irqdomain transition code") >> breaks xen IRQ allocation because xen_smp_prepare_cpus() doesn't invoke >> setup_IO_APIC(), so no irqdomains created for IOAPICs and >>

[PATCH] x86, build: replace Perl script with Shell script

2015-01-12 Thread Kees Cook
Commit e6023367d779 ("x86, kaslr: Prevent .bss from overlaping initrd") added Perl to the required build environment. This reimplements in shell the Perl script used to find the size of the kernel with bss and brk added. Reported-by: Rob Landley Signed-off-by: Kees Cook Cc:

[PATCH] locks: fix NULL-deref in generic_delete_lease

2015-01-12 Thread NeilBrown
commit 0efaa7e82f02fe69c05ad28e905f31fc86e6f08e locks: generic_delete_lease doesn't need a file_lock at all moves the call to fl->fl_lmops->lm_change() to a place in the code where fl might be a non-lease lock. When that happens, fl_lmops is NULL and an Oops ensures. So add an extra test to

Re: [PATCH v3 0/5] usb: atmel_usba_udc: Rework errata handling

2015-01-12 Thread Bo Shen
Hi Boris, On 01/12/2015 06:57 PM, Boris Brezillon wrote: Hello, Here is a set of patches porting existing at91sam9rl erratum handling to DT and adding new code to handle at91sam9g45/9x5 erratum. It also adds several compatible strings to differentiate those errata. These patches should be

Re: [PATCH v2 05/17] locks: generic_delete_lease doesn't need a file_lock at all

2015-01-12 Thread NeilBrown
On Mon, 12 Jan 2015 18:25:00 -0500 Jeff Layton wrote: > On Tue, 13 Jan 2015 12:03:43 +1300 > NeilBrown wrote: > > > On Thu, 4 Sep 2014 08:38:31 -0400 Jeff Layton > > wrote: > > > > > Ensure that it's OK to pass in a NULL file_lock double pointer on > > > a F_UNLCK request and convert the

  1   2   3   4   5   6   7   8   9   10   >