From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAB07C56201 for ; Wed, 18 Nov 2020 19:52:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 15A66246B1 for ; Wed, 18 Nov 2020 19:52:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RnMjbKlM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15A66246B1 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 775296B0036; Wed, 18 Nov 2020 14:52:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7258C6B005C; Wed, 18 Nov 2020 14:52:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C5CD6B005D; Wed, 18 Nov 2020 14:52:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0093.hostedemail.com [216.40.44.93]) by kanga.kvack.org (Postfix) with ESMTP id 2760B6B0036 for ; Wed, 18 Nov 2020 14:52:30 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id AACF83638 for ; Wed, 18 Nov 2020 19:52:29 +0000 (UTC) X-FDA: 77498586018.19.sun58_5110a4d2733c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 82F981ACEBC for ; Wed, 18 Nov 2020 19:52:29 +0000 (UTC) X-HE-Tag: sun58_5110a4d2733c X-Filterd-Recvd-Size: 6138 Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Wed, 18 Nov 2020 19:52:28 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id t37so1863697pga.7 for ; Wed, 18 Nov 2020 11:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M4piJ3ylJUFdPdZ2F6myDl/P6I4u4Ujh7Hd5kBHBuzI=; b=RnMjbKlM0HqXOwnrSZzBxDx7mPeE8nJ3Ti6ZgFFSxWwnnZ9OkcgfxI2ftrW8ZQ0vKG ObwFqAR1BcXkF89OF9Facy5Dx0ET2LshXOjv72YvnKClUo+n8gbM8dWPJNjbBrGvu1U1 SVoG3op+vOCQELkgfeAAkqkNxqS06AeJNDDsbebcl3rvwVpUB7GItyqNayFqkOZvBlAJ t0UBLCnWvQhdbn9I465rU5ipjHqzjVd3q9XR1PL1l7gjQ+GdZ58nCAccBQPpAEbJV1hy 8+RQMFVYd0/2/rlSzz2orHcx50TpgXQparcorZhHc5w96R6kVlm+K/9BzCmHPjtC5FZp bufw== 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=M4piJ3ylJUFdPdZ2F6myDl/P6I4u4Ujh7Hd5kBHBuzI=; b=uKXoPZZzU1kg7U/6wWEQGU020hsLY0hAxdXAMb4AdjlUDvPVr3Sbjpz0sdwzXLFZA5 9oW+zQeLNNsi0Mb73uCmeeYHmwWtVpPg7a1xleZaRKK/xmlyhNqSMH5kDYTHuKAViWNl 9702lUebulk+mNzK6maocaFDS/JZRP/iE/IhR04isg/BLQTwwGu4oWMh4Rxyg1C43A08 qRbMWyZ8Ln8FUl6YE5tPdcOzd2zWvQVO/kKeK8PMFoOjqdnBAE8kAfmrTS9+alUL9aek vSF6BGXsp6jKIX4PAvOsByi2mVl8yFyIcmg6DH8+rbagVqHssodz6guYmYpedqqI6nOs mzCg== X-Gm-Message-State: AOAM5327dKnCu9LLYPTmf5CqBxP6rotk6q0fEA5bv6pMCJnzHSwdGyS8 3wTxU0G5wwvBDw9ZxTy24swXjQ2sN8vl1p4w155Cfg== X-Google-Smtp-Source: ABdhPJz7QcUvQkMsKQpwII7FRPF+20Ry27I0D8Af3CgT+YeYfkvmk6+eRScjUXvB1KAPV4XRFoUsvqgoyohXFKtPbbc= X-Received: by 2002:a17:90a:4881:: with SMTP id b1mr658403pjh.32.1605729147763; Wed, 18 Nov 2020 11:52:27 -0800 (PST) MIME-Version: 1.0 References: <202011182008.u7jsMtBl-lkp@intel.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 18 Nov 2020 11:52:15 -0800 Message-ID: Subject: Re: [linux-next:master 5868/6773] arch/powerpc/mm/mem.c:91:12: warning: no previous prototype for function 'create_section_mapping' To: Dan Williams Cc: kernel test robot , kbuild-all@lists.01.org, clang-built-linux , Linux Memory Management List , Thomas Gleixner , Christoph Hellwig , Andrew Morton Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Nov 18, 2020 at 11:22 AM Dan Williams wrote: > > On Wed, Nov 18, 2020 at 4:27 AM kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 2052923327794192c5d884623b5ee5fec1867bda > > commit: d106ad47e292fde47fc09e16a2ddc13609ff2ad1 [5868/6773] mm-fix-phys_to_target_node-and-memory_add_physaddr_to_nid-exports-v4 > > config: powerpc64-randconfig-r026-20201118 (attached as .config) ^ randconfig > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7) > > reproduce (this is a W=1 build): ^ W=1 > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install powerpc64 cross compiling tool for clang build > > # apt-get install binutils-powerpc64-linux-gnu > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d106ad47e292fde47fc09e16a2ddc13609ff2ad1 > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout d106ad47e292fde47fc09e16a2ddc13609ff2ad1 > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 > > I get: > > Makefile:597: arch/powerpc64/Makefile: No such file or directory > make[1]: *** No rule to make target 'arch/powerpc64/Makefile'. Stop. > make: *** [Makefile:712: include/config/auto.conf.cmd] Error 2 > > ...changing it to ARCH=powerpc I get: > > Assembler messages: > Fatal error: invalid listing option `3' > clang: error: assembler command failed with exit code 1 (use -v to see > invocation) > make[1]: *** [scripts/Makefile.build:283: scripts/mod/empty.o] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make: *** [Makefile:1199: prepare0] Error 2 > > This is on a Fedora 31 host. > > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> arch/powerpc/mm/mem.c:91:12: warning: no previous prototype for function 'create_section_mapping' [-Wmissing-prototypes] > > int __weak create_section_mapping(unsigned long start, unsigned long end, > > ^ > > arch/powerpc/mm/mem.c:91:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > > int __weak create_section_mapping(unsigned long start, unsigned long end, > > ^ > > static > > 1 warning generated. > > I do not see these errors with gcc. > > I feel like clang errors should be flagged / de-emphasized when the > same error does not appear on gcc. Note this is a W=1 build. For this warning, you either need to mark functions as having static linkage, or provide a prototype in a header so that callers know the correct function signature. -- Thanks, ~Nick Desaulniers