Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10641178pxu; Wed, 30 Dec 2020 07:45:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDYqc4Gq3NHTzTZWlhEx96WHjWTNf9FRgYsQPSQgyLOnnYCSw1VOUJlrElxJ6QtCI21+AL X-Received: by 2002:a05:6402:308b:: with SMTP id de11mr50375102edb.205.1609343119440; Wed, 30 Dec 2020 07:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609343119; cv=none; d=google.com; s=arc-20160816; b=pMrhhsehFFaVn6NmEQwVlKRk/wf9hC8f09a0dLNqeISz5Or8K8p92qeCRWysuaPadr duglvYI0J3WnQnP651zFuauSUyzwRqnaUTUuwMNpOEQfpIYv7hvKRlkNr5aTYPWbCGld Y9JTn+BJjNgOv1xc6332P9nCg87TdNNjjGj3UxMayY6OOf7PRLxOq+S7zSBmtseBiswM 8uE+ty0rDQGlE2aJvKQIOn2lFjnSQyzA8/PLCk8rHDU+K71Br5KO8M6PSxw9T8tm8CCg PPC9vT5iLJb+//mg4m+4+/7Y+NCsg2rREh7FL3mBpHZyhySF3gQSbZ2oMG5sD6TZ7NRl Ek/w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=2h+gRDaCJNFLv8MigIVfkxtYktsryplrHq/gfBLKcV8=; b=gjN/ueoltZEy/I5ciH75enFXU/febnhFkSen7yw8AYBIWIRD7UkkzjvBizBCfGjneX j5poBphtv/u63aTll5UUO7lQ0cX2d9zPz3Z3bZi1RJoDj3vvqv+KLW6zzDPsyeGFyEvs Y6FRczDZ2Iw0Zk2HJl0kimNU8dMAYRY6Vsd1rzAA0qiXFzn2g6PsylQyKzP1ZNJDWYm1 OkJ+4wSLfkeo7Q8woJZXg4dizac+R4ujqfAkWUZQColDtLn8jAux9LS1sfRBbR7n1Blo TRQ9VKxGIwm2ReSIkDxd+Rgqrf+DPOCoXM8LawqR8sV7w+aQ7VSCg867qXwu01i74FmA l/iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bKxeAX1e; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si24009587edv.542.2020.12.30.07.44.56; Wed, 30 Dec 2020 07:45:19 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=bKxeAX1e; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726290AbgL3Pnu (ORCPT + 99 others); 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