Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp47225pxb; Tue, 12 Jan 2021 19:37:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8qZMkpy9xkwNx+G4JsgrKEERNX5YrCvyX05F9TymA5kdjsxHceBkBlHJYnHKQTsj0wjRk X-Received: by 2002:a05:6402:45:: with SMTP id f5mr150564edu.273.1610509060199; Tue, 12 Jan 2021 19:37:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610509060; cv=none; d=google.com; s=arc-20160816; b=tpWQWzNRB2maBMCtO9f0Qz7X4k3oP+7ew5c7kh+IsNUSuKS03wX71AW2n+aTbQPxwL WA7eTFyG3m1gPEcNF9J8T9F6+WUXV2TABi3sB6IOiDOV79+CJfvPd14OqKHOjl0McB8/ hJTbBymPK8HUVbusF69yALoIPFc/AQ8Wdahc9dCV+c7D9tzs7IDCIIhyWY9X+gkV/fnm 0BYIAGkNm0DPbOOADsak55FBd2i7TxRvPluyOqqjgcmm3QmxXlNx0pxi2gCqmZMVmNuz MtlhSDNwYBewMiz3AeFr+w4VdQUTWLF1spSQfIhYqcfa8Yt1RaN03Q1aqzXwE39BzZzY wTVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fq9Plgov79IhfrzoAKOz8rulKlgb6ke/+f1nKnQxxW0=; b=uXE8rFu0VkUaOlxGC9oEzf5069tHnLpvNzGyGTn5G/UhWxTHR+IWOmqGB1wH2afSDG NTHw4IDK/bhRQfYaltlU3lAyAWVKtP4cFIRIyAN5MZVyKCgXhDL2yge6WNQD4jLXj9Bq t1nKwmfqt0ZzhndZuwUfIgb7i0YtySphZcG/B9VaJ6+qJ92Mk1d2O3R59ct1cAMPEzXX g83H+GM6PGZEp5uBvGkUrM8oLIlNTYpM0UkUbHTj7C/pf/QTjJDmX/MyEffo1kBxV9MD GvpwMGF09ei+CY/o+jZDh6vnD8IWd0DF2pRuHoyH2UXfiJ0GDFXD0OCMDgr3o+CN7R/v Irkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z5V6pwug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si368564edl.62.2021.01.12.19.37.16; Tue, 12 Jan 2021 19:37:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z5V6pwug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727432AbhAMBcO (ORCPT + 99 others); Tue, 12 Jan 2021 20:32:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbhAMBcN (ORCPT ); Tue, 12 Jan 2021 20:32:13 -0500 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F35C061575 for ; Tue, 12 Jan 2021 17:31:33 -0800 (PST) Received: by mail-qk1-x734.google.com with SMTP id z11so274233qkj.7 for ; Tue, 12 Jan 2021 17:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fq9Plgov79IhfrzoAKOz8rulKlgb6ke/+f1nKnQxxW0=; b=Z5V6pwugh8tpNgcEBRyoj+Y6Z5AJg6B0zPtKXl64DjRA3KzMducbX7nTwFGIAMeinn OJ5UxJDRPPgeiEUD59NOxYKDcmjU681HofoD+pZcTdXdjrOBGK2zYONOtnVArf4hSNbp bDMD5G67TN8/sI+6XN8v6ysAMejiveE29xmXw6Xa46Yl5Tx0avjB9U0g0iwKzH6IoJnr 2rDY2OpNlgN8LdWGEg8JHBWD9ge1MPbVDdh7vs7kF9HwTmomO1vt0YzodX8tAh/cM0+Z ajsVUggdrrI7vUnD2vPsd8rt0PU6ko1ygWfTPs+GUMDk0eoq3v4MpHiy1+2KGCqQ21w8 cSzQ== 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; bh=fq9Plgov79IhfrzoAKOz8rulKlgb6ke/+f1nKnQxxW0=; b=tsqDxU+wLCDqcgr2rxBLP1kZTu5tUsoymG8VCFNU/1X2tjSm7NwuEIpCP0UC2HCQ5z juDuBTwe38lw5o/TqoiORMQH7q0DdIew/9BnhUfJzK250dFDk2hCT01jZZRNuTI82cIK 9dgGnNNVoEXJEQZVu/laCrp9B8JSa6yu1Cm64YdltAJEq6nNcw6IKI3kzOLEfxG7bR7U Ij9eb9m/A+ZSOW8IqmTWWMgDROwMNGz6EYAi5aS+4depmlA1ZpuWGaq4+ibcQvtGJeK2 opVMlPjzZWwJGonm9s+JpxNuOhd7GzGLOpslSe8YOuuLSBXRbF5KX90a+KCWwMlJqEeY ZKpg== X-Gm-Message-State: AOAM532XK0/pCb2V1J6pkbHGPHAxOnWVcFafERYHSNsAdjRQLmDXfgEE F9nNWJis4fS9N0vVkxYd1hM= X-Received: by 2002:a37:9b8a:: with SMTP id d132mr2556778qke.81.1610501492549; Tue, 12 Jan 2021 17:31:32 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id p15sm248369qtu.26.2021.01.12.17.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 17:31:31 -0800 (PST) Date: Tue, 12 Jan 2021 18:31:30 -0700 From: Nathan Chancellor To: kernel test robot Cc: Kees Cook , Andrew Morton , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Nick Desaulniers , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ubsan: Implement __ubsan_handle_alignment_assumption Message-ID: <20210113013130.GA3446359@ubuntu-m3-large-x86> References: <20210112205542.1375847-1-natechancellor@gmail.com> <202101130859.JSORPQUn-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202101130859.JSORPQUn-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 08:39:52AM +0800, kernel test robot wrote: > Hi Nathan, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on 7c53f6b671f4aba70ff15e1b05148b10d58c2837] > > url: https://github.com/0day-ci/linux/commits/Nathan-Chancellor/ubsan-Implement-__ubsan_handle_alignment_assumption/20210113-055714 > base: 7c53f6b671f4aba70ff15e1b05148b10d58c2837 > config: arm64-randconfig-r031-20210112 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 32bcfcda4e28375e5a85268d2acfabcfcc011abf) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # https://github.com/0day-ci/linux/commit/775adad26a60878926c0ee6cd460a1375bbe51e6 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Nathan-Chancellor/ubsan-Implement-__ubsan_handle_alignment_assumption/20210113-055714 > git checkout 775adad26a60878926c0ee6cd460a1375bbe51e6 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > lib/ubsan.c:192:6: warning: no previous prototype for function '__ubsan_handle_add_overflow' [-Wmissing-prototypes] > void __ubsan_handle_add_overflow(void *data, > ^ > lib/ubsan.c:192:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > void __ubsan_handle_add_overflow(void *data, > ^ > static > lib/ubsan.c:200:6: warning: no previous prototype for function '__ubsan_handle_sub_overflow' [-Wmissing-prototypes] > void __ubsan_handle_sub_overflow(void *data, > ^ > lib/ubsan.c:200:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > void __ubsan_handle_sub_overflow(void *data, > ^ Given that these are compiler inserted functions, there is not much of a point to having prototypes to them. If people feel shutting these warnings up is worthwhile, we can just add the prototypes right above the function definition in a follow up patch. Cheers, Nathan