Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1965290imm; Thu, 7 Jun 2018 03:16:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnfw6BYWYApf/FoEoiCyM53ayfZlI20kvg7JfFJErBbt5O1iLTM2y6MT7SqcmXp8qL2BlU X-Received: by 2002:a65:5d8a:: with SMTP id f10-v6mr1088702pgt.119.1528366581550; Thu, 07 Jun 2018 03:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528366581; cv=none; d=google.com; s=arc-20160816; b=QSQxLV3iS9b6mK5nyyh5tko+GjCvbBS1DqQbLotd5p8YXeek6pzvx8s85NpfHTer+Q UipZSMi1vrLwqazR2pu3BK7u/wF7Lt24+2tueUtdrwQ+3RtA6ZpuF6yNxLNIJbfKdcps kRaabBgCBQHtCSKRaSPKTXKNpfQe62VbUl/A38o/lNJIl8AtLBhCP9TLShkyGX4Kjfai KPAYf4Kej9rmP/yPo4Pvxml/WB+BedDkUA+iB1LM2sz58JR8yVcGFIGEfyHAqttZ6xHb Fj+mu6E9xPVqOicXWkpETpwuYLY6+OYb1odzxyngkwTW/OOG2qPk9W8iw4HbRI7r63Eb wdMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=80t2qFEMJWN1kjVU3JfVGtwzmPfZZXuweGSdWWXLnG0=; b=FeJMo0QuAbALr6mdi2lvrK4/z99mGfW4itkeqxzmHmWl0hBS98cS1+OQGPG2EQ10/r ca3VDYQitm8objXfus9qVuHRYcb6gFqfsf91GoxJa4qLF5KlEhr61LC9uypcU8hBJc8s zXlQ4+MTFp9675OODOgYiXULmkZ1yW828d2KSdtTKLVy50aH/N3TWf6cfXRAgXrR+EPZ WRjr47RsrhLH/kMCUJ09Hs4hKz20RT75E5zminCaj9iwqSJJY2tQLC5jfIzHM8ocajiU fAoTHroYdG5rfpi1dJczht4LbmV6KzSg+z4aAQzgKzQI8uZ/H8qTtOeBzlTuBUMmmZBH GseQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EohAtlUN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h126-v6si13340113pfg.126.2018.06.07.03.16.06; Thu, 07 Jun 2018 03:16:21 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EohAtlUN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932730AbeFGJKd (ORCPT + 99 others); Thu, 7 Jun 2018 05:10:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:45593 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753432AbeFGJK2 (ORCPT ); Thu, 7 Jun 2018 05:10:28 -0400 Received: by mail-pf0-f196.google.com with SMTP id a22-v6so4596345pfo.12 for ; Thu, 07 Jun 2018 02:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=80t2qFEMJWN1kjVU3JfVGtwzmPfZZXuweGSdWWXLnG0=; b=EohAtlUNgeEzWFj/PUe5o+BmDxXGoIX0WZQ5gIEwWFQUBbKeZUDHm3Kzj9YSmjh8Y7 yhoFnCBwVWxjbAdeVLIgFNyUZZzC8Y9Cq1rYKeCH38X1FvKXHulsyHqnk2Yk/OAya6sh MPF1XQsgp9jtLWawABRu8UOT22zeo7GRQoj0E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=80t2qFEMJWN1kjVU3JfVGtwzmPfZZXuweGSdWWXLnG0=; b=gaCIx5Q2mOSV3hGeaMtEYxtPFl4jtPe5Z0/K3/p1kH3wTTAIqG+c82s5HRAoz75xnC Eqh8osiUjABQ5MMU8yJdXlQjwrC4eKgdimlXQq9//rSukBBvzUFgMOxZhkmmawZzap4g Paze8bt3Gz9RaPcOtiM3jkdAO2QVmFiJcSzL8pPRVM5UczWB5/zCTxbjrDLJL2zWAnB+ 5OeEhOtkyMKd0dUMpshotCHa0TNm/E/0AcuXEbgzvtAOR5hYnUwLL6x+WlsGUFSLs7b7 AYjB8NPd3LZoEV6UU4DWFAtxXtOPuO/l2ltQMch+UKa776U7Etom5q/PQBLfK5tMxMRz fxaQ== X-Gm-Message-State: APt69E3h5rIZmFxIG3yGHcDJgYZ1wf8VrS7uex7bg0Wia4w5+htN1mX0 +XqT8R8UFbxLI2NxAGvWwydq7kVO5sk= X-Received: by 2002:a63:7f4e:: with SMTP id p14-v6mr885570pgn.27.1528362627987; Thu, 07 Jun 2018 02:10:27 -0700 (PDT) Received: from localhost ([122.172.167.207]) by smtp.gmail.com with ESMTPSA id t23-v6sm35207873pfa.86.2018.06.07.02.10.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 02:10:27 -0700 (PDT) Date: Thu, 7 Jun 2018 14:40:25 +0530 From: Viresh Kumar To: Bernd Petrovitsch Cc: "Du, Changbin" , 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 Subject: Re: [PATCH v5 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations Message-ID: <20180607091025.m7dfix3e2xbwx4cs@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> <1303b1abf9f9229a8d3ccbb68a3e413266b360d7.camel@petrovitsch.priv.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1303b1abf9f9229a8d3ccbb68a3e413266b360d7.camel@petrovitsch.priv.at> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-06-18, 11:03, Bernd Petrovitsch wrote: > 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. It would be extra work, but memchr can be used to work around this I believe. @Johan ?? -- viresh