Re: [PATCH 3/3 v2] Staging: crystalhd: Replace the BCMLOG_ERR macro with pr_err

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 18, 2012 at 9:14 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> On Sat, 2012-02-18 at 21:08 -0200, Jorgyano vieira wrote:
>> > o pr_fmt needs to be #defined before any #include that might
>> >  directly or indirectly #include kernel.h/printk.h
>> >  use 'strings <path>/built-in.o | grep "^<.>"' to verify.
>> yes, I take care of this:--- a/drivers/staging/crystalhd/crystalhd_misc.h
>> +++ b/drivers/staging/crystalhd/crystalhd_misc.h
>> @@ -28,6 +28,8 @@
>>  #ifndef _CRYSTALHD_MISC_H_
>>  #define _CRYSTALHD_MISC_H_
>>
>> +#define pr_fmt(fmt)    KBUILD_MODNAME ": " fmt
>> +
>
> Maybe.
>
> $ grep -rP --include=*.[ch] -m1 "^[ \t]*#[ \t]*include" drivers/staging/crystalhd/
> drivers/staging/crystalhd/crystalhd_cmds.h:#include "crystalhd_misc.h"
> drivers/staging/crystalhd/crystalhd_lnx.c:#include <linux/mutex.h>
> drivers/staging/crystalhd/crystalhd_cmds.c:#include "crystalhd_cmds.h"
> drivers/staging/crystalhd/bc_dts_types.h:#include <stdint.h>
> drivers/staging/crystalhd/bc_dts_glob_lnx.h:#include <stdio.h>
> drivers/staging/crystalhd/crystalhd_misc.c:#include <linux/slab.h>
> drivers/staging/crystalhd/crystalhd_misc.h:#include <linux/module.h>
> drivers/staging/crystalhd/crystalhd_lnx.h:#include <linux/module.h>
> drivers/staging/crystalhd/crystalhd_hw.h:#include "crystalhd_misc.h"
> drivers/staging/crystalhd/crystalhd_hw.c:#include <linux/pci.h>
>
> so lnx, cmds, misc, and hw.c are/were suspect.
>

this is the output after the patch:

$ grep -rP --include=*.[ch] -m1 "^[ \t]*#[ \t]*include"
drivers/staging/crystalhd/
drivers/staging/crystalhd/crystalhd_misc.c:#include "crystalhd_misc.h"
drivers/staging/crystalhd/crystalhd_cmds.c:#include "crystalhd_cmds.h"
drivers/staging/crystalhd/crystalhd_lnx.c:#include "crystalhd_lnx.h"
drivers/staging/crystalhd/crystalhd_hw.h:#include "crystalhd_misc.h"
drivers/staging/crystalhd/bc_dts_glob_lnx.h:#include <stdio.h>
drivers/staging/crystalhd/crystalhd_cmds.h:#include "crystalhd_misc.h"
drivers/staging/crystalhd/crystalhd_misc.h:#include <linux/module.h>
drivers/staging/crystalhd/bc_dts_types.h:#include <stdint.h>
drivers/staging/crystalhd/crystalhd_hw.c:#include "crystalhd_hw.h"
drivers/staging/crystalhd/crystalhd_lnx.h:#include "crystalhd_cmds.h"
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux