Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1879730imm; Thu, 7 Jun 2018 01:40:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJbhfIEJBnoPk6ZwYjERNQ8qUOGG7qIqokU3wzyHW0apbrdxX2Mp+ID/8w949divSjO1MX0 X-Received: by 2002:a17:902:b590:: with SMTP id a16-v6mr1026950pls.225.1528360839865; Thu, 07 Jun 2018 01:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528360839; cv=none; d=google.com; s=arc-20160816; b=d19IaNEctLeulIBEuuadK5y5Ri8vRkW8WqjTMyxA2W5Cx4g3pOIE7gmPsf0YY7bp44 XP7ZQ1cjMH9umthgLlJrpL7Zq2W8uVNJz0yF4fEi2yA1BaRwbTaDXnWAr2g8pNLPnZx/ KFaZUg2yHmBdcSrssAEx9eeOrZqqV03csUSOGinV2Xuas2HDzOXGwsW/pBvOJYjAS2wk oQ+03+YDmmvG237fzvfvJF10Kz5Sj8urzcUYc85lBQ4SBPj2Cr0GzjVl4WuPcKrhqpvu hM1+LT+qP4wXP6/Y8UmwVP0yQFUQCcp7LXqakhvkzxHwzcWy7wYOWWlJDJuqHDUt2a0m QUfA== 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=y45ivCNTlsWYRG9+Y/fXcDkBiv3l1h16vbzMNWhMS5M=; b=Yqu/gN1l4jW/STRwj/n/XCmIHEyK6bzopohjQqG+NLOBH1XNvum7qKSy5FMqRHCYeK tkTlpOC9OPBQ6Prtjtta7zjnsxXyu7xxqT50m4oPClF2/mksuC5x4FeY+EoM+RN5+HuV DMm1ml4I1RTMS+0Xo3ng3+2bGFGUbEwH7KWMrOkutGc1bfnO+762pv6XfE3qx51+YOIF Nnm4Ov+j6shoLmtnhRQ+Ti0RMKoPh46xTf2n76GB7B3CvOhTpLYCqv/+E6RzgvAcWRdg Lit0S6owW43QcKiyz4fgRMWXm3BzS00czzAd6gDRxolB8WOOtACglE7/sEscFq3/juuE sbfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iSVcksJT; 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 x18-v6si24941168pff.196.2018.06.07.01.40.24; Thu, 07 Jun 2018 01:40:39 -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=iSVcksJT; 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 S932526AbeFGIjD (ORCPT + 99 others); Thu, 7 Jun 2018 04:39:03 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:37129 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753176AbeFGIjA (ORCPT ); Thu, 7 Jun 2018 04:39:00 -0400 Received: by mail-pl0-f65.google.com with SMTP id 31-v6so5674883plc.4 for ; Thu, 07 Jun 2018 01:39:00 -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=y45ivCNTlsWYRG9+Y/fXcDkBiv3l1h16vbzMNWhMS5M=; b=iSVcksJTIz4SYDKSwyDAIflUAYo+MHw3SzKMAFrVLetxfWxORF8cNv5emExKx+Ab9D z24CgKQY/oXtE6568ryhtdjQVJtQFeBk986akjkxdnFK0KgXsbzBL9BLUDkXVex2sC4D WzYUmpIoKURn4nS5M/YiYyvghMf8WNGYVKZSU= 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=y45ivCNTlsWYRG9+Y/fXcDkBiv3l1h16vbzMNWhMS5M=; b=aCLUYSi/MmGnRvLG2ZskgGfT9QRY3Km0z1dB0ntSsWHNQOofGjnSax4EsfJmoxdPa+ mzZn/5aawoDmsAsMufmaThM79JXUu8uP3JAFETRR3or3IeksnII9R335r9QyGT3i1wqN HrsKmwLEmI4hXtJT028QUuaH1vt/NFT3EAMORyAlE12mzFimRyTQ24M7bCHD0GSygZpM jsDDcunzUZqYLw5OCKNOXURwTqK9wpy0qSCrV1KMFWqQPbF4ABQ8/F7KfrVbNexJVR4q C1ayu0WbHLUflIxrJqRWImxpMlZc98RmVXbPG1ViqVTJ2yEbndO2WdNJak2Y26U5EkFT 0JEQ== X-Gm-Message-State: APt69E04wlmRCDChFfrHyLSNIe8dZnEXUwqnyL8/xAUa1kwE+CesTkph 2ykpJeIOftFM7D/9RXohqXq/4A== X-Received: by 2002:a17:902:9307:: with SMTP id bc7-v6mr1074857plb.292.1528360740128; Thu, 07 Jun 2018 01:39:00 -0700 (PDT) Received: from localhost ([122.172.167.207]) by smtp.gmail.com with ESMTPSA id a9-v6sm39005232pgt.57.2018.06.07.01.38.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 01:38:59 -0700 (PDT) Date: Thu, 7 Jun 2018 14:08:56 +0530 From: Viresh Kumar To: "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 Subject: Re: [PATCH v5 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180607074628.kd3iyxevwj3ypzbr@intel.com> 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, 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. -- viresh