[PATCH v2] x86,setup: Rename myisspace to isspace and move it to ctype.h

2015-01-02 Thread Alexander Kuleshov
Signed-off-by: Alexander Kuleshov --- arch/x86/boot/cmdline.c | 19 +++ arch/x86/boot/ctype.h | 5 + 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/x86/boot/cmdline.c b/arch/x86/boot/cmdline.c index 625d21b..bc1e25f 100644 ---

[PATCH] x86,setup: Rename myisspace to isspace and move it to ctype.h

2015-01-02 Thread Alexander Kuleshov
isspace is a subset of ctype.h functionality, so move it to ctype.h Signed-off-by: Alexander Kuleshov --- arch/x86/boot/cmdline.c | 19 +++ arch/x86/boot/ctype.h | 9 +++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/x86/boot/cmdline.c

[PATCH] x86, setup: Rename BOOT_ISDIGIT_H -> BOOT_CTYPE_H

2015-01-02 Thread Alexander Kuleshov
arch/x86/boot/isdigit.h was renamed to arch/x86/boot/ctype.h at 6238b47b58480cd9c092600c05338dbe261b71ce. Signed-off-by: Alexander Kuleshov --- arch/x86/boot/ctype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/ctype.h b/arch/x86/boot/ctype.h index

Re: [PATCH V2 0/2] ARM: l2c: OMAP4/AM437x: Additional register programming support.

2015-01-02 Thread Tomasz Figa
Hi Tony, 2015-01-03 9:23 GMT+09:00 Tony Lindgren : > * Nishanth Menon [150102 11:50]: >> On 01/02/2015 12:46 PM, santosh.shilim...@oracle.com wrote: >> > On 1/2/15 9:43 AM, Nishanth Menon wrote: >> >> Hi, >> >> OMAP4 and AM437x ROM code provides services to program PL310's latency >> >>

Re: [PATCH V2 2/2] ARM: l2c: AM437x: Introduce support for cache filter programming

2015-01-02 Thread Tomasz Figa
Hi Nishanth, 2015-01-03 2:43 GMT+09:00 Nishanth Menon : > AM437x generation of processors support programming the PL310 L2Cache > controller's address filter start and end registers using a secure > montior service. typo: s/montior/monitor/ [snip] > + base =

Re: [PATCH] net: wireless: rtlwifi: btcoexist: halbtc8821a2ant: Remove some unused functions

2015-01-02 Thread Larry Finger
On 01/02/2015 02:26 PM, Rickard Strandqvist wrote: Removes some functions that are not used anywhere: ex_halbtc8821a2ant_periodical() ex_halbtc8821a2ant_halt_notify() ex_halbtc8821a2ant_bt_info_notify() ex_halbtc8821a2ant_special_packet_notify() ex_halbtc8821a2ant_connect_notify()

RE: [PATCH v2] tools: hv: kvp_daemon: make IPv6-only-injection work

2015-01-02 Thread Dexuan Cui
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, January 2, 2015 22:51 PM > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

Re: [PATCH 1/2] time: settimeofday: Validate the values of tv from user

2015-01-02 Thread Andy Lutomirski
On 01/02/2015 11:51 AM, John Stultz wrote: > From: Sasha Levin > > An unvalidated user input is multiplied by a constant, which can result in > an undefined behaviour for large values. While this is validated later, > we should avoid triggering undefined behaviour. > > Cc: Thomas Gleixner >

Re: [PATCH] s390: include: timex: Use macro CLOCK_STORE_SIZE instead of hard code number

2015-01-02 Thread Chen Gang
Thank you for your work. In honest, originally, I was not sure whether it would cause bug (do not know gcc would generic incorrect code for it). :-) Thanks. On 01/02/2015 05:46 PM, Heiko Carstens wrote: > On Thu, Jan 01, 2015 at 10:27:32PM +0800, Chen Gang wrote: >> For C language, it treats

linux-next: Tree for Jan 3

2015-01-02 Thread Stephen Rothwell
Hi all, Changes since 20141231: The net-next tree gained build failures for which I applied patches. Non-merge commits (relative to Linus' tree): 937 1035 files changed, 28764 insertions(+), 16076 deletions(-) I

Re: linux-next: build failure after merge of the net-next tree

2015-01-02 Thread Stephen Rothwell
Hi all, On Sat, 3 Jan 2015 09:11:01 +1100 Stephen Rothwell wrote: > > After merging the net-next tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function > 'mlx4_en_init_timestamp': >

[PATCH 4/4] perf diff: Fix to sort by baseline field by default

2015-01-02 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim The currently perf diff didn't add the baseline and delta (or other compute) fields to the sort list so output will be sorted by other fields like alphabetical order of DSO or symbol as below example. Fix it by adding hpp formats for the fields and provides default compare

[PATCH 1/4] perf probe: Fix to fall back to find probe point in symbols

2015-01-02 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix to fall back to find a probe point in symbols if perf fails to find it in debuginfo. This can happen when the target function is an alias of another function. Such alias doesn't have an entry in debuginfo but in symbols. David Ahern reported this problem in

[PATCH 2/4] perf probe: Fix crash in dwarf_getcfi_elf

2015-01-02 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim David reported that perf can segfault when adding an uprobe event like this: $ perf probe -x /lib64/libc-2.14.90.so -a 'malloc size=%di' (gdb) bt #0 parse_eh_frame_hdr (hdr=0x0, hdr_size=2596, hdr_vaddr=71788, ehdr=0x7fffd390, eh_frame_vaddr=

[PATCH 3/4] perf list: Fix --raw-dump option

2015-01-02 Thread Arnaldo Carvalho de Melo
From: Taesoo Kim Currently, 'perf list --raw-dump' requires extra arguments (e.g., hw) to invoke, which breaks bash/zsh completion (perf-completion.sh). $ perf list --raw-dump Error: unknown option `raw-dump' usage: perf list [hw|sw|cache|tracepoint|pmu|event_glob] After, $ perf

[GIT PULL 0/4] perf/urgent fixes

2015-01-02 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 5b5e76218fbdbb71a01d5480f289ead624232876: Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent (2015-01-01 22:24:36 +0100) are available in the

Re: [PATCH v7] edac: synps: Added EDAC support for zynq ddr ecc controller

2015-01-02 Thread punnaiah choudary kalluri
On Fri, Jan 2, 2015 at 4:20 PM, Borislav Petkov wrote: > On Fri, Jan 02, 2015 at 09:52:20AM +0530, Punnaiah Choudary Kalluri wrote: >> +/** >> + * synps_edac_handle_error - Handle controller error types CE and UE >> + * @mci: Pointer to the edac memory controller instance >> + * @p:

Re: [PATCH 6/7] perf tools: Append callchains only when requested

2015-01-02 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 22, 2014 at 01:44:14PM +0900, Namhyung Kim escreveu: > The perf report --children can be called with callchain disabled so no > need to append callchains. Actually the root of callchain tree is not > initialized properly in this case. Hi Namhyung, I should have caught this

RE: [HPDD-discuss] [PATCH] staging: lustre: lustre: include: lustre_update.h: Fix for possible null pointer dereference

2015-01-02 Thread Patrick Farrell
Ashley, I sort of understand your larger point, but in this case, I think the purpose of the assert is much better served by the move Rickard is suggesting. Otherwise only one of its conditions will ever trigger. It's not that different to die on the assertion or from a null dereference, but

[PATCH] ethtool: Extend ethtool plugin module eeprom API to phylib

2015-01-02 Thread Ed Swierk
This patch extends the ethtool plugin module eeprom API to support cards whose phy support is delegated to a separate driver. The handlers for ETHTOOL_GMODULEINFO and ETHTOOL_GMODULEEEPROM call the module_info and module_eeprom functions if the phy driver provides them; otherwise the handlers

Re: [PATCH 2/3] usb: dwc3: add Fujitsu Specific Glue layer

2015-01-02 Thread Felipe Balbi
Hi, On Tue, Dec 30, 2014 at 11:12:51AM +0100, Arnd Bergmann wrote: > On Monday 29 December 2014 01:52:04 Sneeker Yeh wrote: > > > > +static int dwc3_mb86s70_remove_child(struct device *dev, void *unused) > > > > +{ > > > > + struct platform_device *pdev = to_platform_device(dev); > > > > + >

Re: [PATCH akpm/next] lib: crc32: conditionally constify crc32 lookup table

2015-01-02 Thread Andrew Morton
On Sat, 03 Jan 2015 01:12:43 +0100 Daniel Borkmann wrote: > > Seems a lot of fuss. Why are these tables cacheline aligned anyway? > > To avoid one cache miss (most of the time, presumably) in a 16k table. > > Pretty marginal benefit, I suspect. > > I guess, it actually came in with the

Re: [PATCH 2/3] video / backlight: remove the backlight_device_registered API

2015-01-02 Thread Jingoo Han
On Wednesday, December 31, 2014 12:50 PM, Aaron Lu wrote: > > Since we will need the backlight_device_get_by_type API, we can use it > instead of the backlight_device_registered API whenever necessary so > remove the backlight_device_registered API. > > Signed-off-by: Aaron Lu Acked-by: Jingoo

Re: [PATCH 1/3] video / backlight: add two APIs for drivers to use

2015-01-02 Thread Jingoo Han
On Wednesday, December 31, 2014 12:50 PM, Aaron Lu wrote: > > It is useful to get the backlight device's pointer and use it to set > backlight in some cases(the following patch will make use of it) so add > the two APIs and export them. > > Signed-off-by: Aaron Lu Acked-by: Jingoo Han Best

Re: [PATCH] GMAC: fix simple_return.cocci warnings

2015-01-02 Thread Joe Perches
On Sat, 2015-01-03 at 08:25 +0800, kbuild test robot wrote: > drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:425:1-4: WARNING: end returns > can be simpified > > Simplify a trivial if-return sequence. Possibly combine with a > preceding function call. > Generated by:

[PATCH v2] arch: arm: mach-omap2: voltage: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: omap_change_voltscale_method() voltdm_add_pwrdm() voltdm_for_each() voltdm_for_each_pwrdm() And remove define VOLTSCALE_VPFORCEUPDATE and VOLTSCALE_VCBYPASS This was partially found by using a static code analysis program called cppcheck.

Re: frequent lockups in 3.18rc4

2015-01-02 Thread John Stultz
On Fri, Dec 26, 2014 at 12:57 PM, Linus Torvalds wrote: > On Fri, Dec 26, 2014 at 10:12 AM, Dave Jones wrote: >> On Fri, Dec 26, 2014 at 11:34:10AM -0500, Dave Jones wrote: >> >> > One thing I think I'll try is to try and narrow down which >> > syscalls are triggering those "Clocksource hpet

Re: [PATCH V2 0/2] ARM: l2c: OMAP4/AM437x: Additional register programming support.

2015-01-02 Thread Tony Lindgren
* Nishanth Menon [150102 11:50]: > On 01/02/2015 12:46 PM, santosh.shilim...@oracle.com wrote: > > On 1/2/15 9:43 AM, Nishanth Menon wrote: > >> Hi, > >> OMAP4 and AM437x ROM code provides services to program PL310's latency > >> registers and AM437x provides service for programming Address

[PATCH] GMAC: fix simple_return.cocci warnings

2015-01-02 Thread kbuild test robot
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:425:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Roger Chen Signed-off-by: Fengguang Wu ---

Re: [PATCH akpm/next] lib: crc32: conditionally constify crc32 lookup table

2015-01-02 Thread Daniel Borkmann
On 01/03/2015 12:35 AM, Andrew Morton wrote: On Wed, 31 Dec 2014 20:03:28 +0100 Daniel Borkmann wrote: Commit 8f243af42ade ("sections: fix const sections for crc32 table") The 8f243af42ade changelog is rather poor :(. With the help of this changelog I can now see what 8f243af42ade was

Re: [PATCH akpm/next] lib: crc32: conditionally constify crc32 lookup table

2015-01-02 Thread Andrew Morton
On Wed, 31 Dec 2014 20:03:28 +0100 Daniel Borkmann wrote: > Commit 8f243af42ade ("sections: fix const sections for crc32 table") The 8f243af42ade changelog is rather poor :(. With the help of this changelog I can now see what 8f243af42ade was doing. I must have been asleep at the time. >

Re: linux-next: build failure after merge of the net-next tree

2015-01-02 Thread Stephen Rothwell
Hi Sedat, On Fri, 2 Jan 2015 23:21:05 +0100 Sedat Dilek wrote: > > On Fri, Jan 2, 2015 at 11:11 PM, Stephen Rothwell > wrote: > > > > After merging the net-next tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > drivers/net/ethernet/mellanox/mlx4/en_clock.c:

[PATCH] media: i2c: adv7604: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: test_read() edid_read_block() dpp_write() dpp_read() esdp_write() esdp_read() cec_write_clr_set() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist ---

[PATCH] time: Add debugging checks to warn if we see delays

2015-01-02 Thread John Stultz
Recently there's been some request for better sanity checking in the time code, so that its more clear when something is going wrong since timekeeping issues could manifest in a large number of strange ways with various subsystems. Thus, this patch adds some extra infrastructure to save the

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Pavel Machek
On Sat 2015-01-03 00:00:22, Richard Weinberger wrote: > Am 02.01.2015 um 23:54 schrieb Pavel Machek: > > On Fri 2015-01-02 23:49:52, Jiri Kosina wrote: > >> On Fri, 2 Jan 2015, Pavel Machek wrote: > >> > You also want to protect against binaries that are evil on purpose, > right? > >>> >

Re: [PATCH 1/2] Staging: comedi: tab space coding style issue in pcl818.c

2015-01-02 Thread Joe Perches
On Sat, 2015-01-03 at 00:04 +0530, jitendra kumar khasdev wrote: > This is patch to the pcl818.c that fix up a use tab error > found by the checkpatch.pl tool [] > diff --git a/drivers/staging/comedi/drivers/pcl818.c > b/drivers/staging/comedi/drivers/pcl818.c [] > @@ -45,7 +45,7 @@ A word or two

Re: [PATCH 2/2] adjtimex.2: Change 'PPM' (parts per million) to 'ppm'

2015-01-02 Thread Laurent Georget
Hi again, this is the second patch of the new series of patchs for adjtimex.2. This is a trivia patch correcting "PPM" (parts per million) to the more usual "ppm". Credits to Jeff Epler . --- man2/adjtimex.2 | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git

[PATCH 1/2] adjtimex.2: Clarify the 'ppm scaling' used in struct timex

2015-01-02 Thread Laurent Georget
Hi, this is the last version of a new series of patchs for adjtimex.2. Please ignore all previous versions of this series. This patch makes explicit and clarifies the unit used for fields "freq", "ppsfreq" and "stabil" in struct timex. It closes a FIXME in the man page. Reviewed-By: Jeff Epler

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Richard Weinberger
Am 02.01.2015 um 23:54 schrieb Pavel Machek: > On Fri 2015-01-02 23:49:52, Jiri Kosina wrote: >> On Fri, 2 Jan 2015, Pavel Machek wrote: >> You also want to protect against binaries that are evil on purpose, right? >>> >>> Umm. No. Not by default. We don't want to break crashme or

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Pavel Machek
On Fri 2015-01-02 23:49:52, Jiri Kosina wrote: > On Fri, 2 Jan 2015, Pavel Machek wrote: > > > > You also want to protect against binaries that are evil on purpose, > > > right? > > > > Umm. No. Not by default. We don't want to break crashme or trinity by > > default. > > I thought trinity is

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Jiri Kosina
On Fri, 2 Jan 2015, Jiri Kosina wrote: > > > You also want to protect against binaries that are evil on purpose, > > > right? > > > > Umm. No. Not by default. We don't want to break crashme or trinity by > > default. > > I thought trinity is issuing syscalls directly (would make more sense than

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Jiri Kosina
On Fri, 2 Jan 2015, Pavel Machek wrote: > > You also want to protect against binaries that are evil on purpose, > > right? > > Umm. No. Not by default. We don't want to break crashme or trinity by > default. I thought trinity is issuing syscalls directly (would make more sense than going

Re: [PATCH] adjtimex: PPM scaling is by 2^-16

2015-01-02 Thread Laurent Georget
Le 02/01/2015 22:15, Jeff Epler a écrit : > However, the patch got line-wrapped again (I fixed it manually above). > With line-wrapped fix, consider it > > Reviewed-by: Jeff Epler Sorry, I'm giving up on 'normal' email clients to send patchs. 'git format-patch' and 'mutt' will do. > > hm, as

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Pavel Machek
On Fri 2015-01-02 23:32:35, Jiri Kosina wrote: > On Fri, 2 Jan 2015, Pavel Machek wrote: > > > > > Can the slowdown be impelmented in glibc, then? > > > > > > glibc has a lot of asserts where it can detect stack smashing and kills > > > the > > > current process using abort(). Here it could of

Re: [PATCH v2 1/2] of/pci: add of_pci_dma_configure() update dma configuration

2015-01-02 Thread Murali Karicheri
On 01/02/2015 03:45 PM, Rob Herring wrote: On Fri, Jan 2, 2015 at 11:20 AM, Murali Karicheri wrote: Rob, See my response below. Arnd and Will, please review this as well. On 12/26/2014 02:33 PM, Rob Herring wrote: On Wed, Dec 24, 2014 at 4:11 PM, Murali Karicheri wrote: Add

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Jiri Kosina
On Fri, 2 Jan 2015, Pavel Machek wrote: > > > Can the slowdown be impelmented in glibc, then? > > > > glibc has a lot of asserts where it can detect stack smashing and kills the > > current process using abort(). Here it could of course also call > > sleep(). > > Please do it in glibc, then.

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Pavel Machek
On Fri 2015-01-02 22:40:14, Richard Weinberger wrote: > Am 02.01.2015 um 20:46 schrieb Pavel Machek: > >>> Does this break trinity, crashme, and similar programs? > >> > >> If they fork() without execve() and a child dies very fast the next fork() > >> will be throttled. > >> This is why I'd like

Re: linux-next: build failure after merge of the net-next tree

2015-01-02 Thread Sedat Dilek
On Fri, Jan 2, 2015 at 11:11 PM, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function > 'mlx4_en_init_timestamp': >

Re: How to fix CHECK warning: testing a 'safe expression'

2015-01-02 Thread Josh Triplett
+linux-sparse On Fri, Jan 02, 2015 at 09:51:25AM -0500, Murali Karicheri wrote: > On 12/16/2014 01:23 PM, Murali Karicheri wrote: > >netdev maintainers, > > > >I got a comment to address CHECK warning and wondering how to address > >'warning: testing a 'safe expression' which appears when using >

linux-next: build failure after merge of the net-next tree

2015-01-02 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/net/ethernet/mellanox/mlx4/en_clock.c: In function 'mlx4_en_init_timestamp': drivers/net/ethernet/mellanox/mlx4/en_clock.c:249:2: error: implicit declaration of function

Re: [PATCH] fs: isofs: Fix bug in the way to check if the year is a leap year

2015-01-02 Thread Al Viro
On Fri, Jan 02, 2015 at 09:26:35PM +, Oscar Forner Martinez wrote: > I did not know that function. Neither did I ;-) What I'd done was ; git grep -n -w date.*seconds drivers/rtc/rtc-lib.c:117: * Convert Gregorian date to seconds since 01-01-1970 00:00:00. fs/fat/misc.c:192:/* Convert a

[PATCH 1/9] rhashtable: Do hashing inside of rhashtable_lookup_compare()

2015-01-02 Thread Thomas Graf
Hash the key inside of rhashtable_lookup_compare() like rhashtable_lookup() does. This allows to simplify the hashing functions and keep them private. Signed-off-by: Thomas Graf Cc: netfilter-de...@vger.kernel.org --- include/linux/rhashtable.h | 5 +-- lib/rhashtable.c | 91

[PATCH 5/9] nft_hash: Remove rhashtable_remove_pprev()

2015-01-02 Thread Thomas Graf
The removal function of nft_hash currently stores a reference to the previous element during lookup which is used to optimize removal later on. This was possible because a lock is held throughout calling rhashtable_lookup() and rhashtable_remove(). With the introdution of deferred table resizing

[PATCH 3/9] rhashtable: Convert bucket iterators to take table and index

2015-01-02 Thread Thomas Graf
This patch is in preparation to introduce per bucket spinlocks. It extends all iterator macros to take the bucket table and bucket index. It also introduces a new rht_dereference_bucket() to handle protected accesses to buckets. It introduces a barrier() to the RCU iterators to the prevent the

[PATCH 9/9] netlink: Lockless lookup with RCU grace period in socket release

2015-01-02 Thread Thomas Graf
Defers the release of the socket reference using call_rcu() to allow using an RCU read-side protected call to rhashtable_lookup() This restores behaviour and performance gains as previously introduced by e341694 ("netlink: Convert netlink_lookup() to use RCU protected hash table") without the

[PATCH 8/9] rhashtable: Supports for nulls marker

2015-01-02 Thread Thomas Graf
In order to allow for wider usage of rhashtable, use a special nulls marker to terminate each chain. The reason for not using the existing nulls_list is that the prev pointer usage would not be valid as entries can be linked in two different buckets at the same time. The 4 nulls base bits can be

[PATCH 7/9] rhashtable: Per bucket locks & deferred expansion/shrinking

2015-01-02 Thread Thomas Graf
Introduces an array of spinlocks to protect bucket mutations. The number of spinlocks per CPU is configurable and selected based on the hash of the bucket. This allows for parallel insertions and removals of entries which do not share a lock. The patch also defers expansion and shrinking to a

[PATCH 6/9] spinlock: Add spin_lock_bh_nested()

2015-01-02 Thread Thomas Graf
Signed-off-by: Thomas Graf --- include/linux/spinlock.h | 8 include/linux/spinlock_api_smp.h | 2 ++ include/linux/spinlock_api_up.h | 1 + kernel/locking/spinlock.c| 8 4 files changed, 19 insertions(+) diff --git a/include/linux/spinlock.h

[PATCH 4/9] rhashtable: Factor out bucket_tail() function

2015-01-02 Thread Thomas Graf
Subsequent patches will require access to the bucket tail. Access to the tail is relatively cheap as the automatic resizing of the table should keep the number of entries per bucket to no more than 0.75 on average. Signed-off-by: Thomas Graf --- lib/rhashtable.c | 23 ++- 1

[PATCH 2/9] rhashtable: Use rht_obj() instead of manual offset calculation

2015-01-02 Thread Thomas Graf
Signed-off-by: Thomas Graf --- lib/rhashtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 1ee0eb6..b658245 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c @@ -427,7 +427,7 @@ void *rhashtable_lookup(const struct

[PATCH 0/9 net-next v2] rhashtable: Per bucket locks & deferred table resizing

2015-01-02 Thread Thomas Graf
Prepares for and introduces per bucket spinlocks and deferred table resizing. This allows for parallel table mutations in different hash buckets from atomic context. The resizing occurs in the background in a separate worker thread while lookups, inserts, and removals can continue. Also modified

Re: [PATCH] net: ethernet: cisco: enic: enic_dev: Remove some unused functions

2015-01-02 Thread David Miller
From: Rickard Strandqvist Date: Fri, 2 Jan 2015 21:29:24 +0100 > Removes some functions that are not used anywhere: > enic_dev_enable2_done() enic_dev_enable2() enic_dev_deinit_done() > enic_dev_init_prov2() enic_vnic_dev_deinit() > > This was partially found by using a static code analysis

Re: [PATCH] isdn: hisax: hfc4s8s_l1: Remove some unused functions

2015-01-02 Thread David Miller
From: Rickard Strandqvist Date: Thu, 1 Jan 2015 20:17:22 +0100 > Removes some functions that are not used anywhere: > Read_hfc32() Write_hfc32() Write_hfc16() > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist

Re: [PATCH] [RFC] Deter exploit bruteforcing

2015-01-02 Thread Richard Weinberger
Am 02.01.2015 um 20:46 schrieb Pavel Machek: >>> Does this break trinity, crashme, and similar programs? >> >> If they fork() without execve() and a child dies very fast the next fork() >> will be throttled. >> This is why I'd like to make this feature disabled by default. >> >>> Can you detect it

Re: [PATCH] net: ethernet: chelsio: cxgb3: mc5.c: Remove some unused functions

2015-01-02 Thread David Miller
From: Rickard Strandqvist Date: Thu, 1 Jan 2015 17:49:55 +0100 > Removes some functions that are not used anywhere: > dbgi_rd_rsp3() dbgi_wr_addr3() > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. -- To

Re: [PATCH] net: fddi: skfp: smt.c: Remove unused function

2015-01-02 Thread David Miller
From: Rickard Strandqvist Date: Thu, 1 Jan 2015 18:01:26 +0100 > Remove the function smt_ifconfig() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. -- To unsubscribe from this

Re: [PATCH 1/3] TTY: add support for "tty slave" devices.

2015-01-02 Thread NeilBrown
On Sun, 28 Dec 2014 15:20:10 +0100 Pavel Machek wrote: > Hi! > > > index 8c4fd0332028..b59501ee2f21 100644 > > --- a/Documentation/devicetree/bindings/serial/of-serial.txt > > +++ b/Documentation/devicetree/bindings/serial/of-serial.txt > > @@ -39,6 +39,10 @@ Optional properties: > >driver

Re: [PATCH] net: ethernet: micrel: ksz884x.c: Remove some unused functions

2015-01-02 Thread David Miller
From: Rickard Strandqvist Date: Thu, 1 Jan 2015 18:00:23 +0100 > Removes some functions that are not used anywhere: > hw_w_phy_link_md() hw_r_phy_link_md() hw_w_phy_polarity() > hw_r_phy_polarity() hw_w_phy_crossover() hw_r_phy_crossover() > hw_r_phy_rem_cap() hw_w_phy_auto_neg()

Re: [PATCH] net: wireless: b43legacy: radio.c: Remove unused function

2015-01-02 Thread Rafał Miłecki
On 2 January 2015 at 18:46, Rickard Strandqvist wrote: > 2015-01-02 13:14 GMT+01:00 Sedat Dilek : >> >> On Fri, Jan 2, 2015 at 1:06 PM, Rafał Miłecki wrote: >> > On 2 January 2015 at 13:05, Rafał Miłecki wrote: >> >> On 1 January 2015 at 16:46, Rickard Strandqvist >> >> wrote: >> >>> Remove

Re: [PATCH] arch: arm: mach-omap2: voltage.c: Remove some unused functions

2015-01-02 Thread Arnd Bergmann
On Friday 02 January 2015 17:02:21 Rickard Strandqvist wrote: > 2015-01-02 10:46 GMT+01:00 Arnd Bergmann : > > On Thursday 01 January 2015 18:06:34 Rickard Strandqvist wrote: > > > > You have correctly spotted the only place that references > > voltdm_for_each_pwrdm > > and changed the comment,

Re: [PATCH] clk: rockchip: rk3288: Make s2r reliable by switching PLLs to slow mode

2015-01-02 Thread Heiko Stübner
Am Montag, 22. Dezember 2014, 11:31:48 schrieb Doug Anderson: > We've been seeing some crashes at resume time on rk3288-based systems. > On some machines they simply never wake up from suspend. Symptoms > include: > > - System clearly got to sleep OK. Power consumption is low, the PWM > for

Re: [PATCH] adjtimex: PPM scaling is by 2^-16

2015-01-02 Thread Jeff Epler
On Fri, Jan 02, 2015 at 05:39:17PM +0100, Laurent Georget wrote: > +long freq;/* Frequency offset, in units of 2^-16 PPM > + (parts per million) (see NOTES below) */ ... > +.SH NOTES > +In struct > +.IR timex , > +.IR freq , > +.IR ppsfreq , > +and > +.I stabil

Re: [PATCH v2 1/2] of/pci: add of_pci_dma_configure() update dma configuration

2015-01-02 Thread Murali Karicheri
On 01/02/2015 03:57 PM, Arnd Bergmann wrote: On Friday 02 January 2015 12:20:53 Murali Karicheri wrote: Initially I had the same idea to re-use the existing function of_dma_configure() for this. I wanted to defer this until we have an agreement on the changes required for the subject

Re: [PATCH] ARM: OMAP2+: hwmod: Fix _wait_target_ready() for hwmods without sysc

2015-01-02 Thread Paul Walmsley
+ Suman, lakml Hi Roger On Thu, 18 Dec 2014, Roger Quadros wrote: > Fixing up Paul's email id. > > cheers, > -roger > > On 18/12/14 17:49, Roger Quadros wrote: > > There are quite a few hwmods that don't have sysconfig register and so > > _find_mpu_rt_port(oh) will return NULL thus preventing

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2015-01-02 Thread Arnd Bergmann
On Friday 02 January 2015 12:18:06 Suravee Suthikulanit wrote: > On 1/2/2015 5:55 AM, Lorenzo Pieralisi wrote: > > Hi Suravee, > > > > On Mon, Dec 29, 2014 at 07:32:44PM +, Suravee Suthikulpanit wrote: > >> >Hi, > >> > > >> >I am not sure if this thread is still alive. I'm trying to see what I

[PATCH] arch: m68k: 68360: config: Remove unused function

2015-01-02 Thread Rickard Strandqvist
Remove the function BSP_set_clock_mmss() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/m68k/68360/config.c | 13 - 1 file changed, 13 deletions(-) diff --git

[PATCH] gpu: drm: armada: armada_drv: Remove unused function

2015-01-02 Thread Rickard Strandqvist
Remove the function armada_drm_vbl_event_remove_unlocked() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/armada/armada_drm.h |2 -- drivers/gpu/drm/armada/armada_drv.c |

[PATCH] tools: perf: util: dso: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: dso__data_size() dso__data_status_seen() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- tools/perf/util/dso.c | 34 --

[PATCH] firewire: ohci: Remove unused function

2015-01-02 Thread Rickard Strandqvist
Remove the function ar_prev_buffer_index() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/firewire/ohci.c |5 - 1 file changed, 5 deletions(-) diff --git

[patch] mm: memcontrol: track move_lock state internally

2015-01-02 Thread Johannes Weiner
The complexity of memcg page stat synchronization is currently leaking into the callsites, forcing them to keep track of the move_lock state and the IRQ flags. Simplify the API by tracking it in the memcg. Signed-off-by: Johannes Weiner --- include/linux/memcontrol.h | 6 ++-- mm/memcontrol.c

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

2015-01-02 Thread Rickard Strandqvist
Remove the function acpi_ut_create_pkg_state_and_push() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/acpi/acpica/acutils.h |8 drivers/acpi/acpica/utstate.c | 33

Re: [PATCH v10 0/4] This suspend patch is only support cut off the power of cpu and some external

2015-01-02 Thread Heiko Stübner
Am Montag, 1. Dezember 2014, 16:52:16 schrieb Chris Zhong: > devices, since we still lack power_domain driver, so the other power rail > of rk3288 need keep power on. > I have tested it on rk3288-evb board, atop next-20141112. goto suspend by > type "echo mem > /sys/power/state", vdd_cpu is about

Re: [PATCH v2 1/2] of/pci: add of_pci_dma_configure() update dma configuration

2015-01-02 Thread Arnd Bergmann
On Friday 02 January 2015 12:20:53 Murali Karicheri wrote: > Initially I had the same idea to re-use the existing function > of_dma_configure() for this. I wanted to defer this until we have an > agreement on the changes required for the subject functionality. My > quick review of the code

[PATCH] gpu: drm: armada: armada_output: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: armada_drm_encoder_mode_fixup() armada_drm_encoder_commit() armada_drm_encoder_prepare() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist ---

Re: [PATCH] staging: gs_fpgaboot: io.c: Remove unused function

2015-01-02 Thread Insop Song
Reviewed-by: Insop Song Thank you, ISS On Thu, Jan 01, 2015 at 05:23:13PM +0100, Rickard Strandqvist wrote: > Remove the function bitswap() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard

Re: [PATCH v2 1/2] of/pci: add of_pci_dma_configure() update dma configuration

2015-01-02 Thread Rob Herring
On Fri, Jan 2, 2015 at 11:20 AM, Murali Karicheri wrote: > Rob, > > See my response below. Arnd and Will, please review this as well. > > On 12/26/2014 02:33 PM, Rob Herring wrote: >> >> On Wed, Dec 24, 2014 at 4:11 PM, Murali Karicheri >> wrote: >>> >>> Add of_pci_dma_configure() to allow

Re: [PATCH 2/3] soc: ti: Add wkup_m3_ipc driver

2015-01-02 Thread Felipe Balbi
On Fri, Jan 02, 2015 at 02:16:43PM -0600, Felipe Balbi wrote: > On Fri, Jan 02, 2015 at 02:00:16PM -0600, Dave Gerlach wrote: > > Introduce a wkup_m3_ipc driver to handle communication between the MPU > > and Cortex M3 wkup_m3 present on am335x. > > > > This driver is responsible for actually

[PATCH] media: platform: s5p-jpeg: jpeg-hw-exynos4: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: exynos4_jpeg_set_timer_count() exynos4_jpeg_get_frame_size() exynos4_jpeg_set_sys_int_enable() exynos4_jpeg_get_fifo_status() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist

[PATCH] arch: parisc: kernel: smp: Remove unused function

2015-01-02 Thread Rickard Strandqvist
Remove the function smp_send_start() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/parisc/kernel/smp.c |3 --- 1 file changed, 3 deletions(-) diff --git a/arch/parisc/kernel/smp.c

[PATCH] arch: x86: kernel: traps: Remove unused function

2015-01-02 Thread Rickard Strandqvist
Remove the function conditional_cli() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/x86/kernel/traps.c |6 -- 1 file changed, 6 deletions(-) diff --git a/arch/x86/kernel/traps.c

[PATCH] scsi: aic7xxx: aic7770: Remove unused function

2015-01-02 Thread Rickard Strandqvist
Remove the function aic7770_find_device() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/scsi/aic7xxx/aic7770.c | 14 -- drivers/scsi/aic7xxx/aic7xxx.h |1 - 2 files

[PATCH] net: ethernet: cisco: enic: enic_dev: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: enic_dev_enable2_done() enic_dev_enable2() enic_dev_deinit_done() enic_dev_init_prov2() enic_vnic_dev_deinit() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist ---

[PATCH] net: wireless: rtlwifi: btcoexist: halbtc8821a2ant: Remove some unused functions

2015-01-02 Thread Rickard Strandqvist
Removes some functions that are not used anywhere: ex_halbtc8821a2ant_periodical() ex_halbtc8821a2ant_halt_notify() ex_halbtc8821a2ant_bt_info_notify() ex_halbtc8821a2ant_special_packet_notify() ex_halbtc8821a2ant_connect_notify() ex_halbtc8821a2ant_scan_notify() ex_halbtc8821a2ant_lps_notify()

Re: [PATCH 2/3] soc: ti: Add wkup_m3_ipc driver

2015-01-02 Thread Felipe Balbi
On Fri, Jan 02, 2015 at 02:00:16PM -0600, Dave Gerlach wrote: > Introduce a wkup_m3_ipc driver to handle communication between the MPU > and Cortex M3 wkup_m3 present on am335x. > > This driver is responsible for actually booting the wkup_m3_rproc and > also handling all IPC which is done using

Re: [PATCHv5 0/2] INPUT: Route keyboard LEDs through the generic LEDs layer

2015-01-02 Thread Samuel Thibault
Pavel Machek, le Fri 02 Jan 2015 20:53:51 +0100, a écrit : > input4::capsl/trigger was none by default, that can't be right, right? Indeed. And I don't see how it can be that way, since the input4::capsl LED and the input4-capsl trigger get initialized at the same time in input_led_connect...

Re: [PATCH 3/3] remoteproc: wkup_m3: Add wkup_m3 remote proc driver

2015-01-02 Thread Felipe Balbi
On Fri, Jan 02, 2015 at 01:51:59PM -0600, Dave Gerlach wrote: > Add a remoteproc driver to load the firmware for and boot the wkup_m3 > present on am33xx. The wkup_m3 is an integrated Cortex M3 that allows > the SoC to enter the lowest possible power state by taking control from > the MPU after it

[PATCH 3/3] ARM: dts: am33xx: Add wkup_m3_ipc node

2015-01-02 Thread Dave Gerlach
Add wkup_m3_ipc node for wkup_m3_ipc driver. Signed-off-by: Dave Gerlach --- arch/arm/boot/dts/am33xx.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index acd3705..1ebb230 100644 --- a/arch/arm/boot/dts/am33xx.dtsi

[PATCH 2/3] soc: ti: Add wkup_m3_ipc driver

2015-01-02 Thread Dave Gerlach
Introduce a wkup_m3_ipc driver to handle communication between the MPU and Cortex M3 wkup_m3 present on am335x. This driver is responsible for actually booting the wkup_m3_rproc and also handling all IPC which is done using the IPC registers in the control module, a mailbox, and a separate

[PATCH 1/3] Documentation: dt: add ti,am3353-wkup-m3-ipc bindings

2015-01-02 Thread Dave Gerlach
Add the device tree bindings document for ti,am3353-wkup-m3-ipc which is used by the wkup_m3_ipc driver. Signed-off-by: Dave Gerlach --- .../devicetree/bindings/soc/ti/wkup_m3_ipc.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644

[PATCH 0/3] drivers: soc: ti: Introduce wkup_m3_ipc driver

2015-01-02 Thread Dave Gerlach
This series introduces a wkup_m3_ipc driver to handle communication between the MPU and Cortex M3 present on TI AM335x SoCs. This is required for much of the PM functionality for AM335x including suspend support. This was split off from v4 of the am335x suspend series, discussion that led to the

  1   2   3   4   5   6   7   >