Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1565895pjr; Mon, 18 May 2020 16:33:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/sD+Udgq7hbubdOWhZuO/S0UY85gLYB4McljY9wMNEr0Cyr34FDUMbGHZUl2sxy9Moh2j X-Received: by 2002:aa7:db4c:: with SMTP id n12mr15198301edt.99.1589844837615; Mon, 18 May 2020 16:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589844837; cv=none; d=google.com; s=arc-20160816; b=s/1y5lwhSTjRM5JNDOILW9pXXDJwmSRayXryy+cgeq2mmMS/iJHIB5vceL12VBM6WQ QxvXzQdgcp+o06GUpxLT8VEX/La2ef4moVAsImZeuaCq4zcwlwRwfdWQ40xGVHHROihm hwDA+bprgz88KB57+53SdhEjyYZ8inQDsYx2uIlMak+Y+rgvu/Qs+cDwHO8lnwXR2+wQ TiAddcftUDgf+BqBsm4VrmS8dVmtLfKF+H1IU6ixPLj1N5Axn0uVzqVABM1wTf6i8zHS ty0J1bemzQef+xQ25v58ObNqqm23a5W0X66PBEzlsmHPQOtgEsq+/8YKfY48QG6g1/Dh 04cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4NrexrNb88DzhWjg1accwpxlE36qK5WbdKw5yFdpiOY=; b=Dcllb8pOuoiaRx7CkVP+X+SFuK7lObh7wsxP7dHhgiuPptV5zIv3kqaTDzBEeA4jUz RRYajtRVPqtdkkhyF9y2z5TDhEXBwQ/vzVaA0dfoxiFx9OTDacoT8sr9OOJY8tciC1Ng QVEc2xy8Q4iqJcWPuu8IRG+xlTrKPTLrdT0qD7q0Exw7i97LxWchelmcyqos/DOueQGv Y1vXUDLQLvXr6aqSZ5tzS//11mh5i2zjPrDRPkAroSPuSrolmUSnZUAFoVzneENUVStr zn36nK2LdH8IGJT0Ge9wKMtMSP9vWXdcWbKfRACiV042I9kQmPsNHh1MQZoiG+oj0gfX 6q1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bhIr6KoP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si6851583edq.435.2020.05.18.16.33.35; Mon, 18 May 2020 16:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bhIr6KoP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbgERLYE (ORCPT + 99 others); Mon, 18 May 2020 07:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbgERLYD (ORCPT ); Mon, 18 May 2020 07:24:03 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D12E3C061A0C for ; Mon, 18 May 2020 04:24:01 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id f9so1151639uaq.2 for ; Mon, 18 May 2020 04:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4NrexrNb88DzhWjg1accwpxlE36qK5WbdKw5yFdpiOY=; b=bhIr6KoP/7JDIFZg1/+ZJ7uB6Eo9CU1AHTOjy0RHtzeKoIXN4B8VDJFJfXceiP6WPI 5KoDw0IKcM7T9T2Y1Tpv1T9izX6ADCWSKvxniWt3I47DFWSkEzd+E6rlQzNSPud8gv0A ptjAyBqcVVoGuFxzS3hJf6RB8vD0ZPhOmdWuy68O9hXNmoGOwxfHkQRKhN8RJBIg9HWd ifb7HH0WM+H1evmtDuSa7Tuuno0O5JpT3i5UOsmcFdmJumgoStOIi7p5avLb22xSDROE ILTz9YQKvwc/+ZdSj/PAojpBHM4Snyc6S9t6s1h+xrEzqK08DK1y+6gJ6JodWtXtCvju 983g== 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=4NrexrNb88DzhWjg1accwpxlE36qK5WbdKw5yFdpiOY=; b=Ocdutg2aQgt8+Wy134hUFp/J0K/TSRE0dwaTHgPWX/1DUUaCFvFLkDFx0o3/3phpTq 852mKnz8HGKsg9yP5EQhTrwPXErkYnsS8kwLFXSbZdTYvMDNKXj5dmR4eR3jiqcXBVyV EPpEhwL4tmxPZ0xPf14It7/ETvPasfl157ZCB4t1NlMD5kR/9r7f+lm3uUnNsMO2Q47o uD902pl4gAzlWU5wtPIs2XWy1mBJykA808d5KOcF6B9U68gkr6AnxYm7YGtW90MnE3ja D4EbtOcmUx9V3vj0KrnNUJUP4NgVBRfMaf6xmANYT0SoDMBYp+ehWmE+9rT0VFFngAJk S4dQ== X-Gm-Message-State: AOAM531K/YhsgPgULULS+pUYm+d9/rdRFC+t67w8Qx3ybrPJHvSLRZlg eeYsK/8cbvhFCLI3z750Bif3rypRv5KS2pmpmShFuw== X-Received: by 2002:a9f:26e2:: with SMTP id 89mr10991422uay.104.1589801041024; Mon, 18 May 2020 04:24:01 -0700 (PDT) MIME-Version: 1.0 References: <20200517222907.1277787-1-martin.blumenstingl@googlemail.com> <20200517222907.1277787-2-martin.blumenstingl@googlemail.com> In-Reply-To: <20200517222907.1277787-2-martin.blumenstingl@googlemail.com> From: Ulf Hansson Date: Mon, 18 May 2020 13:23:24 +0200 Message-ID: Subject: Re: [PATCH 2/2] mmc: host: meson-mx-sdhc: don't use literal 0 to initialize structs To: Martin Blumenstingl Cc: "linux-mmc@vger.kernel.org" , "open list:ARM/Amlogic Meson..." , Linux ARM , Linux Kernel Mailing List , kbuild test robot Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 May 2020 at 00:29, Martin Blumenstingl wrote: > > Kbuild test robot reports the following warning in lines 56 and 87 of > drivers/mmc/host/meson-mx-sdhc-clkc.c: > Using plain integer as NULL pointer > > Drop the integer value from the struct initialization to fix that > warning. This will still ensure that the compiler will zero out the > struct so it's in a well-defined state. > > Fixes: 53ded1b676d199 ("mmc: host: meson-mx-sdhc: new driver for the Amlogic Meson SDHC host") > Reported-by: kbuild test robot > Signed-off-by: Martin Blumenstingl Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/meson-mx-sdhc-clkc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/meson-mx-sdhc-clkc.c b/drivers/mmc/host/meson-mx-sdhc-clkc.c > index ab0d6c68a078..e1f29b279123 100644 > --- a/drivers/mmc/host/meson-mx-sdhc-clkc.c > +++ b/drivers/mmc/host/meson-mx-sdhc-clkc.c > @@ -53,7 +53,7 @@ static int meson_mx_sdhc_clk_hw_register(struct device *dev, > const struct clk_ops *ops, > struct clk_hw *hw) > { > - struct clk_init_data init = { 0 }; > + struct clk_init_data init = { }; > char clk_name[32]; > > snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dev), > @@ -84,7 +84,7 @@ static int meson_mx_sdhc_gate_clk_hw_register(struct device *dev, > int meson_mx_sdhc_register_clkc(struct device *dev, void __iomem *base, > struct clk_bulk_data *clk_bulk_data) > { > - struct clk_parent_data div_parent = { 0 }; > + struct clk_parent_data div_parent = { }; > struct meson_mx_sdhc_clkc *clkc_data; > int ret; > > -- > 2.26.2 >