Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10863465pxu; Wed, 30 Dec 2020 14:03:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAw2k4NBo97jimnW7QU5dasGYSnuM/5uQTkfPZlidTuXEuosNeHhIbsnyVjWlirfzaOl3F X-Received: by 2002:aa7:df0f:: with SMTP id c15mr53148628edy.354.1609365809270; Wed, 30 Dec 2020 14:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609365809; cv=none; d=google.com; s=arc-20160816; b=m20Qy3yeUT4YPDUw2nNEZwcXVebCU/wKxtLbQteS7adRt9yMlMDxEYJD3U+xZeDawP IIeoh6SMzXyvLzj3/idptCiT4yYX3hZNRRxYI/9xfF1m0Dxo4DvpSTbywL2wmDhIF8qs IEW+ASD/RyzbHZyLdR4hqgq9t7rBMWU8lQkLSSoM776l9jZj1ITDyZGqdrF54DwRthVZ 36wKfdp+SKVTNCrmAT4l7l+kkAbUdY7L3dMrGXtDKciLs8Uvmp+txLiKGCgdlmZr5QCG KW7aCwN1+quVMn0t4mR/ckoT/yGLkE+DRF9aaifT22O32ruLcsWWgo12hC5Efw3aGVaH g93A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1fWraQed1ezVslrmyYtir21Zwsyr02WdeQHLNKtfwD4=; b=Bl/gD2DI72Cf/D2yn89o0C0SVu3QAJEBGG1AztwYW6JxP4QyRE0x1H9CZ4eg4RBLyG HeKfKn5ZvYYUDJM0PwAYxEE0nFyGbWRjCAyEDwGd0o7NsvKg59OmR/xaz+C7SHICdQ4p oXOV3gk1jHQsTK6CeTmc344ggHbLSfjZMpxg0Qt2yo84jPxpg3lKHxUwWQYjPheo75VW ouRAzvveoh2+oVQ+stfZKTbjb6cMzZiD5C3mS04/N4wLbyocUnKO4/FH49Rcrh4+D3vb CKdYPZZRGEjLfGsd2FhqvmBsHy4X3RrjQmNsPz+9/Gck1vcswXEg2RnpMU6dtSJHuWxN gbtg== 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 n11si21305570eja.511.2020.12.30.14.03.06; Wed, 30 Dec 2020 14:03:29 -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; 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 S1726317AbgL3WBW (ORCPT + 99 others); Wed, 30 Dec 2020 17:01:22 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:59617 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbgL3WBW (ORCPT ); Wed, 30 Dec 2020 17:01:22 -0500 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 93C3420000A; Wed, 30 Dec 2020 22:00:39 +0000 (UTC) Date: Wed, 30 Dec 2020 23:00:38 +0100 From: Alexandre Belloni To: Nathan Chancellor Cc: Nicolas Pitre , Arnd Bergmann , Nick Desaulniers , Boris Brezillon , Arnd Bergmann , linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] i3c/master/mipi-i3c-hci: re-fix __maybe_unused attribute Message-ID: <20201230220038.GC110311@piout.net> References: <20201230154304.598900-1-arnd@kernel.org> <20201230214053.GB110311@piout.net> <20201230214321.GA1961980@ubuntu-m3-large-x86> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230214321.GA1961980@ubuntu-m3-large-x86> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/12/2020 14:43:21-0700, Nathan Chancellor wrote: > On Wed, Dec 30, 2020 at 10:40:53PM +0100, Alexandre Belloni wrote: > > On 30/12/2020 16:23:56-0500, Nicolas Pitre wrote: > > > On Wed, 30 Dec 2020, Arnd Bergmann wrote: > > > > > > > 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 > > > > > > Acked-by: Nicolas Pitre > > > > > > This might be the 3rd patch from 3 different people fixing the same > > > thing. Looks like I3C maintainer is on vacation. Please feel free to > > > send this trivial fix upstream some other way. > > > > > > > Isn't it already upstream? > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=95393f3e07ab53855b91881692a4a5b52dcdc03c > > This patch is fixing that one, the attribute was added between the > struct type, causing a new warning for clang. > Ah yes, even after reading that 3 times, I got it wrong. > I sent a fix for this earlier too, I do not care which one goes in as > long as one does so: > > Reviewed-by: Nathan Chancellor > I was going to review and apply yours now that I have access to the i3c repo. I must admit I didn't have a look at i3c patches until now and the holiday season is not helping. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com