Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1695705pxb; Mon, 23 Aug 2021 02:18:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpbasTE4Rk9nC3xNyo97f/L5hOadk4KfoNnFhLWFSq975s5i2ZGW1aHZjEZa2eoXrWkjMG X-Received: by 2002:a17:907:a043:: with SMTP id gz3mr12124644ejc.366.1629710311453; Mon, 23 Aug 2021 02:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629710311; cv=none; d=google.com; s=arc-20160816; b=oCy5gwv6v/KvhzCh7u2ssWV0tLYzLkznKrJvw1BgVSlrnVml31GMnXbNNb/o3Ov599 YANCGSIz993t0diTqE2WeqLjw8BHZ0Nr5bGGKhjrENBV3APr7T9Gr+kEnGId+ZB8IUFw b/A8F1QDaaqbehWqwRudSF8skAUa61QCVNbRXn6I61LYhcr/CA/kfeIwVrkEutNH548w N4rIJlZU8wHwJ6JG8UVt/YrwQWuVNEK+WkW4Mrqk8jZWsLai3WIN0yy47i931qxnfxve oTkqDQewAi5RbIKXQ6anE470Si9/hbu3/XwdsNDDZSFAVf0YvykA7nYvKuo+4UBKThXK 4AKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gVndP+FiFqguCT5EocMc/DUqmcC9Y24GB4myYAKVq0M=; b=S2+WcewdTjVv7OVDcme6s7VztmwPAQ0eSWOVWjvmswix4d4hk9Dq+flyM7WHDRkcEy TaUvoTgVHYh1q1vBTjkBtyiPeN32u7hR9ZunE+J8lqQW9BUOJW4tIbBiJbuKWQkSnIBR WBH8iaJe9LTE3mjSJR9fBPcP+WZnZFrvTcZ6Z5kaOgoi3zPF9LSo1wt58zM/oIHNDwXD +kyN0gVUDzvraIXxVyO3CD8Q5JHLt2R7nJTr0WnHRgoXFS186FgWzFDb7bkyshHHXbIj R7S6yufkp83DnWFmBaNfpc1JfQlvBULJedH02duWFJ74BqVoIG/eTQ6cTrtgh0X8MIKE EJrw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si14761615edk.274.2021.08.23.02.18.08; Mon, 23 Aug 2021 02:18:31 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231444AbhHWJP1 (ORCPT + 99 others); Mon, 23 Aug 2021 05:15:27 -0400 Received: from mga14.intel.com ([192.55.52.115]:30340 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbhHWJPV (ORCPT ); Mon, 23 Aug 2021 05:15:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10084"; a="216787692" X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="216787692" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 02:14:39 -0700 X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="525863323" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.255.29.47]) ([10.255.29.47]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 02:14:37 -0700 Subject: Re: [kbuild-all] Re: arch/arm/boot/compressed/fdt_check_mem_start.c:62:10: warning: no previous prototype for function 'fdt_check_mem_start' To: Geert Uytterhoeven , kernel test robot Cc: clang-built-linux , kbuild-all@lists.01.org, Linux Kernel Mailing List , Russell King , Ard Biesheuvel References: <202108141331.fMjjWaW2-lkp@intel.com> From: "Chen, Rong A" Message-ID: <3b5f0086-5589-bb2b-29a7-312cd4a4f559@intel.com> Date: Mon, 23 Aug 2021 17:14:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/2021 4:45 PM, Geert Uytterhoeven wrote: > Dear Robot, > > On Sat, Aug 14, 2021 at 7:43 AM kernel test robot wrote: >> FYI, the error/warning still remains. > > Yes, and that's fine, as this function is never called from C code, > only from assembler. Hi Geert, Thanks for the feedback, we'll ignore this warning. Best Regards, Rong Chen > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> head: dfa377c35d70c31139b1274ec49f87d380996c42 >> commit: 0673cb38951215060d7993b43ad3c45cd413c2c3 ARM: 9045/1: uncompress: Validate start of physical memory against passed DTB >> date: 6 months ago >> config: arm-randconfig-r003-20210814 (attached as .config) >> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 62df4df41c939205b2dc0a2a3bfb75b8c1ed74fa) >> 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 >> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0673cb38951215060d7993b43ad3c45cd413c2c3 >> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> git fetch --no-tags linus master >> git checkout 0673cb38951215060d7993b43ad3c45cd413c2c3 >> # save the attached .config to linux build tree >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> >> All warnings (new ones prefixed by >>): >> >>>> arch/arm/boot/compressed/fdt_check_mem_start.c:62:10: warning: no previous prototype for function 'fdt_check_mem_start' [-Wmissing-prototypes] >> uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt) >> ^ >> arch/arm/boot/compressed/fdt_check_mem_start.c:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit >> uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt) >> ^ >> static >> 1 warning generated. >> >> >> vim +/fdt_check_mem_start +62 arch/arm/boot/compressed/fdt_check_mem_start.c >> >> 46 >> 47 /* >> 48 * Check the start of physical memory >> 49 * >> 50 * Traditionally, the start address of physical memory is obtained by masking >> 51 * the program counter. However, this does require that this address is a >> 52 * multiple of 128 MiB, precluding booting Linux on platforms where this >> 53 * requirement is not fulfilled. >> 54 * Hence validate the calculated address against the memory information in the >> 55 * DTB, and, if out-of-range, replace it by the real start address. >> 56 * To preserve backwards compatibility (systems reserving a block of memory >> 57 * at the start of physical memory, kdump, ...), the traditional method is >> 58 * always used if it yields a valid address. >> 59 * >> 60 * Return value: start address of physical memory to use >> 61 */ >> > 62 uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt) >> >> --- >> 0-DAY CI Kernel Test Service, Intel Corporation >> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > > >