Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7077483rwp; Tue, 18 Jul 2023 09:41:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcxo+XL7BXgOyPbSu0rj9KH4ERmuTUTcbxa6WMJKxfmsCsEt4wPF1CbwWsNptGtALWm5iv X-Received: by 2002:ac2:559b:0:b0:4f8:6ab4:aac6 with SMTP id v27-20020ac2559b000000b004f86ab4aac6mr30084lfg.1.1689698476876; Tue, 18 Jul 2023 09:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689698476; cv=none; d=google.com; s=arc-20160816; b=vt9rpa/UuqRbTfBIGw1WdP0bnGdbLY0qM64bGfhOckAsePXRfg73YdRoWqlgvfAaAG p2vXAeobWqRqA+Ts0c/Mzk01wW8SMFWpo6EDLbae/ht/QWbHjsaQ89aae0N6dNozX/Lb zCvCJ83MLUSqBsxp2a0EIPO6pykZkjwgkJ12Ih0KwYEtj/FcUq7NopnEB1O8CXHYMG3f r6ZmotyqxG2NgVwscQgL3OMhwhMzPoniL4TviP9HsOJ21dE4fp7r54GirrUzvPl6HUH2 rELRbP3r+uXpUyFf0A7xofmFyWRKP1Y8BGEL1mkzbiT8jxvw5An1STrDaxsBWRHyxMSg S/Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aTPofZ1ZJMozXM9xuYylxZAFKDQ+GXqBH86SLLNpiNg=; fh=EndpKqbfd9aF6EKtVapZUe9uSPtKhMzUYirlHzXrBvM=; b=Coz3zJdqLx04mHuqkxl5duWwZ0y2njLafrEd6WwQ2WPCl96zqDKq6Tl3LkTHQMAsAe 5ud2w9ymVlAQuzF2mYxZ5DKi0/eFQdTYLONEh7wFitrbjQDtNbWLkccPz+hJBo7eKBiR hADp+tOagd4uDlE3cxUG5IXKDBRbkNMQtS21deICzy0A9eJ37QPq48Zuj/JON3Mao1Ll 8qRh5KtuDe9FXYPyuaT6Sc6tX/p2Y4gbJ5C3IK+7eZb7/UFggb4L8yJdD7SfRfJ9MLSW 7s/Gyzt7MbZqASIgmTH2IGgh8LJsGnNGOLBX7wh917IJSwBloVru/c319SgLzindMMgR VUkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MjmzwpUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a056402514300b0051e56a4cccdsi1530264edd.648.2023.07.18.09.40.49; Tue, 18 Jul 2023 09:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MjmzwpUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232449AbjGRQBv (ORCPT + 99 others); Tue, 18 Jul 2023 12:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjGRQBt (ORCPT ); Tue, 18 Jul 2023 12:01:49 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06EABE42 for ; Tue, 18 Jul 2023 09:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689696104; x=1721232104; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=mUwkx+Z+OnBhUQnTeyRwIWiZ6PuW3K2DI61uIPt6feY=; b=MjmzwpUxTC5bhjevyPlty5hzAvbokORXMWKeYGo3l9W46Mi8pxWnkeFD xLvOk/pFrNvhMfMcWaKK0ngYVMuAI4yaox+3QaHtcwVZTZgxyksg/SPI1 Wo5fxBHZi9ioAZNe+48wR18ROuHK1ACUwSQv3JUM/7eGP1Udda6ulUrg1 GlUZ8mQNSb3f/B7ITmXYBcP5OdDSFSEp8pmnJlWAOy4dLZvbKwe1CT7kD P7CBEcb/Xu6Jd4J0WBr8BwzuuPrebYwOP/EFZGJQy1n6PXuz/CVgGQNUw GQ1a06beb8HxVP1mBYyoKvWNgSUQsYtOUYVF/fLFrL9OSizs1glhRrefj w==; X-IronPort-AV: E=McAfee;i="6600,9927,10775"; a="366285336" X-IronPort-AV: E=Sophos;i="6.01,214,1684825200"; d="scan'208";a="366285336" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2023 09:00:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10775"; a="837330266" X-IronPort-AV: E=Sophos;i="6.01,214,1684825200"; d="scan'208";a="837330266" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 18 Jul 2023 09:00:46 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qLn82-0000hd-0g; Tue, 18 Jul 2023 16:00:46 +0000 Date: Wed, 19 Jul 2023 00:00:37 +0800 From: kernel test robot To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Srinivas Kandagatla Cc: oe-kbuild-all@lists.linux.dev, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Bartosz Golaszewski , Alban Bedel , Christian Marangi , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] Revert "nvmem: add new config option" Message-ID: <202307182316.AVNL1wNs-lkp@intel.com> References: <20230718084804.20139-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230718084804.20139-1-zajec5@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi RafaƂ, kernel test robot noticed the following build warnings: [auto build test WARNING on mtd/mtd/next] [also build test WARNING on mtd/mtd/fixes linus/master v6.5-rc2 next-20230718] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Rafa-Mi-ecki/Revert-nvmem-add-new-config-option/20230718-170441 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next patch link: https://lore.kernel.org/r/20230718084804.20139-1-zajec5%40gmail.com patch subject: [PATCH] Revert "nvmem: add new config option" config: i386-randconfig-i002-20230718 (https://download.01.org/0day-ci/archive/20230718/202307182316.AVNL1wNs-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230718/202307182316.AVNL1wNs-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307182316.AVNL1wNs-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/mtd/mtdcore.c: In function 'mtd_nvmem_add': >> drivers/mtd/mtdcore.c:542:29: warning: unused variable 'node' [-Wunused-variable] 542 | struct device_node *node = mtd_get_of_node(mtd); | ^~~~ vim +/node +542 drivers/mtd/mtdcore.c c4dfa25ab307a2 Alban Bedel 2018-11-13 539 c4dfa25ab307a2 Alban Bedel 2018-11-13 540 static int mtd_nvmem_add(struct mtd_info *mtd) c4dfa25ab307a2 Alban Bedel 2018-11-13 541 { 658c4448bbbf02 Christian Marangi 2021-03-12 @542 struct device_node *node = mtd_get_of_node(mtd); c4dfa25ab307a2 Alban Bedel 2018-11-13 543 struct nvmem_config config = {}; c4dfa25ab307a2 Alban Bedel 2018-11-13 544 75f32f4b9d5263 Miquel Raynal 2023-03-07 545 config.id = NVMEM_DEVID_NONE; c4dfa25ab307a2 Alban Bedel 2018-11-13 546 config.dev = &mtd->dev; 7b01b7239d0dc9 Ricardo Ribalda 2020-04-30 547 config.name = dev_name(&mtd->dev); c4dfa25ab307a2 Alban Bedel 2018-11-13 548 config.owner = THIS_MODULE; c4dfa25ab307a2 Alban Bedel 2018-11-13 549 config.reg_read = mtd_nvmem_reg_read; c4dfa25ab307a2 Alban Bedel 2018-11-13 550 config.size = mtd->size; c4dfa25ab307a2 Alban Bedel 2018-11-13 551 config.word_size = 1; c4dfa25ab307a2 Alban Bedel 2018-11-13 552 config.stride = 1; c4dfa25ab307a2 Alban Bedel 2018-11-13 553 config.read_only = true; c4dfa25ab307a2 Alban Bedel 2018-11-13 554 config.root_only = true; 6c7621890995d0 Christophe Kerello 2022-02-20 555 config.ignore_wp = true; c4dfa25ab307a2 Alban Bedel 2018-11-13 556 config.priv = mtd; c4dfa25ab307a2 Alban Bedel 2018-11-13 557 c4dfa25ab307a2 Alban Bedel 2018-11-13 558 mtd->nvmem = nvmem_register(&config); c4dfa25ab307a2 Alban Bedel 2018-11-13 559 if (IS_ERR(mtd->nvmem)) { c4dfa25ab307a2 Alban Bedel 2018-11-13 560 /* Just ignore if there is no NVMEM support in the kernel */ 5cab06156aade1 Miquel Raynal 2023-03-07 561 if (PTR_ERR(mtd->nvmem) == -EOPNOTSUPP) c4dfa25ab307a2 Alban Bedel 2018-11-13 562 mtd->nvmem = NULL; 5cab06156aade1 Miquel Raynal 2023-03-07 563 else 5cab06156aade1 Miquel Raynal 2023-03-07 564 return dev_err_probe(&mtd->dev, PTR_ERR(mtd->nvmem), 5cab06156aade1 Miquel Raynal 2023-03-07 565 "Failed to register NVMEM device\n"); c4dfa25ab307a2 Alban Bedel 2018-11-13 566 } c4dfa25ab307a2 Alban Bedel 2018-11-13 567 c4dfa25ab307a2 Alban Bedel 2018-11-13 568 return 0; c4dfa25ab307a2 Alban Bedel 2018-11-13 569 } c4dfa25ab307a2 Alban Bedel 2018-11-13 570 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki