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=-5.0 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 F2AC1C742D2 for ; Fri, 12 Jul 2019 17:39:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CBEE1204EC for ; Fri, 12 Jul 2019 17:39:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rhMugX9w"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YDMKme+u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBEE1204EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fOTWpCaiY+dMCTo0IZ/GFi9073y+iui0ZcoQcWHzlis=; b=rhMugX9whXm/Zk oy/j2jcCVq1QXSDDTduVVZArgtQ17pYqy6KV8sTLtpAkQNyREeiCRocmo5WcQ0qbIjlPQoUsSihDy 8VyT9p+Rh1Gd7P2mtckeix9YEqJ0WDvi0aw/Ge2emQWdoBw0pKtGlRRPxZoVRn1K/J6HotwbcoKW6 vglvd/MvcwJSKjMPG79YFhtzTCVkUlDP4X7+B49m9dgSSMJQte2Xis569lS//VSw8GggtyC0C6rkF cKiuEHGP15Lc6bXgUcsn/lq8LFlQEEG1ltdKAi9yFgcDlAy7TjTYyo129q5zcwYE4QwhM1auPDfMX 8UYQbfd/lbDp5lXRDe1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hlzVw-0002lK-9O; Fri, 12 Jul 2019 17:39:20 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hlzVt-0002ku-0P for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2019 17:39:18 +0000 Received: by mail-wm1-x343.google.com with SMTP id v15so9667876wml.0 for ; Fri, 12 Jul 2019 10:39:15 -0700 (PDT) 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=HVK6msgsGJnoGkWkZSEGcmqkYH7ZezIUmPb0VYKKhC8=; b=YDMKme+uIxGp66/wwY/EplhFxPQr/t4DYX0MgTS1iwGFTUYTuH9IPIIscAa4Y49DFn xs0xsYa9MiPtOazvV5Vm55mtSLN1n1uXfZHOm251IXGXvrFDVmjrrF703hHkppChUuCb ut47oyWLOt2h14yHSXbvy8TzgciLeMaX/Bnk/LbXupP4A1wNo9Gc77v3R8ezvmBGCyNA QRs2Ga7xhLQAMb0e5YdR51V5U1HoRMh8sI1cFbBCCrPq/lWBVZOWLNaqBaXme1cycf6j 9hlY0J6oNMqbZGRrV647Did2RmJ6mfaWNK5eag+9rq5OkBQN6EHm/2fA0ZiOnmCv9o2X BjdQ== 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=HVK6msgsGJnoGkWkZSEGcmqkYH7ZezIUmPb0VYKKhC8=; b=YvEJmYiBMxYoUDGfWzwkIHMG8bH8W+EZLLnA/vO7SZVqwzgsSyaQ1DTzpl3y0cvciv i2PSZYUCvolzgFPEJwSZDUf7u14L3O2dZgoEoAM9HOfCLuZ7NQwRbMUrZMbxiwoXVLAh tVexi8V7upPm8NGEGJLqnC80bOUbsZl0d1LmWxKsrfSa/h0E+Z+F/pa4+wZGKgtHcVA9 KyeymEWp8EsduPTaYb8JuMtmY32CstOqW9fbI48mnGx8eMIpC5UemUfDAsW6VZERMjeF pAuwLpm0ihLVvBu7jSNl36qUPU5xjkmnfQ/fGDhMbs4dGZ0j/+CM0tNMEWblX0mg3X9u ZoEA== X-Gm-Message-State: APjAAAVAFAK3YdThJVuZyvHUAyJHgV9I0ipWrKUgPBLv5MQ8EJq/eKmi z48hS8r4AyUfdVNMJMR5a6E= X-Google-Smtp-Source: APXvYqyI3efZEXBVC3rLAHfRJtLgBtlDWsCsQ2i98qK4Rh68IgPXHBx/4Z1VX0O6Ypffde530ZrROw== X-Received: by 2002:a1c:6a0e:: with SMTP id f14mr11253843wmc.154.1562953154626; Fri, 12 Jul 2019 10:39:14 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id c3sm9887021wrx.19.2019.07.12.10.39.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 12 Jul 2019 10:39:13 -0700 (PDT) Date: Fri, 12 Jul 2019 10:39:12 -0700 From: Nathan Chancellor To: Arnd Bergmann Subject: Re: [PATCH] dma: ste_dma40: fix unneeded variable warning Message-ID: <20190712173912.GA127917@archlinux-threadripper> References: <20190712091357.744515-1-arnd@arndb.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190712091357.744515-1-arnd@arndb.de> User-Agent: Mutt/1.12.1 (2019-06-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190712_103917_052135_C3E7E782 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Vinod Koul , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jul 12, 2019 at 11:13:30AM +0200, Arnd Bergmann wrote: > clang-9 points out that there are two variables that depending on the > configuration may only be used in an ARRAY_SIZE() expression but not > referenced: > > drivers/dma/ste_dma40.c:145:12: error: variable 'd40_backup_regs' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] > static u32 d40_backup_regs[] = { > ^ > drivers/dma/ste_dma40.c:214:12: error: variable 'd40_backup_regs_chan' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] > static u32 d40_backup_regs_chan[] = { > > Mark these __maybe_unused to shut up the warning. > > Signed-off-by: Arnd Bergmann Might be worth mentioning that this warning will only appear when CONFIG_PM is unset (they are both used in d40_save_restore_registers). Reviewed-by: Nathan Chancellor _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel