Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3084016pxk; Mon, 28 Sep 2020 08:01:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5YxOwtmHHY/oJIrqjPFXC6rg/rSo/BSiZCy2sVAlvaaes3YApv6pIcT77RqwIX3bp63ZY X-Received: by 2002:a17:906:8508:: with SMTP id i8mr2131511ejx.390.1601305301564; Mon, 28 Sep 2020 08:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601305301; cv=none; d=google.com; s=arc-20160816; b=ZLppNkHktrlQmnrfBB79DIERYLrp3yFIpKna9Pc54nRnBZOQtodBfJv6ExL6VerGdD Pf537T2EJTaB2Brn3CIMxfxH6b+qJQBZXmK2QzNDGGnPOoj/y0BfkUpcA31nwBZDPPvA xZxagXe27FmLsT/6CWuPACj3ekeEEwTOQyvugGvu59qr/MRlY6JYCArqLLyW6hAeVnUd fvfNSbUz1cpPNmzLqkHtiZEfXS8WKEDhf7NG6pW6cuqNJ1ZPP84aNU35nA5nmyzk3MKp V37XYgyo6fnPvXk5H2vD/DRai+2wgo9fpYdOQl3jdoHb108qkkeSw71rkzgZmSWjXpRO DmhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GZ5RbIZlvhj8XQtbRvQar9PV9S7Cr8Y7Yowsr5TEmN4=; b=bppdAGXjH8P4L4XqjlLWZZ+jj8uARlNXWXRz7Yvkw9bbO4wKtQax+9NpT2q7O5kOfA IroT52nP8NVQvtClgTPiml7MNbLgqUQS58s6lwxhYtk6AkO5T7xqbMBg9uEdlr1299Pg fLqm5JTeeGt21mWcV8T4Ztx57TDiPHIg4QMWQfPfXu6IRCm32xFq3oeeho/XBqN6+j+z D8V4BpfTdO8RE6apFAqYM8E7hRd5xfjYg8JYsOKukBkZA88+FRE/l8fijOpasJgCnSzT oY2TgNbYUX58E+8GmobPD9RewZbpYbeeFSAsJydVpJTBG2vEsAbXKU3f4UecZSgNQT91 FbBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si776415edw.229.2020.09.28.08.01.17; Mon, 28 Sep 2020 08:01:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbgI1PAE (ORCPT + 99 others); Mon, 28 Sep 2020 11:00:04 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42745 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgI1PAC (ORCPT ); Mon, 28 Sep 2020 11:00:02 -0400 X-Originating-IP: 91.224.148.103 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 5DDD91C0004; Mon, 28 Sep 2020 14:59:59 +0000 (UTC) From: Miquel Raynal To: Janusz Krzysztofik , Miquel Raynal Cc: Vignesh Raghavendra , Richard Weinberger , Nick Desaulniers , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, linux-mtd@lists.infradead.org, Nathan Chancellor , kernel test robot Subject: Re: [PATCH] mtd: rawnand: ams-delta: Fix non-OF build warning Date: Mon, 28 Sep 2020 16:59:57 +0200 Message-Id: <20200928145957.9218-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200919080403.17520-1-jmkrzyszt@gmail.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: 57a57f268ec97432fb99df8d8e8957e86b34a9d6 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-09-19 at 08:04:03 UTC, Janusz Krzysztofik wrote: > Commit 7c2f66a960fc ("mtd: rawnand: ams-delta: Add module device > tables") introduced an OF module device table but wrapped a reference > to it with of_match_ptr() which resolves to NULL in non-OF configs. > That resulted in a clang compiler warning on unused variable in non-OF > builds. Fix it. > > drivers/mtd/nand/raw/ams-delta.c:373:34: warning: unused variable 'gpio_nand_of_id_table' [-Wunused-const-variable] > static const struct of_device_id gpio_nand_of_id_table[] = { > ^ > 1 warning generated. > > Fixes: 7c2f66a960fc ("mtd: rawnand: ams-delta: Add module device tables") > Reported-by: kernel test robot > Signed-off-by: Janusz Krzysztofik Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel