public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Ezequiel Garcia <elezegarcia@gmail.com>
Cc: linux-mtd@lists.infradead.org, Maxim Levitsky <maximlevitsky@gmail.com>
Subject: Re: [PATCH] mtd: sm_ftl: Remove unused kthread stuff
Date: Fri, 30 Nov 2012 15:07:09 +0200	[thread overview]
Message-ID: <1354280829.30168.122.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <CALF0-+X9M3eQOBXerRCtmnZHaLP01CdW0PWxv88D3EZ2J-_fMA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 21754 bytes --]

On Thu, 2012-11-22 at 20:02 -0300, Ezequiel Garcia wrote:
> On Wed, Nov 21, 2012 at 12:05 PM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> > On Sat, 2012-11-10 at 13:35 -0300, Ezequiel Garcia wrote:
> >> This driver uses workqueues, not kthreads.
> >> Remove kthread header and thread related comment.
> >>
> >> Cc: Maxim Levitsky <maximlevitsky@gmail.com>
> >> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> >
> > Aiaiai [1]!
> >
> > Aiaiai found out that this breaks the build!
> >
> > drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
> > drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
> >
> > Include <linux/err.h> instead, I guess.
> 
> I can do that. But I can't get that error here :-(
> 
> Mind me posting your config?

Below is the aiaiai report, and there are many configs - pick the one
you like. You can find all of them in [1].

1. git://git.infradead.org/users/dedekind/maintaining.git


$ ./verify ../l2-mtd/ < ~/tmp/sm_ftl.mbox

Tested the patch(es) on top of the following commits:
9f34d3b Quick fixes - applied by aiaiai
5bc8d0c mtd: remove the "chip" parameter in nand_get_device()
3b6bb0c mtd: remove the de-select chip code in nand_release_device()
0f722de mtd: m25p80: modify info for Micron N25Q128

--------------------------------------------------------------------------------

Successfully built configuration "arm-omap2plus_defconfig,arm,arm-none-linux-gnueabi-", no issues

--------------------------------------------------------------------------------

Successfully built configuration "i386_defconfig,i386,", no issues

--------------------------------------------------------------------------------
Failed to build the following commit for configuration "ia64_defconfig" (architecture ia64)":

85f41e6 mtd: sm_ftl: Remove unused kthread stuff

drivers/mtd/nand/r852.c:964:6: warning: no previous prototype for 'r852_remove' [-Wmissing-prototypes]
drivers/mtd/nand/r852.c:995:6: warning: no previous prototype for 'r852_shutdown' [-Wmissing-prototypes]
drivers/mtd/nand/r852.c:1006:12: warning: 'r852_suspend' defined but not used [-Wunused-function]
drivers/mtd/nand/r852.c:1027:12: warning: 'r852_resume' defined but not used [-Wunused-function]
drivers/mtd/nand/nandsim.c:1395:5: warning: no previous prototype for 'do_read_error' [-Wmissing-prototypes]
drivers/mtd/nand/nandsim.c:1410:6: warning: no previous prototype for 'do_bit_flips' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:43:9: warning: no previous prototype for 'sm_attr_show' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:56:25: warning: no previous prototype for 'sm_create_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:109:6: warning: no previous prototype for 'sm_delete_sysfs_attributes' [-Wmissing-prototypes]                                                                                                                  
drivers/mtd/sm_ftl.c:573:5: warning: no previous prototype for 'sm_get_media_info' [-Wmissing-prototypes]                                                                                                                           
drivers/mtd/sm_ftl.c:880:18: warning: no previous prototype for 'sm_get_zone' [-Wmissing-prototypes]                                                                                                                                
drivers/mtd/sm_ftl.c: In function 'sm_get_zone':                                                                                                                                                                                    
drivers/mtd/sm_ftl.c:892:4: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]                                                                                                               
drivers/mtd/sm_ftl.c:892:4: warning: return makes pointer from integer without a cast [enabled by default]                                                                                                                          
drivers/mtd/sm_ftl.c: At top level:                                                                                                                                                                                                 
drivers/mtd/sm_ftl.c:901:6: warning: no previous prototype for 'sm_cache_init' [-Wmissing-prototypes]                                                                                                                               
drivers/mtd/sm_ftl.c:911:6: warning: no previous prototype for 'sm_cache_put' [-Wmissing-prototypes]                                                                                                                                
drivers/mtd/sm_ftl.c:919:5: warning: no previous prototype for 'sm_cache_get' [-Wmissing-prototypes]                                                                                                                                
drivers/mtd/sm_ftl.c:930:5: warning: no previous prototype for 'sm_cache_flush' [-Wmissing-prototypes]                                                                                                                              
drivers/mtd/sm_ftl.c: In function 'sm_read':                                                                                                                                                                                        
drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]                                                                                                               
drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]                                                                                                              
cc1: some warnings being treated as errors                                                                                                                                                                                          
make[3]: *** [drivers/mtd/sm_ftl.o] Error 1                                                                                                                                                                                         
                                                                                                                                                                                                                                    
--------------------------------------------------------------------------------                                                                                                                                                    
Failed to build the following commit for configuration "m68k-m5208evb_defconfig" (architecture m68k)":                                                                                                                              
                                                                                                                                                                                                                                    
85f41e6 mtd: sm_ftl: Remove unused kthread stuff                                                                                                                                                                                    
                                                                                                                                                                                                                                    
In file included from drivers/mtd/maps/latch-addr-flash.c:17:0:                                                                                                                                                                     
include/linux/mtd/map.h:145:2: warning: #warning "No CONFIG_MTD_MAP_BANK_WIDTH_xx selected. No NOR chip support can work" [-Wcpp]                                                                                                   
drivers/mtd/sm_ftl.c:43:9: warning: no previous prototype for 'sm_attr_show' [-Wmissing-prototypes]                                                                                                                                 
drivers/mtd/sm_ftl.c:56:25: warning: no previous prototype for 'sm_create_sysfs_attributes' [-Wmissing-prototypes]                                                                                                                  
drivers/mtd/sm_ftl.c:109:6: warning: no previous prototype for 'sm_delete_sysfs_attributes' [-Wmissing-prototypes]                                                                                                                  
drivers/mtd/sm_ftl.c: In function 'sm_break_offset':                                                                                                                                                                                
drivers/mtd/sm_ftl.c:214:13: warning: comparison of distinct pointer types lacks a cast [enabled by default]                                                                                                                        
drivers/mtd/sm_ftl.c:215:11: warning: comparison of distinct pointer types lacks a cast [enabled by default]                                                                                                                        
drivers/mtd/sm_ftl.c: At top level:                                                                                                                                                                                                 
drivers/mtd/sm_ftl.c:573:5: warning: no previous prototype for 'sm_get_media_info' [-Wmissing-prototypes]                                                                                                                           
drivers/mtd/sm_ftl.c:880:18: warning: no previous prototype for 'sm_get_zone' [-Wmissing-prototypes]                                                                                                                                
drivers/mtd/sm_ftl.c: In function 'sm_get_zone':                                                                                                                                                                                    
drivers/mtd/sm_ftl.c:892:4: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]                                                                                                               
drivers/mtd/sm_ftl.c:892:4: warning: return makes pointer from integer without a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:901:6: warning: no previous prototype for 'sm_cache_init' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:911:6: warning: no previous prototype for 'sm_cache_put' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:919:5: warning: no previous prototype for 'sm_cache_get' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:930:5: warning: no previous prototype for 'sm_cache_flush' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_read':
drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/mtd/sm_ftl.o] Error 1

--------------------------------------------------------------------------------
Failed to build the following commit for configuration "mips64_defconfig" (architecture mips)":

85f41e6 mtd: sm_ftl: Remove unused kthread stuff

drivers/mtd/nand/r852.c:964:6: warning: no previous prototype for 'r852_remove' [-Wmissing-prototypes]
drivers/mtd/nand/r852.c:995:6: warning: no previous prototype for 'r852_shutdown' [-Wmissing-prototypes]
drivers/mtd/nand/nandsim.c:1395:5: warning: no previous prototype for 'do_read_error' [-Wmissing-prototypes]
drivers/mtd/nand/nandsim.c:1410:6: warning: no previous prototype for 'do_bit_flips' [-Wmissing-prototypes]
drivers/mtd/nftlmount.c: In function 'NFTL_mount':
drivers/mtd/nftlmount.c:568:62: warning: variable 'nb_erases' set but not used [-Wunused-but-set-variable]
drivers/mtd/sm_ftl.c:43:9: warning: no previous prototype for 'sm_attr_show' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:56:25: warning: no previous prototype for 'sm_create_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:109:6: warning: no previous prototype for 'sm_delete_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:573:5: warning: no previous prototype for 'sm_get_media_info' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:880:18: warning: no previous prototype for 'sm_get_zone' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_get_zone':
drivers/mtd/sm_ftl.c:892:4: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:892:4: warning: return makes pointer from integer without a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:901:6: warning: no previous prototype for 'sm_cache_init' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:911:6: warning: no previous prototype for 'sm_cache_put' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:919:5: warning: no previous prototype for 'sm_cache_get' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:930:5: warning: no previous prototype for 'sm_cache_flush' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_read':
drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/mtd/sm_ftl.o] Error 1

--------------------------------------------------------------------------------
Failed to build the following commit for configuration "mips-bcm63xx_defconfig" (architecture mips)":

85f41e6 mtd: sm_ftl: Remove unused kthread stuff

drivers/mtd/bcm63xxpart.c: In function 'bcm63xx_parse_cfe_partitions':
drivers/mtd/bcm63xxpart.c:76:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
drivers/mtd/sm_ftl.c:43:9: warning: no previous prototype for 'sm_attr_show' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:56:25: warning: no previous prototype for 'sm_create_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:109:6: warning: no previous prototype for 'sm_delete_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_break_offset':
drivers/mtd/sm_ftl.c:214:13: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/mtd/sm_ftl.c:215:11: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:573:5: warning: no previous prototype for 'sm_get_media_info' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:880:18: warning: no previous prototype for 'sm_get_zone' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_get_zone':
drivers/mtd/sm_ftl.c:892:4: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:892:4: warning: return makes pointer from integer without a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:901:6: warning: no previous prototype for 'sm_cache_init' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:911:6: warning: no previous prototype for 'sm_cache_put' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:919:5: warning: no previous prototype for 'sm_cache_get' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:930:5: warning: no previous prototype for 'sm_cache_flush' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_read':
drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/mtd/sm_ftl.o] Error 1

--------------------------------------------------------------------------------
Failed to build the following commit for configuration "ppc32_defconfig" (architecture powerpc)":

85f41e6 mtd: sm_ftl: Remove unused kthread stuff

drivers/mtd/nftlmount.c: In function 'NFTL_mount':
drivers/mtd/nftlmount.c:568:62: warning: variable 'nb_erases' set but not used [-Wunused-but-set-variable]
drivers/mtd/sm_ftl.c:43:9: warning: no previous prototype for 'sm_attr_show' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:56:25: warning: no previous prototype for 'sm_create_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:109:6: warning: no previous prototype for 'sm_delete_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_break_offset':
drivers/mtd/sm_ftl.c:214:13: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/mtd/sm_ftl.c:215:11: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:573:5: warning: no previous prototype for 'sm_get_media_info' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:880:18: warning: no previous prototype for 'sm_get_zone' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_get_zone':
drivers/mtd/sm_ftl.c:892:4: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:892:4: warning: return makes pointer from integer without a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:901:6: warning: no previous prototype for 'sm_cache_init' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:911:6: warning: no previous prototype for 'sm_cache_put' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:919:5: warning: no previous prototype for 'sm_cache_get' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:930:5: warning: no previous prototype for 'sm_cache_flush' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_read':
drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/mtd/sm_ftl.o] Error 1

--------------------------------------------------------------------------------
Failed to build the following commit for configuration "ppc64_defconfig" (architecture powerpc)":

85f41e6 mtd: sm_ftl: Remove unused kthread stuff

include/linux/mtd/pfow.h:104:6: warning: variable 'chipnum' set but not used [-Wunused-but-set-variable]
drivers/mtd/lpddr/lpddr_cmds.c: At top level:
drivers/mtd/lpddr/lpddr_cmds.c:391:5: warning: no previous prototype for 'do_write_buffer' [-Wmissing-prototypes]
drivers/mtd/lpddr/lpddr_cmds.c:472:5: warning: no previous prototype for 'do_erase_oneblock' [-Wmissing-prototypes]
drivers/mtd/lpddr/lpddr_cmds.c:706:5: warning: no previous prototype for 'do_xxlock' [-Wmissing-prototypes]
drivers/mtd/lpddr/lpddr_cmds.c:751:5: warning: no previous prototype for 'word_program' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:43:9: warning: no previous prototype for 'sm_attr_show' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:56:25: warning: no previous prototype for 'sm_create_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:109:6: warning: no previous prototype for 'sm_delete_sysfs_attributes' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:573:5: warning: no previous prototype for 'sm_get_media_info' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:880:18: warning: no previous prototype for 'sm_get_zone' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_get_zone':
drivers/mtd/sm_ftl.c:892:4: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:892:4: warning: return makes pointer from integer without a cast [enabled by default]
drivers/mtd/sm_ftl.c: At top level:
drivers/mtd/sm_ftl.c:901:6: warning: no previous prototype for 'sm_cache_init' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:911:6: warning: no previous prototype for 'sm_cache_put' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:919:5: warning: no previous prototype for 'sm_cache_get' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c:930:5: warning: no previous prototype for 'sm_cache_flush' [-Wmissing-prototypes]
drivers/mtd/sm_ftl.c: In function 'sm_read':
drivers/mtd/sm_ftl.c:1025:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/mtd/sm_ftl.c:1026:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [drivers/mtd/sm_ftl.o] Error 1

--------------------------------------------------------------------------------

Successfully built configuration "x86_64_defconfig,x86_64,", no issues

--------------------------------------------------------------------------------


-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2012-11-30 13:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-10 16:35 [PATCH] mtd: sm_ftl: Remove unused kthread stuff Ezequiel Garcia
2012-11-21 15:05 ` Artem Bityutskiy
2012-11-22 23:02   ` Ezequiel Garcia
2012-11-30 13:07     ` Artem Bityutskiy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1354280829.30168.122.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=elezegarcia@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=maximlevitsky@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox