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.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable 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 4352BC38BE2 for ; Mon, 24 Feb 2020 20:25:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C2BD21744 for ; Mon, 24 Feb 2020 20:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbgBXUZC (ORCPT ); Mon, 24 Feb 2020 15:25:02 -0500 Received: from mga02.intel.com ([134.134.136.20]:50510 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbgBXUZC (ORCPT ); Mon, 24 Feb 2020 15:25:02 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 12:25:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,481,1574150400"; d="scan'208";a="231233867" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 24 Feb 2020 12:24:57 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1j6KHg-0001Dc-NC; Tue, 25 Feb 2020 04:24:56 +0800 Date: Tue, 25 Feb 2020 04:24:16 +0800 From: kbuild test robot To: Maxime Ripard Cc: kbuild-all@lists.01.org, Nicolas Saenz Julienne , Eric Anholt , dri-devel@lists.freedesktop.org, linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dave Stevenson , Tim Gover , Phil Elwell , Maxime Ripard , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: Re: [PATCH 22/89] clk: bcm: rpi: Discover the firmware clocks Message-ID: <202002250442.Rqp31Tng%lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on robh/for-next anholt/for-next v5.6-rc3 next-20200224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-vc4-Support-BCM2711-Display-Pipeline/20200224-172730 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next reproduce: # apt-get install sparse # sparse version: v0.6.1-173-ge0787745-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/clk/bcm/clk-raspberrypi.c:365:56: sparse: sparse: incorrect type in argument 2 (different base types) >> drivers/clk/bcm/clk-raspberrypi.c:365:56: sparse: expected unsigned int parent >> drivers/clk/bcm/clk-raspberrypi.c:365:56: sparse: got restricted __le32 [usertype] parent drivers/clk/bcm/clk-raspberrypi.c:365:70: sparse: sparse: incorrect type in argument 3 (different base types) >> drivers/clk/bcm/clk-raspberrypi.c:365:70: sparse: expected unsigned int id >> drivers/clk/bcm/clk-raspberrypi.c:365:70: sparse: got restricted __le32 [usertype] id >> drivers/clk/bcm/clk-raspberrypi.c:369:31: sparse: sparse: restricted __le32 degrades to integer drivers/clk/bcm/clk-raspberrypi.c:370:33: sparse: sparse: restricted __le32 degrades to integer vim +365 drivers/clk/bcm/clk-raspberrypi.c 345 346 static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi, 347 struct clk_hw_onecell_data *data) 348 { 349 struct rpi_firmware_get_clocks_response *clks; 350 size_t clks_size = NUM_FW_CLKS * sizeof(*clks); 351 int ret; 352 353 clks = devm_kzalloc(rpi->dev, clks_size, GFP_KERNEL); 354 if (!clks) 355 return -ENOMEM; 356 357 ret = rpi_firmware_property(rpi->firmware, RPI_FIRMWARE_GET_CLOCKS, 358 clks, clks_size); 359 if (ret) 360 return ret; 361 362 while (clks->id) { 363 struct clk_hw *hw; 364 > 365 hw = raspberrypi_clk_register(rpi, clks->parent, clks->id); 366 if (IS_ERR(hw)) 367 return PTR_ERR(hw); 368 > 369 data->hws[clks->id] = hw; 370 data->num = clks->id + 1; 371 clks++; 372 } 373 374 return 0; 375 } 376 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org