Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2000103imm; Thu, 7 Jun 2018 03:57:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkxLkAOdHlk4CYz3NHAO5ERd01J4ysMc9BG2ElUIDiFyADYq+mw3MaUIQPTBQ+xwPxT1kT X-Received: by 2002:a63:6dc5:: with SMTP id i188-v6mr1139144pgc.391.1528369048449; Thu, 07 Jun 2018 03:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528369048; cv=none; d=google.com; s=arc-20160816; b=FhluggxIxL+yUBAe2fS5fFurjaX3MU//59qnLWfSbQQOJUL8lnlW3KC/ImQtDuqKOP OX5LtLRbK3MepEVtkJtvAQuJLKAivu/XPR66vkpnuiqEFycUNz6+GaT1d0cyRN7GKwq4 3LnO5866p3iiOhwy0Tkl/BCeqTx9XULHYgkW1xwT970OQcGVTUPCId75faRL+W+ABdMx Sikkmw5c1en2kFN7rvm4wJmePeDCpbbxYuG4StDQstJRSEB/Wtk4lWqhuCvEZ9mvO+vu 6zy1n5TA5m7VJ8xNVI3ACbgQ1yd0Y0o3FkFj3xyXakQbrboai2Rp6eK1oCFZ1Jt+mVHl erAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=MFUWXaFrDF8pq1fZx+z/5s//5gFQp+6scuegfKbYgxY=; b=T9pIX/FMQW8FP6WZcBrdSTIixEE8uwk8YeZsSdO01gVzvC00dATOrNnLmFKiT2TsOb p5TXjEZaCMVAAterHZW+YXSyTuKe+KF/tvmVL8dI3TRkzNOr/c3QZlWSQvtjhyK5xllF HqWS4S1QDp4niZcoP5/2Tg1CuKxR4WxbD/gohZSwuBSuZALCa6YkXK1v79E7Ga9Gr6Tn Uf0hYA40Q0h1YjnIJsDrEVFvb0Ct8rGCIhQuGXRJQ+C2VMIqAgML8TUcKO29fxL8lspP BNfbsbVpEbW2GRo9TnHiOQ0kG0r4b9wshJWRhDbBnX9gUx0J+tHjEsdbs4WDwnYppatc SULw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34-v6si37427833ple.165.2018.06.07.03.57.14; Thu, 07 Jun 2018 03:57:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932365AbeFGJyF (ORCPT + 99 others); Thu, 7 Jun 2018 05:54:05 -0400 Received: from esgaroth.petrovitsch.at ([78.47.184.11]:1862 "EHLO esgaroth.tuxoid.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932066AbeFGJyD (ORCPT ); Thu, 7 Jun 2018 05:54:03 -0400 X-Greylist: delayed 2797 seconds by postgrey-1.27 at vger.kernel.org; Thu, 07 Jun 2018 05:54:02 EDT Received: from thorin.petrovitsch.priv.at (80-110-71-232.cgn.dynamic.surfer.at [80.110.71.232]) (authenticated bits=0) by esgaroth.tuxoid.at (8.15.2/8.15.2) with ESMTPSA id w5793Kxi007971 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Thu, 7 Jun 2018 11:03:21 +0200 Message-ID: <1303b1abf9f9229a8d3ccbb68a3e413266b360d7.camel@petrovitsch.priv.at> Subject: Re: [PATCH v5 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations From: Bernd Petrovitsch To: Viresh Kumar , "Du, Changbin" Cc: Steven Rostedt , gregkh@linuxfoundation.org, alex.elder@linaro.org, Johan Hovold , kbuild test robot , linux-arch@vger.kernel.org, michal.lkml@markovi.net, linux-kernel@vger.kernel.org, arnd@arndb.de, yamada.masahiro@socionext.com, lgirdwood@gmail.com, broonie@kernel.org, rdunlap@infradead.org, x86@kernel.org, linux@armlinux.org.uk, linux-sparse@vger.kernel.org, mingo@redhat.com, kbuild-all@01.org, akpm@linux-foundation.org, changbin.du@gmail.com, tglx@linutronix.de, linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Thu, 07 Jun 2018 11:03:19 +0200 In-Reply-To: <20180607083856.ealw62v3wx43zeqz@vireshk-i7> References: <1528186420-6615-3-git-send-email-changbin.du@intel.com> <201806060501.btF3aJMZ%fengguang.wu@intel.com> <20180606095714.1d3c2def@vmware.local.home> <20180606142600.GN13775@localhost> <20180606142622.2338abf6@vmware.local.home> <20180607041718.qpqucjzlvcm5h3gn@vireshk-i7> <20180607074628.kd3iyxevwj3ypzbr@intel.com> <20180607083856.ealw62v3wx43zeqz@vireshk-i7> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.2 (3.28.2-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-DCC-URT-Metrics: esgaroth.tuxoid.at 1060; Body=25 Fuz1=25 Fuz2=25 X-Virus-Scanned: clamav-milter 0.97 at esgaroth.tuxoid.at X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Report: * 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines * 0.0 AWL AWL: Adjusted score from AWL reputation of From: address X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on esgaroth.tuxoid.at Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-06-07 at 14:08 +0530, Viresh Kumar wrote: > On 07-06-18, 15:46, Du, Changbin wrote: > > I think if the destination is not a null terminated string (If I understand your > > description below), memcpy can be used to get rid of such warning. The warning > > makes sense in general as explained in mannual. Thanks! > > The destination should be a null terminated string eventually, but we first need > to make sure src is a null terminated string. Is there strnlen() or memchr() in the kernel? Then check the source before copying it. Kind regards, Bernd -- Bernd Petrovitsch Email : bernd@petrovitsch.priv.at LUGA : http://www.luga.at