From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C26CC43603 for ; Wed, 18 Dec 2019 07:35:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B77624650 for ; Wed, 18 Dec 2019 07:35:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbfLRHfd (ORCPT ); Wed, 18 Dec 2019 02:35:33 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:15381 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726526AbfLRHfc (ORCPT ); Wed, 18 Dec 2019 02:35:32 -0500 Date: 18 Dec 2019 16:35:31 +0900 X-IronPort-AV: E=Sophos;i="5.69,328,1571670000"; d="scan'208";a="34736644" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 18 Dec 2019 16:35:31 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id C9B51400D4F2; Wed, 18 Dec 2019 16:35:31 +0900 (JST) Message-ID: <87y2vahyrg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Yoshinori Sato , Rich Felker , Karl Nasrallah Cc: Linux-SH , Linux-Renesas Subject: Re: [PATCH] sh: use generic strncpy() In-Reply-To: <871rt2jdgi.wl-kuninori.morimoto.gx@renesas.com> References: <8736dijdit.wl-kuninori.morimoto.gx@renesas.com> <871rt2jdgi.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hi > From: Karl Nasrallah > > Current SH will get below warning at strncpy() > > In file included from ${LINUX}/arch/sh/include/asm/string.h:3, > from ${LINUX}/include/linux/string.h:20, > from ${LINUX}/include/linux/bitmap.h:9, > from ${LINUX}/include/linux/nodemask.h:95, > from ${LINUX}/include/linux/mmzone.h:17, > from ${LINUX}/include/linux/gfp.h:6, > from ${LINUX}/innclude/linux/slab.h:15, > from ${LINUX}/linux/drivers/mmc/host/vub300.c:38: > ${LINUX}/drivers/mmc/host/vub300.c: In function 'new_system_port_status': > ${LINUX}/arch/sh/include/asm/string_32.h:51:42: warning: array subscript\ > 80 is above array bounds of 'char[26]' [-Warray-bounds] > : "0" (__dest), "1" (__src), "r" (__src+__n) > ~~~~~^~~~ > > This patch fixup it > > Signed-off-by: Karl Nasrallah > Signed-off-by: Kuninori Morimoto > --- Grr, I failed Subject. Sato-san, Rich, please let me know if you select this patch. I can repost it with correct Subject Thank you for your help !! Best regards --- Kuninori Morimoto