Re: [PATCH v2] mtd: mark devname argument of add_mtd_device as const

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

 



On Fri, Jul 03, 2015 at 09:51:47AM +0200, Marc Kleine-Budde wrote:
> On 07/03/2015 09:49 AM, Marc Kleine-Budde wrote:
> > This patch fixes the following warning:
> > 
> > | drivers/mtd/devices/m25p80.c: In function 'm25p_probe':
> > | drivers/mtd/devices/m25p80.c:271:14: warning: assignment discards 'const' qualifier from pointer target type
> > |   flash_name = dev->id_entry->name;
> > |                 ^
> > 
> > Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> 
> This patch applies to master. I can rebase it to -next if needed.

Not necessary. It's already included as:

commit 5f11e80670a7cf9acfca05b91b3ccf054b8457ae
Author: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
Date:   Mon Jun 29 07:04:52 2015 +0200

    mtd: Make devname argument to add_mtd_device const
    
    add_mtd_device duplicates the string where necessary, so make it
    const.
    
    Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux