From: kernel test robot <lkp@intel.com>
To: Hui-Ping Chen <hpchen0nvt@gmail.com>,
miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
sumit.semwal@linaro.org, christian.koenig@amd.com,
esben@geanix.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org,
Hui-Ping Chen <hpchen0nvt@gmail.com>
Subject: Re: [PATCH 2/2] mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC
Date: Mon, 12 Aug 2024 20:52:33 +0800 [thread overview]
Message-ID: <202408122007.quTiDXPR-lkp@intel.com> (raw)
In-Reply-To: <20240812030045.20831-3-hpchen0nvt@gmail.com>
Hi Hui-Ping,
kernel test robot noticed the following build warnings:
[auto build test WARNING on mtd/nand/next]
[also build test WARNING on linus/master v6.11-rc3 next-20240812]
[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/Hui-Ping-Chen/dt-bindings-mtd-nuvoton-ma35d1-nand-add-new-bindings/20240812-110259
base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next
patch link: https://lore.kernel.org/r/20240812030045.20831-3-hpchen0nvt%40gmail.com
patch subject: [PATCH 2/2] mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240812/202408122007.quTiDXPR-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240812/202408122007.quTiDXPR-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408122007.quTiDXPR-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/mtd/nand/raw/nuvoton_ma35d1_nand.c:991:29: warning: cast from 'irqreturn_t (*)(int, struct ma35_nand_info *)' (aka 'enum irqreturn (*)(int, struct ma35_nand_info *)') to 'irq_handler_t' (aka 'enum irqreturn (*)(int, void *)') converts to incompatible function type [-Wcast-function-type-strict]
991 | if (request_irq(nand->irq, (irq_handler_t)&ma35_nand_irq,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +991 drivers/mtd/nand/raw/nuvoton_ma35d1_nand.c
921
922 static int ma35_nand_probe(struct platform_device *pdev)
923 {
924 struct ma35_nand_info *nand;
925 struct nand_chip *chip;
926 struct mtd_info *mtd;
927 int retval = 0;
928
929 nand = devm_kzalloc(&pdev->dev, sizeof(struct ma35_nand_info), GFP_KERNEL);
930 if (!nand)
931 return -ENOMEM;
932
933 nand_controller_init(&nand->controller);
934
935 nand->regs = devm_platform_ioremap_resource(pdev, 0);
936 if (IS_ERR(nand->regs))
937 return PTR_ERR(nand->regs);
938
939 nand->dev = &pdev->dev;
940 chip = &nand->chip;
941 mtd = nand_to_mtd(chip);
942 nand_set_controller_data(chip, nand);
943 nand_set_flash_node(chip, pdev->dev.of_node);
944
945 mtd->priv = chip;
946 mtd->owner = THIS_MODULE;
947 mtd->dev.parent = &pdev->dev;
948
949 nand->clk = of_clk_get(pdev->dev.of_node, 0);
950 if (IS_ERR(nand->clk))
951 return dev_err_probe(&pdev->dev, PTR_ERR(nand->clk),
952 "failed to find nand clock\n");
953
954 retval = clk_prepare_enable(nand->clk);
955 if (retval < 0) {
956 dev_err(&pdev->dev, "Failed to enable clock\n");
957 return -ENXIO;
958 }
959
960 nand->chip.controller = &nand->controller;
961
962 chip->legacy.cmdfunc = ma35_nand_command;
963 chip->legacy.waitfunc = ma35_waitfunc;
964 chip->legacy.read_byte = ma35_nand_read_byte;
965 chip->legacy.select_chip = ma35_nand_select_chip;
966 chip->legacy.read_buf = ma35_read_buf_dma;
967 chip->legacy.write_buf = ma35_write_buf_dma;
968 chip->legacy.dev_ready = ma35_nand_devready;
969 chip->legacy.chip_delay = 25; /* us */
970
971 /* Read OOB data first, then HW read page */
972 chip->ecc.hwctl = ma35_nand_enable_hwecc;
973 chip->ecc.calculate = ma35_nand_calculate_ecc;
974 chip->ecc.correct = ma35_nand_correct_data;
975 chip->ecc.write_page = ma35_nand_write_page_hwecc;
976 chip->ecc.read_page = ma35_nand_read_page_hwecc_oob_first;
977 chip->ecc.read_oob = ma35_nand_read_oob_hwecc;
978 chip->options |= (NAND_NO_SUBPAGE_WRITE | NAND_USES_DMA);
979
980 ma35_nand_initialize(nand);
981 platform_set_drvdata(pdev, nand);
982
983 nand->controller.ops = &ma35_nand_controller_ops;
984
985 nand->irq = platform_get_irq(pdev, 0);
986 if (nand->irq < 0) {
987 dev_err(&pdev->dev, "failed to get platform irq\n");
988 return -EINVAL;
989 }
990
> 991 if (request_irq(nand->irq, (irq_handler_t)&ma35_nand_irq,
992 IRQF_TRIGGER_HIGH, "ma35d1-nand", nand)) {
993 dev_err(&pdev->dev, "Error requesting NAND IRQ\n");
994 return -ENXIO;
995 }
996
997 retval = nand_scan(chip, 1);
998 if (retval)
999 return retval;
1000
1001 if (mtd_device_register(mtd, nand->parts, nand->nr_parts)) {
1002 nand_cleanup(chip);
1003 devm_kfree(&pdev->dev, nand);
1004 return retval;
1005 }
1006
1007 pr_info("ma35-nfi: registered successfully! mtdid=%s\n", mtd->name);
1008
1009 return retval;
1010 }
1011
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-08-12 12:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 3:00 [PATCH 0/2] Add support for nuvoton ma35 nand controller Hui-Ping Chen
2024-08-12 3:00 ` [PATCH 1/2] dt-bindings: mtd: nuvoton,ma35d1-nand: add new bindings Hui-Ping Chen
2024-08-12 6:25 ` Krzysztof Kozlowski
2024-08-12 9:02 ` Hui-Ping Chen
2024-08-12 9:12 ` Krzysztof Kozlowski
2024-08-12 9:39 ` Hui-Ping Chen
2024-08-12 3:00 ` [PATCH 2/2] mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC Hui-Ping Chen
2024-08-12 6:30 ` Krzysztof Kozlowski
2024-08-12 9:10 ` Hui-Ping Chen
2024-08-12 9:13 ` Krzysztof Kozlowski
2024-08-12 9:46 ` Hui-Ping Chen
2024-08-12 12:52 ` kernel test robot [this message]
2024-08-13 21:59 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202408122007.quTiDXPR-lkp@intel.com \
--to=lkp@intel.com \
--cc=christian.koenig@amd.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=esben@geanix.com \
--cc=hpchen0nvt@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=miquel.raynal@bootlin.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=richard@nod.at \
--cc=robh@kernel.org \
--cc=sumit.semwal@linaro.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).