Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7224103ybl; Mon, 23 Dec 2019 21:31:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxBJlgirmMU/tCSwtriYA3XcOo6wagL7N17rydsV3AfDKREiDG1tMa872SKrj22OJAm5v6o X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr36973301otq.274.1577165490174; Mon, 23 Dec 2019 21:31:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577165490; cv=none; d=google.com; s=arc-20160816; b=Ib/wTDmxkIwyLetIEyZKYanZTTLMqya5TiGhjlO12I7cdFGI9LyBG32rWZyuLJlgay mAWENqEHdme5A9AVtMkD2UKF1cugE/G9gSU5lMVhxi+7Y+vr+ECBFQwnoOMdMykRWPeo LRtVAbn6ShfWFJsm51c8LnfuL/UvyZLAoFcYgItBVRqGUfZkQ1+AhhRAcK6yehwP8ery xT6MvTSYbOfALLMM/vlMJkERSO0AefyoH89ZMmOsCIRKOUQOR1FHB9LA9WvOWKSJrcY2 f+Q4uJkC0mKDFqaEVwTF1CEBF5RDUEIdu/t4zmpyFafyonSeYj7z5hQ8rJ93M7ciUERl 68eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5mIHnK6BEXabOhDkyqQEsS+XZ4SjPH+Ikpu6wNoKfTY=; b=O7GhSIyBUsjoQi1sj2pK7p5SXDGbCzscZFbcmp/5UMmrnEpnGbqsRQOfrsSMqWKK98 wOXQ1aRvOPLN5c6ehtT8rDvJJq2CR3wmnXnc2HPqJQZPYbbm9XgkeWqmdcNdkiYxVT7q 8jkn7OboMJQd36W23bbcZK32E8SHPsFPM73jNMCeW7zYEims0v2LVN6JWt5pFItTKk3B DhJ1i9rYMSrjGFm2hKBPbT04nnGFhS21irLKhhOFUY5vEAo9faoW/XaWmqUgCF/+AAfx BLspDvPbep4z0pyOK3FbXtkztesvWVTs+w+o9SjC4KWFwWnfznl0hzevn2KhbjfFYpMe taUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OXcMGRKt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si7504668oic.40.2019.12.23.21.31.06; Mon, 23 Dec 2019 21:31:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OXcMGRKt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726047AbfLXF3v (ORCPT + 99 others); Tue, 24 Dec 2019 00:29:51 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33585 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfLXF3u (ORCPT ); Tue, 24 Dec 2019 00:29:50 -0500 Received: by mail-ot1-f65.google.com with SMTP id b18so3168882otp.0; Mon, 23 Dec 2019 21:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5mIHnK6BEXabOhDkyqQEsS+XZ4SjPH+Ikpu6wNoKfTY=; b=OXcMGRKt+jJv0xgFfQWCl/en/y7wiuoYYfovW6TgMPcdLXQVqP3tw5pvmFCEyhHwZP wNFcQtSUDSe6dQMP49m9xNBUFB/s9iIpiv6RKSFKfjSqWtMP2OO+VzWtmCATpb+QyjO9 ZlC4vCaO07aKO/ajAkyUaVpRBFGhQ1QAIEEKyxXosQtMmBqm84ZoxrSU7gEsXjq/egWp 8jzR13+nUBRG6h9dFV4BlBULrmjylMxNpj9Dk2WoSbBPiv1tM02umpcDg8nxuejqflYC 1iZgvwkFxCKhHw1LU07KbJM+Eh2PoCcvRk549DxQS5m7c6NMVds8cQpXvgqjHT5hnTXd 1SsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5mIHnK6BEXabOhDkyqQEsS+XZ4SjPH+Ikpu6wNoKfTY=; b=rPHMcOK09scCQqmMIbV1efI1jt4FVcO+DI9lQ5hTG3O5HTPVGXHhm9PuLiDIkWkmT4 /n+NI8lddIOc1d3ELgUot8MQbUPuBE5eePpqgAtvrAal3O4pCyVNSVb42lt3DOYV9LnB k5uVx/FT4tH/DsrPcYn1V7YI8d9ls3v53FdRpls1ysrXV9GAyM9E+W6Q4ro7vOrKz9U6 yfEsp1zFzgaEsYyYDwyWZl/yMWZwVlSCKRL+Awx5Ux/lxj+kxFk13D4re+3WHwUehgin 14/mIlYo8ytNMZkOhUNERlY5fCHPm/NXx6nSuAXHMvOjPGAq2rXDwn0ZINJTfVOvwLAI 8F5g== X-Gm-Message-State: APjAAAUJetQzAirAc4RLwXTKkf0FGieJu9vReLDnzv9i3Fh80HdC1JKB Q5we2MyaabrOX9G8LRnLaI9Bkpx8 X-Received: by 2002:a05:6830:605:: with SMTP id w5mr34268557oti.79.1577165389758; Mon, 23 Dec 2019 21:29:49 -0800 (PST) Received: from ubuntu-m2-xlarge-x86 ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id p20sm8171116otr.71.2019.12.23.21.29.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Dec 2019 21:29:48 -0800 (PST) Date: Mon, 23 Dec 2019 22:29:47 -0700 From: Nathan Chancellor To: Rahul Tanwar Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com, yixin.zhu@linux.intel.com, qi-ming.wu@intel.com, rtanwar , clang-built-linux@googlegroups.com Subject: Re: [PATCH v2 1/2] clk: intel: Add CGU clock driver for a new SoC Message-ID: <20191224052947.GA54145@ubuntu-m2-xlarge-x86> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 20, 2019 at 11:31:07AM +0800, Rahul Tanwar wrote: > From: rtanwar > > Clock Generation Unit(CGU) is a new clock controller IP of a forthcoming > Intel network processor SoC. It provides programming interfaces to control > & configure all CPU & peripheral clocks. Add common clock framework based > clock controller driver for CGU. > > Signed-off-by: Rahul Tanwar Hi Rahul, The 0day bot reported this warning with clang with your patch, mind taking a look at it since it seems like you will need to do a v2 based on other comments? It seems like the check either needs to be something different or the check should just be removed. Cheers, Nathan On Mon, Dec 23, 2019 at 04:48:54PM +0800, kbuild test robot wrote: > CC: kbuild-all@lists.01.org > In-Reply-To: > References: > TO: Rahul Tanwar > CC: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com > CC: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, andriy.shevchenko@intel.com, yixin.zhu@linux.intel.com, qi-ming.wu@intel.com, rtanwar , Rahul Tanwar > > Hi Rahul, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on clk/clk-next] > [also build test WARNING on robh/for-next v5.5-rc3 next-20191220] > [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/Rahul-Tanwar/clk-intel-Add-a-new-driver-for-a-new-clock-controller-IP/20191223-110300 > base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next > config: x86_64-allyesconfig (attached as .config) > compiler: clang version 10.0.0 (git://gitmirror/llvm_project 891e25b02d760d0de18c7d46947913b3166047e7) > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > > All warnings (new ones prefixed by >>): > > >> drivers/clk/x86/clk-cgu.c:50:20: warning: address of array 'ctx->clk_data.hws' will always evaluate to 'true' [-Wpointer-bool-conversion] > if (ctx->clk_data.hws) > ~~ ~~~~~~~~~~~~~~^~~ > 1 warning generated. > > vim +50 drivers/clk/x86/clk-cgu.c > > 46 > 47 void lgm_clk_add_lookup(struct lgm_clk_provider *ctx, > 48 struct clk_hw *hw, unsigned int id) > 49 { > > 50 if (ctx->clk_data.hws) > 51 ctx->clk_data.hws[id] = hw; > 52 } > 53 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation