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=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 43FCDC433E0 for ; Wed, 30 Dec 2020 15:43:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0EFCF221FA for ; Wed, 30 Dec 2020 15:43:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbgL3Pnu (ORCPT ); Wed, 30 Dec 2020 10:43:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:45428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbgL3Pnu (ORCPT ); Wed, 30 Dec 2020 10:43:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CDD1F20725; Wed, 30 Dec 2020 15:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609342989; bh=RgCdwo79oX9AX/HZWofDnlRT6UBxCbYnV4jmsyma3T0=; h=From:To:Cc:Subject:Date:From; b=bKxeAX1e8hMsEkf8JXE0A37wDH03wJp5JaovJSKjAWRe4aN+LrEsByQ6fKonOKlU8 cwi4dSh/+alGMmflfVNrmQEblGwoVx9/6tsfcShwshV3HkuSkMtm0z179bTrFdnNjD xHgEtCvVvKkIlFiNkO1bkoBis1IFUQSN6Pt5oKn6QNcCPoAYtKy+zmKsXcxlEK86zY 3oHoqTKIKOe2uEUG3N9qzp6wdck2QJ7tsPTQutUvpkMQgcA8bKYbBEr5Xtv8WweUwZ 3vYtLnoUwRfFhJigeb55j9o2rg6AVZMoJyfHtPlarOthxdIhIPW0p6hi7+Hsy+y6wr g7Nn71Bn7VOnA== From: Arnd Bergmann To: Alexandre Belloni , Nathan Chancellor , Nick Desaulniers , Boris Brezillon , Nicolas Pitre Cc: Arnd Bergmann , linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] i3c/master/mipi-i3c-hci: re-fix __maybe_unused attribute Date: Wed, 30 Dec 2020 16:42:50 +0100 Message-Id: <20201230154304.598900-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann clang warns because the added __maybe_unused attribute is in the wrong place: drivers/i3c/master/mipi-i3c-hci/core.c:780:21: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] static const struct __maybe_unused of_device_id i3c_hci_of_match[] = { ^ include/linux/compiler_attributes.h:267:56: note: expanded Fixes: 95393f3e07ab ("i3c/master/mipi-i3c-hci: quiet maybe-unused variable warning") Signed-off-by: Arnd Bergmann --- drivers/i3c/master/mipi-i3c-hci/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mipi-i3c-hci/core.c index 500abd27fb22..1b73647cc3b1 100644 --- a/drivers/i3c/master/mipi-i3c-hci/core.c +++ b/drivers/i3c/master/mipi-i3c-hci/core.c @@ -777,7 +777,7 @@ static int i3c_hci_remove(struct platform_device *pdev) return 0; } -static const struct __maybe_unused of_device_id i3c_hci_of_match[] = { +static const __maybe_unused struct of_device_id i3c_hci_of_match[] = { { .compatible = "mipi-i3c-hci", }, {}, }; -- 2.29.2