Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp180910pxb; Thu, 26 Aug 2021 00:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhgHrw83KWf1yULlr0HLcTs60P3QCeONFOvHE7udyTj3d69hsFb9V9GTUPkYJk6hfsT1Nu X-Received: by 2002:a17:906:378f:: with SMTP id n15mr2650280ejc.467.1629961510875; Thu, 26 Aug 2021 00:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629961510; cv=none; d=google.com; s=arc-20160816; b=g+dNQfeFyLgaHUSvBTlxC9eAmqeGi3hJc6QVjSF4518Rwctuc9xDqr+TEnQI1noJFi 6Oqz7axLfV3Vwy7gBhJMl1qVaGitP88mNysRjEBNxY9DBS7U7iu8BBiLYdfixs5j/BYr BOdyo1BdfrOcezaVnYcyhdE4kdodvHh4jy8pUkh+Sa0kbQc06qcVZDosc5EzwqLRx5Sp FDkyHMQznlsSNAuxgRWjE/WZuV050Y4uGn+6MrYUzv4zqBOFrMk+0ucshMCHkB7qU9iQ M6SB38uZsIkWcCYzR5cGCGrNszOeFbcoFynp8YOM5Pxbt8CAZ+SDT24bQFudNRsQnQYh DIGQ== 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:dkim-signature; bh=KFymdzLg49y8Vb08mDluN7sO+jRvwqlylmuJJ1iR9jU=; b=fUPq+uTBTbHtQIyEGfg2DvDpYPsdX4t8Jn4VrpufmtBLnQbabAtkgJnAmHHuaOZp/M OAkyaoaDZ6PRkvIG4lLhYCSp+w86iSvdifOFX5W+Ezj+5t5nYfPJ6HpgZKpAmmOmf0uI jjmzaA0j3h+R6u/V77ql0+lkQai8PlhMaOgzz7zcu4VfY85pDxj/sciR8MhldQ+g/Md1 dJSB50+bzdLu74wjMcgh62L5TD9/+eI7Jb5g7tuMpteABaLQumUV8yj2qpiTo5aHERpf GZaahsI7J1Y4+BjSbvByvzhRlpu6Uun5h4pG9artmR+SyVmvsJoVRKfMqxhudOcOnE7q NOpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Boj0nZqw; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si2178409edw.388.2021.08.26.00.04.44; Thu, 26 Aug 2021 00:05:10 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Boj0nZqw; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239601AbhHZHDX (ORCPT + 99 others); Thu, 26 Aug 2021 03:03:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:41780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238773AbhHZHDW (ORCPT ); Thu, 26 Aug 2021 03:03:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00774610CB for ; Thu, 26 Aug 2021 07:02:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629961356; bh=hm6kNzovuJBc4NOoyMxTM0MA56iTAkmH3ojwLqZQi58=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Boj0nZqwI/tu26cJFpSP0bpbpEd+bZThlEIxWMKiifD5/svFw9SzFjSOVpawIAieo NofoBzldZdTbFVdDPxIe5xdi97aAmP5LSJ95SoBMzh2mo0pXuC/ty8FONb7xFp48Xs Ocy5FPf0fRvZQ8IcmaRRPOA7bEMMhC0+kmKfVBp595n5pAeukOTFaF8RlkH2vT6dus bD3BINzQEx7xf8P5TBn8TyXUnOJ/uDnWOtIAfdCB+/8y0Eh6Sl1HyX8hXYqczFmpZL d8HDVtsNaC6ZPIq6R6tibDzk+Lurt3vB32pn7XYkCAPc+4HxQifqrYJa5lOSf3agwj eqbGRYBUgkcQw== Received: by mail-ot1-f42.google.com with SMTP id m7-20020a9d4c87000000b0051875f56b95so2258718otf.6 for ; Thu, 26 Aug 2021 00:02:35 -0700 (PDT) X-Gm-Message-State: AOAM532EqeB8bkBi5no9kH7uQVIOMcAU7+Sga8jrxCFmK9Gf9homJdRi wLqw17yC/VIUcRWww6g9D/tQiUSrACkar0Bn/8s= X-Received: by 2002:a05:6830:124b:: with SMTP id s11mr1945378otp.90.1629961355206; Thu, 26 Aug 2021 00:02:35 -0700 (PDT) MIME-Version: 1.0 References: <202108141331.fMjjWaW2-lkp@intel.com> In-Reply-To: From: Ard Biesheuvel Date: Thu, 26 Aug 2021 09:02:24 +0200 X-Gmail-Original-Message-ID: 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: Nick Desaulniers Cc: Geert Uytterhoeven , kernel test robot , clang-built-linux , kbuild-all@lists.01.org, Linux Kernel Mailing List , Russell King Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Aug 2021 at 19:41, Nick Desaulniers wrote: > > On Sat, Aug 21, 2021 at 1:46 AM 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. > > That's fine, then you can add a prototype to the .c source file. See > what we do for stpcpy: 1e1b6d63d6340. > We should use 'asmlinkage' for this - we should add it to the definition of this function, and we should teach the tooling that 'asmlinkage' functions don't need a prototype. > > > > > 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 > > > > -- > > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CAMuHMdXUpk_dLhvcdgs1H6yLPrwXFJz_86dfXpm8PYxNq%2BDXrQ%40mail.gmail.com. > > > > -- > Thanks, > ~Nick Desaulniers