Re: [PATCH 9/9] serial/arc: constify uart_ops structures

2016-09-01 Thread Vineet Gupta
On 09/01/2016 10:51 AM, Julia Lawall wrote: > Check for uart_ops structures that are only stored in the ops field of a > uart_port structure. This field is declared const, so uart_ops structures > that have this property can be declared as const also. > > The semantic patch that makes this change

Re: [PATCH] perf tools: Fix static building

2016-09-01 Thread Vineet Gupta
On 08/31/2016 12:21 AM, Jiri Olsa wrote: > On Mon, Aug 22, 2016 at 08:33:42PM +0300, Alexey Brodkin wrote: >> With commit e3d09ec8126f ("tools lib traceevent: Export dynamic symbols >> used by traceevent plugins") we started to add "--dynamic-list" in >> LDFLAGS. One side-effect of that was inabili

[PATCH 9/9] serial/arc: constify uart_ops structures

2016-09-01 Thread Julia Lawall
Check for uart_ops structures that are only stored in the ops field of a uart_port structure. This field is declared const, so uart_ops structures that have this property can be declared as const also. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @r d

[PATCH 0/9] constify uart_ops structures

2016-09-01 Thread Julia Lawall
Constify uart_ops structures. --- drivers/tty/serial/altera_jtaguart.c |2 +- drivers/tty/serial/altera_uart.c |2 +- drivers/tty/serial/arc_uart.c|2 +- drivers/tty/serial/atmel_serial.c|2 +- drivers/tty/serial/bcm63xx_uart.c|2 +- drivers/tty/serial/fsl

Re: [PATCH] arc: perf: Enable generic "cache-references" and "cache-misses" events

2016-09-01 Thread Peter Zijlstra
On Wed, Aug 31, 2016 at 12:05:14PM -0700, Vineet Gupta wrote: > On 08/26/2016 10:31 AM, Vineet Gupta wrote: > > On 08/25/2016 04:49 AM, Alexey Brodkin wrote: > >> ... > >>[PERF_COUNT_ARC_EDTLB] = "edtlb", /* D-TLB Miss */ > >>[PERF_COUNT_ARC_EITLB] = "eitlb", /* I-TLB Miss */ >