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=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 2CA6AC433DB for ; Thu, 31 Dec 2020 17:43:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE5AE223DB for ; Thu, 31 Dec 2020 17:43:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727220AbgLaRnG (ORCPT ); Thu, 31 Dec 2020 12:43:06 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:52541 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbgLaRnF (ORCPT ); Thu, 31 Dec 2020 12:43:05 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 741A7C0003; Thu, 31 Dec 2020 17:42:23 +0000 (UTC) From: Alexandre Belloni To: Nathan Chancellor Cc: Alexandre Belloni , linux-i3c@lists.infradead.org, Nick Desaulniers , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Nicolas Pitre Subject: Re: [PATCH] i3c/master/mipi-i3c-hci: Fix position of __maybe_unused in i3c_hci_of_match Date: Thu, 31 Dec 2020 18:42:23 +0100 Message-Id: <160943653614.132002.12499200411415721355.b4-ty@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201222025931.3043480-1-natechancellor@gmail.com> References: <20201222025931.3043480-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Dec 2020 19:59:31 -0700, Nathan Chancellor wrote: > Clang warns: > > ../drivers/i3c/master/mipi-i3c-hci/core.c:780:21: warning: attribute > declaration must precede definition [-Wignored-attributes] > static const struct __maybe_unused of_device_id i3c_hci_of_match[] = { > ^ > ../include/linux/compiler_attributes.h:267:56: note: expanded from macro > '__maybe_unused' > #define __maybe_unused __attribute__((__unused__)) > ^ > ../include/linux/mod_devicetable.h:262:8: note: previous definition is > here > struct of_device_id { > ^ > 1 warning generated. > > [...] Applied, thanks! [1/1] i3c/master/mipi-i3c-hci: Fix position of __maybe_unused in i3c_hci_of_match commit: 291b5c9870fc546376d69cf792b7885cd0c9c1b3 Best regards, -- Alexandre Belloni