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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C757EB64D8 for ; Wed, 14 Jun 2023 15:27:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1C3776B007E; Wed, 14 Jun 2023 11:27:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 174846B0080; Wed, 14 Jun 2023 11:27:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 03B9E6B0081; Wed, 14 Jun 2023 11:27:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E4F0B6B007E for ; Wed, 14 Jun 2023 11:27:00 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id AE3EC1606AF for ; Wed, 14 Jun 2023 15:27:00 +0000 (UTC) X-FDA: 80901731400.24.801103E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf02.hostedemail.com (Postfix) with ESMTP id 9808A80020 for ; Wed, 14 Jun 2023 15:26:58 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OJmYGJaa; spf=pass (imf02.hostedemail.com: domain of robh@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=robh@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686756418; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=dckE/K0IOh6sW8YdZZw4Z3tCsPw+yD9eYqHSO7jQtaY=; b=BNVj7HcHSYmK4qTbjO3B2fM/TOxa9azzzRi6PwQUotB/BjSLVux2csGe49EFBewQVRPdqd NcfQxSxZlUvmr2xSutJl/FD616uNEQiXXn9/Xu4bNu/0M+sBkuNW7PrioWgAmefZIN6KwS Yd6hvnLYAw2kvouFj3bEsYcxo9BFJpo= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OJmYGJaa; spf=pass (imf02.hostedemail.com: domain of robh@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=robh@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686756418; a=rsa-sha256; cv=none; b=UbdjzTdPFh71gq/9g1J1KhYeIUGikqaEfkDA4RNGGDnXHGGJbZbU/UCuLRC/RAXkZ6JNo2 /QE7ixc4O5LhsVvo3u7Ou5O2yq02uObkQDzMUV+1FZej4A36jk3Qhk/JssDNJiOCVfgUVY Wig5xYhTiYGmHvo7QwL7JwTtj+Lhz84= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D299F643A9 for ; Wed, 14 Jun 2023 15:26:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43F78C433CB for ; Wed, 14 Jun 2023 15:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686756417; bh=oMSxcw3X6zlLbI5UmWxFFgbH+T9vMTVCLfV7wjlwkcI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OJmYGJaatmXiYivuVpGOckaMShdIE/Tx2FKVtqzbdRpmmUUqSN+leqytt5aqOQ9ev BxC80MBmI3zfOjs+JRFFxcwZnunlH7yLfAJu5OYcLmTgsx7Gv5bcHPt0U9sADJJETJ AAamKLLWdYwQ1ERIFJulBg8L7MOdegIMlhOe9ZnqPBsHq9RC/JGWvZ1c408iTJ1Yo5 6ZMwPGPf4/ahTE5wD43rjw+lac8KDyXwAFH3E2QK0ybz59Y0M/PfdxViEUBYC4lFMK 0fSREqduy3eYh8ggrW7Jmi7Kacg/E588Ja1QaJitwx8ALxUiS4o6D98rlRgHlCtQEN HZDk4WO5tv7gQ== Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2b344476313so11677871fa.3 for ; Wed, 14 Jun 2023 08:26:57 -0700 (PDT) X-Gm-Message-State: AC+VfDxEpSAl9kmtCgdJ3H/EDtb1u0+fU0JGviB0k/lgc2OaI0ritYZP tKoZFmY1NWlq67MXBVXNfb4j1zaDrFkPWaG5sQ== X-Google-Smtp-Source: ACHHUZ7e2RDr8bq2bLrOdkSpQxhIRxybPf/oRpYUssszcDIESnr+wUGhHiDMVtpey3X5CHK6SJZ5VeBGRL8uqexvvsg= X-Received: by 2002:a2e:b046:0:b0:2ac:70fa:fb7b with SMTP id d6-20020a2eb046000000b002ac70fafb7bmr7342135ljl.18.1686756415185; Wed, 14 Jun 2023 08:26:55 -0700 (PDT) MIME-Version: 1.0 References: <202306141702.ZaO9V2lk-lkp@intel.com> In-Reply-To: From: Rob Herring Date: Wed, 14 Jun 2023 09:26:42 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-next:master 9063/9793] drivers/ata/pata_octeon_cf.c:835:7: error: call to undeclared function 'of_property_read_reg'; ISO C99 and later do not support implicit function declarations To: Damien Le Moal Cc: kernel test robot , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Sergey Shtylyov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id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+e/l JoQMCgN3 TDV/pU5znO/BVPQIsVf/ialxmGxMu7NYY1dD2vJSEG6ZYfCigKzifomGZbe+w1rPskW/on4FvNNYUUM5f9Qmz4MQCIjd3apjwcSjh7QEWxV71S0g9w9p2NSPvnuaBmdOQ9toLF/eff4tHUTGaI3w0yplckBsVVOJDs7jBIg4zGNnBomZirppxtSOTHISuJ9Dj2/q7HuaQPlAZcNTmFRJYN8xYEvfHyml2vuZVmaaWt1xmzy/v839D0+yc7BvLtgX2e813He5/gJmanDv+xE6o77HkOe9IOvwilQF2uVj+IFNVOCXxS5IPV7T68j9rTGl7bwun6UnxhplBXqo80bDrs1pIdxGOjrvj7PWnU8gIwNvpJiu1jGWdcWLDPRrSv0inuvaYW3aOKE8wvsTmZmMn95hVBsc34sGTrM3/OJBVPvfxUoMv132rdYhl8UqazEQXILlSDjej0Cl4N8bsXtM7k16ZocoGpwgkfJQlR/yfsvMqE0yzCyzWRqhoF9v035kbl5KPt24GQ8NlMcZbMzASbYomlhF80nDyky4afx2F2bmPvtMx6yWPbGhgy355PfFbJvkQ/zhN1C2msE2+d0zxdwtIU8jhXIzqAQLeI31DATV6sOu2fLSCyIlRCF39IyGrmlJgXYF/Ih8nuILN3AiBTO/JUw== 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, Jun 14, 2023 at 3:41=E2=80=AFAM Damien Le Moal = wrote: > > On 6/14/23 18:23, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git master > > head: b16049b21162bb649cdd8519642a35972b7910fe > > commit: d0b2461678b12c08d43eaf6740485e2f2c3aeac6 [9063/9793] ata: Use o= f_property_read_reg() to parse "reg" > > config: mips-randconfig-r016-20230614 (https://download.01.org/0day-ci/= archive/20230614/202306141702.ZaO9V2lk-lkp@intel.com/config) > > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.gi= t 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > > reproduce (this is a W=3D1 build): > > mkdir -p ~/bin > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/s= bin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install mips cross compiling tool for clang build > > # apt-get install binutils-mips64-linux-gnuabi64 > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-ne= xt.git/commit/?id=3Dd0b2461678b12c08d43eaf6740485e2f2c3aeac6 > > 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 d0b2461678b12c08d43eaf6740485e2f2c3aeac6 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang ~/bin/make.= cross W=3D1 O=3Dbuild_dir ARCH=3Dmips olddefconfig > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang ~/bin/make.= cross W=3D1 O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash drivers/ata/ > > > > If you fix the issue in a separate patch/commit (i.e. not just a new ve= rsion of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-kbuild-all/202306141702.ZaO9V2lk-l= kp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > >>> drivers/ata/pata_octeon_cf.c:835:7: error: call to undeclared functio= n 'of_property_read_reg'; ISO C99 and later do not support implicit functio= n declarations [-Wimplicit-function-declaration] > > 835 | rv =3D of_property_read_reg(node, 0, ®, NULL); > > Rob, > > I guess this is missing: > > diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c > index 57b2166a6d5d..ff538b858928 100644 > --- a/drivers/ata/pata_octeon_cf.c > +++ b/drivers/ata/pata_octeon_cf.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include > #include > #include > #include > > I can add that if you want. Or you can send a fix and I will queue it, > whichever is fine. If you can fix it up, that would be great. I'll look into whether this can be made easier to reproduce. These patches had been on a branch and picked up by 0-day. There must be some implicit include of of_address.h somewhere. Rob