Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp262379pxb; Sat, 21 Aug 2021 01:49:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxIrmtxiFvfFyxp/FBi8gSUYiezMQTtXc7WkWFP05WnDVASzD52vPpMmxbk3g68IZk4aLQ X-Received: by 2002:a17:906:25d7:: with SMTP id n23mr4454653ejb.322.1629535758659; Sat, 21 Aug 2021 01:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629535758; cv=none; d=google.com; s=arc-20160816; b=WQzPMvh3nWfjRS7oJ7ucz24H+MGSfUs94WNj/8+YQtdWIGkvxqi8/rIw53dK+9FK3q IgSJZns9M5CzmI5Gs0lX/qfDok69V5wb0dDxS7mi4JBncyMcdb0pVpVoYbpLBvLQkUFx AYnI+Bbf6mb6yFo79dOJnjZR/mOhQEe8PpVLyG92cpcwNU8YfuyIbhoOI+qJd01nt1Ga hUYsY0g6vkktee81lihV+vucgT/M/U06R/W0YuWN3lRM3tX5SuVmktfan8zYURrS3Xy+ AWx/LJX03w3Hi8fay0qaOze309Wkj3mPtpT5zlQgbmtmGpOkvrVgF8UL7aOa70tF5wNj BAzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=va6Gb7rjmVjoeAGLob0DQSqpDmgniEt7RkRQXhCDyoI=; b=PI5E+N51386pcRSVOjg59PsYpNJyzc7zqoymZy0Mw/suyNsm6XTxfDPfsmCyATWRuo z6EnJetXQuO3eOHc/PgHnSmdYWnB1j2nQvoch6dy/72TfgMiqnGeW5Xc3hLOn2eJ5ye1 gUQGXJTdNin9GSsSTGvKLZyhn0uv/lWryvEL/HZY/AG1/+wqBYWartmJtVMV2rQjsDN5 ssHJeZSgP5JpRdSKv/5WZw/oQWC4/D4lZIO+WjBZaddhQbPWdJCZAgJjD8GJNwa4IiLg qXKiBIbSfXOMiNkLcO7Q31d26uAUIaFVFRPswSa3tvhSV7iPrBbhI+0iQFRdqNrYTODj 7stQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si286036edr.160.2021.08.21.01.48.48; Sat, 21 Aug 2021 01:49:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233234AbhHUIqs (ORCPT + 99 others); Sat, 21 Aug 2021 04:46:48 -0400 Received: from mail-vs1-f54.google.com ([209.85.217.54]:44963 "EHLO mail-vs1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232802AbhHUIqs (ORCPT ); Sat, 21 Aug 2021 04:46:48 -0400 Received: by mail-vs1-f54.google.com with SMTP id s19so7705469vsl.11 for ; Sat, 21 Aug 2021 01:46:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=va6Gb7rjmVjoeAGLob0DQSqpDmgniEt7RkRQXhCDyoI=; b=DHo26+aia+o4s7voglOOq9LUVeCRavnH+rBsDjNB74H3+6THpFoqIVqrMHeck7FtkK KocsfXEcX1Y7hKBKg7vQfC3xq8jS6e/Vsdm/t74SEljt+htoCVYwKVdQ+LrZUKS0lvoO B4QH7BrlrnfZktyW8VjfQf7MyMiIaDrOKAiQG7ehfVs0GDER5fFqj6ZIcy8T3KVyv6qM ND2vlYkrn2p0rwHAaaK8gj5VAH/M3QTm8C9+y0PV9h0EjXghb3F84nW6kyWaEeDMCxQn Mi2BaTvMRo+BpnqdraPRyefuar3aMfMc1Rb3qF4AhO16tni6y5iZ2Ohk7LILL66KLXQX WX8A== X-Gm-Message-State: AOAM530Rs+pYIoL2EmElnSkRRDNKydTCSLaYP/k0i0KUUQk38D8vbTj+ T+/rG3UwAwfzDESospw2MTRvhOg6Qa1So9i85D4= X-Received: by 2002:a67:5c41:: with SMTP id q62mr19777652vsb.7.1629535568565; Sat, 21 Aug 2021 01:46:08 -0700 (PDT) MIME-Version: 1.0 References: <202108141331.fMjjWaW2-lkp@intel.com> In-Reply-To: <202108141331.fMjjWaW2-lkp@intel.com> From: Geert Uytterhoeven Date: Sat, 21 Aug 2021 10:45:57 +0200 Message-ID: Subject: Re: arch/arm/boot/compressed/fdt_check_mem_start.c:62:10: warning: no previous prototype for function 'fdt_check_mem_start' To: kernel test robot Cc: clang-built-linux , kbuild-all@lists.01.org, Linux Kernel Mailing List , Russell King , Ard Biesheuvel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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 -- Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds