RE: [PATCH -mmotm] cciss: fix build for CONFIG_PROC_FS=n

From: Miller, Mike (OS Dev)
Date: Fri Jun 04 2010 - 14:08:39 EST




> -----Original Message-----
> From: Randy Dunlap [mailto:randy.dunlap@xxxxxxxxxx]
> Sent: Friday, June 04, 2010 11:42 AM
> To: linux-kernel@xxxxxxxxxxxxxxx
> Cc: akpm@xxxxxxxxxxxxxxxxxxxx; Miller, Mike (OS Dev)
> Subject: [PATCH -mmotm] cciss: fix build for CONFIG_PROC_FS=n
>
> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
>
> Fix build for CONFIG_PROC_FS not enabled; fixes this build error:
> drivers/block/cciss.c:3422: error: implicit declaration of
> function 'next_command'
>
> Looks like the next_command() function was added at a bad
> location in cciss-add-performant-mode-support-for-stars-sirius.patch.
>
> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Thanks, Randy. But I'm working on that plus a couple other miscues.

-- mikem

> Cc: Mike Miller <mike.miller@xxxxxx>
> ---
> drivers/block/cciss.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- mmotm-2010-0603-1636.orig/drivers/block/cciss.c
> +++ mmotm-2010-0603-1636/drivers/block/cciss.c
> @@ -372,8 +372,6 @@ static const char *raid_label[] = { "0",
> }; #define RAID_UNKNOWN (sizeof(raid_label) /
> sizeof(raid_label[0])-1)
>
> -#ifdef CONFIG_PROC_FS
> -
> static inline u32 next_command(ctlr_info_t *h) {
> u32 a;
> @@ -396,6 +394,8 @@ static inline u32 next_command(ctlr_info
> return a;
> }
>
> +#ifdef CONFIG_PROC_FS
> +
> /*
> * Report information about this controller.
> */
> --
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/