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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 357EDC56201 for ; Wed, 25 Nov 2020 19:13:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9AC15204EF for ; Wed, 25 Nov 2020 19:13:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qxUyE9Lu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AC15204EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E3BB66B005C; Wed, 25 Nov 2020 14:13:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DC4A56B0070; Wed, 25 Nov 2020 14:13:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8CB46B0071; Wed, 25 Nov 2020 14:13:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0069.hostedemail.com [216.40.44.69]) by kanga.kvack.org (Postfix) with ESMTP id B17B86B005C for ; Wed, 25 Nov 2020 14:13:53 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 70B13181AEF23 for ; Wed, 25 Nov 2020 19:13:53 +0000 (UTC) X-FDA: 77523890346.10.edge34_1d0e71e27379 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id 4DA1216A0D1 for ; Wed, 25 Nov 2020 19:13:53 +0000 (UTC) X-HE-Tag: edge34_1d0e71e27379 X-Filterd-Recvd-Size: 5105 Received: from mail-ua1-f67.google.com (mail-ua1-f67.google.com [209.85.222.67]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Wed, 25 Nov 2020 19:13:52 +0000 (UTC) Received: by mail-ua1-f67.google.com with SMTP id x13so1060381uar.4 for ; Wed, 25 Nov 2020 11:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+IN/5/YoLL4+4EFo1Ef1ozkW+zjATL5fFl70LvBvqLs=; b=qxUyE9LuSmA4t0F1YBoruhkPhTnOrZBtZbvb4JzPea8g4wxNPXLBQy2J+UfSJYg4/6 7wds6OT5CogUOubCMsqJwIvo4FNwEOBlOm71xH9se7Y9c8M1jk5AbocSpK6r0w+J8Deg AcGSXDcZApCRiikoQ7gFV5ZnEunlgutYWIDN/EgmdxlN071UG35jDX8C2GpIvw4fr4hq /sMRNrWDw4GpAi7U7HG4i9UJGf/CRmHcwUfnhGpaCNhwjE5jVFJX85WrO5wRbLdVP1Yr 7xuz+3mDyutIoQavAsgmVXE/ZeEMusnzoSaUrowayxT55cLLH6hV6zWRvFBbd0D8Q8/j dG+g== 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=+IN/5/YoLL4+4EFo1Ef1ozkW+zjATL5fFl70LvBvqLs=; b=q4JyzuCavGRJUMo2acCQh+jSPE+jt4DKACy6QzmPDUDQsb3deBy/fr9azlnF8p+pAV mLz8qzQuGt3cInNIBSfxNeNLucNKDQVTuV49/SrVP2ZzV6y1+Y95UM5PK8zUtVVrSGtq XHn1POCQugDkkIDklOW6dObkMSbo1H0/ZMzFwpedI7eiHKusmrBjnVqVM4PBArMr8dND WtVhBMxAe8A4yWnmUetVIbU2jeyyfv7pFrIpUfJtPpBUKs+XdTpJV6YV6Kftp2X0OIav 0W7Tv6v/IX73kB6yNqB8P45lr2A0H2MJaIPp4N82q01vPaKuMD5Fa4zLhH9dy7rkh/KL f/pA== X-Gm-Message-State: AOAM533Ft3ffzXUEY69ZFX3N2W38NMtBYl8ZoYtGbVOnxLnb5FKlc1by YfwgIuAdt3/sbhxxgxJqzRgW+FiocChMcPnF3R8= X-Google-Smtp-Source: ABdhPJwix6VtcxlXC6zudY+mZKXAaO15iHZ1FBtSxZi91Mg2qwPtT+PAqqctpt+1QFc+hzbVK7FxUdS7kfOxelLqtsc= X-Received: by 2002:ab0:6cb6:: with SMTP id j22mr3713552uaa.82.1606331632174; Wed, 25 Nov 2020 11:13:52 -0800 (PST) MIME-Version: 1.0 References: <202011241521.8ozmsGaX-lkp@intel.com> In-Reply-To: <202011241521.8ozmsGaX-lkp@intel.com> From: Souptick Joarder Date: Thu, 26 Nov 2020 00:43:39 +0530 Message-ID: Subject: Re: arch/powerpc/platforms/pseries/reconfig.c:394:30: error: 'ofdt_proc_ops' defined but not used To: kernel test robot Cc: Alexey Dobriyan , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List 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 Tue, Nov 24, 2020 at 12:40 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc > commit: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops" > date: 10 months ago > config: powerpc-randconfig-r002-20201124 (attached as .config) > compiler: powerpc64le-linux-gcc (GCC) 9.3.0 > 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=97a32539b9568bb653683349e5a76d02ff3c3e2c > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 97a32539b9568bb653683349e5a76d02ff3c3e2c > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> arch/powerpc/platforms/pseries/reconfig.c:394:30: error: 'ofdt_proc_ops' defined but not used [-Werror=unused-const-variable=] > 394 | static const struct proc_ops ofdt_proc_ops = { > | ^~~~~~~~~~~~~ > cc1: all warnings being treated as errors > -- > >> arch/powerpc/platforms/pseries/lparcfg.c:701:30: error: 'lparcfg_proc_ops' defined but not used [-Werror=unused-const-variable=] > 701 | static const struct proc_ops lparcfg_proc_ops = { > | ^~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors Both ofdt_proc_ops & lparcfg_proc_ops are used by proc_create(). Not sure why it is throwing warnings. > > vim +/ofdt_proc_ops +394 arch/powerpc/platforms/pseries/reconfig.c > > 393 > > 394 static const struct proc_ops ofdt_proc_ops = { > 395 .proc_write = ofdt_write, > 396 .proc_lseek = noop_llseek, > 397 }; > 398 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org