Re: [PATCH] staging: comedi: remove this_board macro in the s526 driver

2012-05-22 Thread Dan Carpenter
On Tue, May 22, 2012 at 06:20:10PM -0700, H Hartley Sweeten wrote: > The 'thisboard' macro depends on having a local variable with > a magic name. The CodingStyle document suggests not doing this > to avoid confusion. Remove the macro and use the comedi_board() > inline helper to get the dev->board

Re: [PATCH/RFC] Make sure linux_banner is the first message in log_buf

2012-05-22 Thread Anton Vorontsov
On Tue, May 22, 2012 at 10:55:12PM -0400, David Miller wrote: > From: Anton Vorontsov > Date: Tue, 22 May 2012 19:35:16 -0700 > > > For scripting it is important to have a consistent header that tells > > where the kernel log starts. At least to me it always seemed that > > linux_banner served th

Re: [PATCH/RFC] Make sure linux_banner is the first message in log_buf

2012-05-22 Thread David Miller
From: Anton Vorontsov Date: Tue, 22 May 2012 19:35:16 -0700 > For scripting it is important to have a consistent header that tells > where the kernel log starts. At least to me it always seemed that > linux_banner served this purpose. Your change will not achieve this goal, many architectures pr

Re: [PATCH/RFC] Make sure linux_banner is the first message in log_buf

2012-05-22 Thread Linus Torvalds
On Tue, May 22, 2012 at 7:35 PM, Anton Vorontsov wrote: > @@ -749,6 +749,9 @@ asmlinkage int printk(const char *fmt, ...) >        va_list args; >        int r; > > +       /* Make sure linux_banner is kernel's first message. */ > +       printk_once(KERN_NOTICE "%s", linux_banner); > + Ugh. No.

[PATCH/RFC] Make sure linux_banner is the first message in log_buf

2012-05-22 Thread Anton Vorontsov
For scripting it is important to have a consistent header that tells where the kernel log starts. At least to me it always seemed that linux_banner served this purpose. Though, an early kernel code may print things before the Linux banner. When we parse logs from multiple boots grabbed from serial

[PATCH] staging: comedi: remove this_board macro in the s526 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the ssv_dnp driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the serial2002 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the rti800 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the poc driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcmuio driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the pcmmio driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the pcmda12 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the pcmad driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcm3724 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl818 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl816 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl812 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl730 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl726 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl724 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the pcl711 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove boardtype macro in the ni_atmio16d driver

2012-05-22 Thread H Hartley Sweeten
The 'boardtype' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the ni_at_ao driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the dt282x driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove this_board macro in the dt2811 driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

[PATCH] staging: comedi: remove thisboard macro in the dmm32at driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the das16m1 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the das16 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the comedi_test driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the aio_iiro_16 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the aio_aio12_8 driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove thisboard macro in the adq12b driver

2012-05-22 Thread H Hartley Sweeten
The 'thisboard' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Mo

[PATCH] staging: comedi: remove this_board macro in the acl7225b driver

2012-05-22 Thread H Hartley Sweeten
The 'this_board' macro depends on having a local variable with a magic name. The CodingStyle document suggests not doing this to avoid confusion. Remove the macro and use the comedi_board() inline helper to get the dev->board_ptr information. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: M

Re: [PATCH v4 0/16] Merge ram_console into pstore, and more

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 12:04 PM, Greg Kroah-Hartman wrote: > On Tue, May 22, 2012 at 11:33:33AM -0700, Kees Cook wrote: >> On Tue, May 22, 2012 at 11:19 AM, Greg Kroah-Hartman >> wrote: >> > On Tue, May 22, 2012 at 07:17:17AM -0700, Anton Vorontsov wrote: >> >> Hi all, >> >> >> >> A brand new v4

Re: [PATCH v4 0/16] Merge ram_console into pstore, and more

2012-05-22 Thread Greg Kroah-Hartman
On Tue, May 22, 2012 at 11:33:33AM -0700, Kees Cook wrote: > On Tue, May 22, 2012 at 11:19 AM, Greg Kroah-Hartman > wrote: > > On Tue, May 22, 2012 at 07:17:17AM -0700, Anton Vorontsov wrote: > >> Hi all, > >> > >> A brand new v4: > >> > >> - Per Kees Cook's comments, the patches no longer remove

Re: [PATCH v4 0/16] Merge ram_console into pstore, and more

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 11:19 AM, Greg Kroah-Hartman wrote: > On Tue, May 22, 2012 at 07:17:17AM -0700, Anton Vorontsov wrote: >> Hi all, >> >> A brand new v4: >> >> - Per Kees Cook's comments, the patches no longer remove an automatic >>   updates feature, but instead make the it configurable; pl

Re: [PATCH 07/21] Staging: bcm: Remove typedef for _TARGET_PARAMS and call directly.

2012-05-22 Thread Kevin McKinney
On Tue, May 22, 2012 at 8:30 AM, Dan Carpenter wrote: > On Tue, May 22, 2012 at 08:02:43AM -0400, Kevin McKinney wrote: >> On Tue, May 22, 2012 at 5:03 AM, Dan Carpenter >> wrote: >> > On Tue, May 22, 2012 at 12:06:20AM -0400, Kevin McKinney wrote: >> >> This patch removes typedef for _TARGET_PA

Re: [PATCH v4 0/16] Merge ram_console into pstore, and more

2012-05-22 Thread Greg Kroah-Hartman
On Tue, May 22, 2012 at 07:17:17AM -0700, Anton Vorontsov wrote: > Hi all, > > A brand new v4: > > - Per Kees Cook's comments, the patches no longer remove an automatic > updates feature, but instead make the it configurable; plus disable > it by default (in a separate patch); > - Fixed some

Re: [PATCH 03/16] pstore/ram_core: Do not reset restored zone's position and size

2012-05-22 Thread Colin Cross
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > Otherwise, the files will survive just one reboot, and on a subsequent > boot they will disappear. > > Also, as noticed by Colin Cross, this also causes an interesting behavior > change in the console logging. Before this change, the consol

Re: [PATCH 16/16] pstore/platform: Disable automatic updates by default

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > Having automatic updates seems pointless for production system, and > even dangerous and thus counter-productive: > > 1. If we can mount pstore, or read files, we can as well read >   /proc/kmsg. So, there's little point in duplicating the

Re: [PATCH 15/16] pstore/platform: Make automatic updates interval configurable

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > There is no behavioural change, the default value is still 60 seconds. > > Signed-off-by: Anton Vorontsov Acked-by: Kees Cook -- Kees Cook Chrome OS Security ___ devel mailing list devel@linu

Re: [PATCH 10/16] pstore/ram: Add console messages handling

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > The console log size is configurable via ramoops.console_size > module option, and the log itself is available via > /console-ramoops file. > > Signed-off-by: Anton Vorontsov Acked-by: Kees Cook -- Kees Cook Chrome OS Security

Re: [PATCH 09/16] pstore/ram: Factor ramoops_get_dump_prz() out of ramoops_pstore_read()

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > This will help make code clearer when we'll add support for other > message types. > > The patch also changes return value from -EINVAL to 0 in case of > end-of-records. The exact value doesn't matter for pstore (it should > be just <= 0),

Re: [PATCH 08/16] pstore/ram: Factor dmesg przs initialization out of probe()

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > This will help make code clearer when we'll add support for other > message types. > > This also makes probe() much shorter and understandable, plus > makes mem/record size checking a bit easier. > > Implementation detail: we now use a padd

Re: [PATCH 07/16] pstore/ram: Introduce ramoops_context.max_dump_count

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > So far it is the same as max_count, but this will change when > we'll add support for other message types (e.g. console, mce, > tracing). > > Signed-off-by: Anton Vorontsov Acked-by: Kees Cook -- Kees Cook Chrome OS Security __

Re: [PATCH 05/16] pstore/ram: Should zap persistent zone on unlink

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > Otherwise, unlinked file will reappear on the next boot. > > Reported-by: Kees Cook > Signed-off-by: Anton Vorontsov Acked-by: Kees Cook -- Kees Cook Chrome OS Security ___ devel mailing lis

Re: [PATCH 04/16] pstore/ram_core: Factor persistent_ram_zap() out of post_init()

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > A handy function that we will use outside of ram_core soon. But > so far just factor it out and start using it in post_init(). > > Signed-off-by: Anton Vorontsov Acked-by: Kees Cook -- Kees Cook Chrome OS Security _

Re: [PATCH 02/16] pstore/ram: Should update old dmesg buffer before reading

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > Without the update, we'll only see the new dmesg buffer after the > reboot, but previously we could see it right away. Making an oops > visible in pstore filesystem before reboot is a somewhat dubious > feature, but removing it wasn't an in

Re: [PATCH 01/16] pstore/inode: Make pstore_fill_super() static

2012-05-22 Thread Kees Cook
On Tue, May 22, 2012 at 7:17 AM, Anton Vorontsov wrote: > There's no reason to extern it. The patch fixes the annoying sparse > warning: > > CHECK   fs/pstore/inode.c > fs/pstore/inode.c:264:5: warning: symbol 'pstore_fill_super' was not > declared. Should it be static? > > Signed-off-by: Anton Vo

[PATCH 16/16] pstore/platform: Disable automatic updates by default

2012-05-22 Thread Anton Vorontsov
Having automatic updates seems pointless for production system, and even dangerous and thus counter-productive: 1. If we can mount pstore, or read files, we can as well read /proc/kmsg. So, there's little point in duplicating the functionality and present the same information but via another

[PATCH 15/16] pstore/platform: Make automatic updates interval configurable

2012-05-22 Thread Anton Vorontsov
There is no behavioural change, the default value is still 60 seconds. Signed-off-by: Anton Vorontsov --- fs/pstore/platform.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index a3f6d96..4f49bb4 100644 --- a/fs

[PATCH 14/16] pstore/ram_core: Remove now unused code

2012-05-22 Thread Anton Vorontsov
The code tried to maintain the global list of persistent ram zones, which isn't a great idea overall, plus since Android's ram_console is no longer there, we can remove some unused functions. Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Acked-by: Colin Cross --- fs/pstore/ram_core.c

[PATCH 12/16] pstore/ram: Add some more documentation and examples

2012-05-22 Thread Anton Vorontsov
Suggested-by: Shuah Khan Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Acked-by: Colin Cross --- Documentation/ramoops.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/ramoops.txt b/Documentation/ramoops.txt index 4ba7db2..59a74a8 100644 --- a/Docume

[PATCH 13/16] staging/android: Remove ram_console driver

2012-05-22 Thread Anton Vorontsov
All the functionality is now supported by pstore and pstore_ram drivers. Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Acked-by: Colin Cross --- drivers/staging/android/Kconfig |5 - drivers/staging/android/Makefile |1 - drivers/staging/android/ram_console.c | 179 ---

[PATCH 11/16] pstore/ram_core: Silence some printks

2012-05-22 Thread Anton Vorontsov
Since we use multiple regions, the messages are somewhat annoying. We do print total mapped memory already, so no need to print the information for each region in the library routines. Signed-off-by: Anton Vorontsov Acked-by: Kees Cook Acked-by: Colin Cross --- fs/pstore/ram_core.c |4 ++--

[PATCH 09/16] pstore/ram: Factor ramoops_get_dump_prz() out of ramoops_pstore_read()

2012-05-22 Thread Anton Vorontsov
This will help make code clearer when we'll add support for other message types. The patch also changes return value from -EINVAL to 0 in case of end-of-records. The exact value doesn't matter for pstore (it should be just <= 0), but 0 feels more correct. Signed-off-by: Anton Vorontsov --- fs/p

[PATCH 08/16] pstore/ram: Factor dmesg przs initialization out of probe()

2012-05-22 Thread Anton Vorontsov
This will help make code clearer when we'll add support for other message types. This also makes probe() much shorter and understandable, plus makes mem/record size checking a bit easier. Implementation detail: we now use a paddr pointer, this will be used for allocating persistent ram zones for

[PATCH 10/16] pstore/ram: Add console messages handling

2012-05-22 Thread Anton Vorontsov
The console log size is configurable via ramoops.console_size module option, and the log itself is available via /console-ramoops file. Signed-off-by: Anton Vorontsov --- fs/pstore/ram.c| 107 ++-- include/linux/pstore_ram.h |1 + 2 files

[PATCH 07/16] pstore/ram: Introduce ramoops_context.max_dump_count

2012-05-22 Thread Anton Vorontsov
So far it is the same as max_count, but this will change when we'll add support for other message types (e.g. console, mce, tracing). Signed-off-by: Anton Vorontsov --- fs/pstore/ram.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fs/pstore/ram.c b/fs/psto

[PATCH 06/16] pstore: Add console log messages support

2012-05-22 Thread Anton Vorontsov
Pstore doesn't support logging kernel messages in run-time, it only dumps dmesg when kernel oopses/panics. This makes pstore useless for debugging hangs caused by HW issues or improper use of HW (e.g. weird device inserted -> driver tried to write a reserved bits -> SoC hanged. In that case we don'

[PATCH 05/16] pstore/ram: Should zap persistent zone on unlink

2012-05-22 Thread Anton Vorontsov
Otherwise, unlinked file will reappear on the next boot. Reported-by: Kees Cook Signed-off-by: Anton Vorontsov --- fs/pstore/ram.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 16ff733..453030f 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @

[PATCH 04/16] pstore/ram_core: Factor persistent_ram_zap() out of post_init()

2012-05-22 Thread Anton Vorontsov
A handy function that we will use outside of ram_core soon. But so far just factor it out and start using it in post_init(). Signed-off-by: Anton Vorontsov --- fs/pstore/ram_core.c | 11 --- include/linux/pstore_ram.h |1 + 2 files changed, 9 insertions(+), 3 deletions(-) di

[PATCH 03/16] pstore/ram_core: Do not reset restored zone's position and size

2012-05-22 Thread Anton Vorontsov
Otherwise, the files will survive just one reboot, and on a subsequent boot they will disappear. Also, as noticed by Colin Cross, this also causes an interesting behavior change in the console logging. Before this change, the console log would show only the messages from the last reboot. After th

[PATCH 02/16] pstore/ram: Should update old dmesg buffer before reading

2012-05-22 Thread Anton Vorontsov
Without the update, we'll only see the new dmesg buffer after the reboot, but previously we could see it right away. Making an oops visible in pstore filesystem before reboot is a somewhat dubious feature, but removing it wasn't an intentional change, so let's restore it. For this we have to make

[PATCH 01/16] pstore/inode: Make pstore_fill_super() static

2012-05-22 Thread Anton Vorontsov
There's no reason to extern it. The patch fixes the annoying sparse warning: CHECK fs/pstore/inode.c fs/pstore/inode.c:264:5: warning: symbol 'pstore_fill_super' was not declared. Should it be static? Signed-off-by: Anton Vorontsov --- fs/pstore/inode.c |2 +- 1 file changed, 1 insertion(

[PATCH v4 0/16] Merge ram_console into pstore, and more

2012-05-22 Thread Anton Vorontsov
Hi all, A brand new v4: - Per Kees Cook's comments, the patches no longer remove an automatic updates feature, but instead make the it configurable; plus disable it by default (in a separate patch); - Fixed some bugs noticed by Colin Cross; - Documented new continuous ramoops-console log beha

Re: [PATCH 03/14] pstore/ram_core: Do not reset restored zone's position and size

2012-05-22 Thread Anton Vorontsov
On Fri, May 18, 2012 at 04:42:03PM -0700, Colin Cross wrote: [...] > This causes an interesting behavior change in the console logging. > Before this change, the console log would show only the messages from > the last reboot. After this change, the console log will have logs > from multiple boots

Re: [PATCH 13/21] Staging: bcm: Remove typedef for _U_IP_ADDRESS and convert union to struct.

2012-05-22 Thread Dan Carpenter
On Tue, May 22, 2012 at 08:08:46AM -0400, Kevin McKinney wrote: > On Tue, May 22, 2012 at 5:17 AM, Dan Carpenter > wrote: > > On Tue, May 22, 2012 at 12:06:26AM -0400, Kevin McKinney wrote: > >> This patch removes typedef for _U_IP_ADDRESS, > >> changes the name of the union from _U_IP_ADDRESS >

Re: [PATCH 07/21] Staging: bcm: Remove typedef for _TARGET_PARAMS and call directly.

2012-05-22 Thread Dan Carpenter
On Tue, May 22, 2012 at 08:02:43AM -0400, Kevin McKinney wrote: > On Tue, May 22, 2012 at 5:03 AM, Dan Carpenter > wrote: > > On Tue, May 22, 2012 at 12:06:20AM -0400, Kevin McKinney wrote: > >> This patch removes typedef for _TARGET_PARAMS, > >> changes the name of the struct from > >> _TARGET_P

Re: [PATCH 13/21] Staging: bcm: Remove typedef for _U_IP_ADDRESS and convert union to struct.

2012-05-22 Thread Kevin McKinney
On Tue, May 22, 2012 at 5:17 AM, Dan Carpenter wrote: > On Tue, May 22, 2012 at 12:06:26AM -0400, Kevin McKinney wrote: >> This patch removes typedef for _U_IP_ADDRESS, >> changes the name of the union from _U_IP_ADDRESS >> to bcm_ip_address, and converts the union to a >> struct. In addition, any

Re: [PATCH 07/21] Staging: bcm: Remove typedef for _TARGET_PARAMS and call directly.

2012-05-22 Thread Kevin McKinney
On Tue, May 22, 2012 at 5:03 AM, Dan Carpenter wrote: > On Tue, May 22, 2012 at 12:06:20AM -0400, Kevin McKinney wrote: >> This patch removes typedef for _TARGET_PARAMS, >> changes the name of the struct from >> _TARGET_PARAMS to bcm_target_params. In addition, >> remove typedefs: STARGETPARAMS, *

Re: [PATCH] staging: comedi: ii_pci20kc: iobase and ioaddr are void __iomem *

2012-05-22 Thread Ian Abbott
On 2012-05-22 09:11, Dan Carpenter wrote: On Mon, May 21, 2012 at 06:10:07PM -0700, H Hartley Sweeten wrote: @@ -210,7 +210,7 @@ static int pci20xxx_attach(struct comedi_device *dev, if (ret< 0) return ret; - devpriv->ioaddr = (void *)(unsigned long)it->options[0]

Re: [PATCH] staging: comedi: remove private header comedi_pci.h

2012-05-22 Thread Ian Abbott
On 2012-05-22 01:12, H Hartley Sweeten wrote: Remove the private header, comedi_pci.h, by moving the two helper functions into divers.c and providing the prototypes in comedidev.h. This allows the comedi_pci_enable/disable helper functions to be shared instead of having an inline version in ever

Re: [PATCH 13/21] Staging: bcm: Remove typedef for _U_IP_ADDRESS and convert union to struct.

2012-05-22 Thread Dan Carpenter
On Tue, May 22, 2012 at 12:06:26AM -0400, Kevin McKinney wrote: > This patch removes typedef for _U_IP_ADDRESS, > changes the name of the union from _U_IP_ADDRESS > to bcm_ip_address, and converts the union to a > struct. In addition, any calls to the following > typedef "U_IP_ADDRESS" are changed

Re: [PATCH 07/21] Staging: bcm: Remove typedef for _TARGET_PARAMS and call directly.

2012-05-22 Thread Dan Carpenter
On Tue, May 22, 2012 at 12:06:20AM -0400, Kevin McKinney wrote: > This patch removes typedef for _TARGET_PARAMS, > changes the name of the struct from > _TARGET_PARAMS to bcm_target_params. In addition, > remove typedefs: STARGETPARAMS, *PSTARGETPARAMS. > > Signed-off-by: Kevin McKinney > --- >

Re: [PATCH] staging: comedi: ii_pci20kc: iobase and ioaddr are void __iomem *

2012-05-22 Thread Dan Carpenter
On Mon, May 21, 2012 at 06:10:07PM -0700, H Hartley Sweeten wrote: > @@ -210,7 +210,7 @@ static int pci20xxx_attach(struct comedi_device *dev, > if (ret < 0) > return ret; > > - devpriv->ioaddr = (void *)(unsigned long)it->options[0]; > + devpriv->ioaddr = (void __iome