Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10854701pxu; Wed, 30 Dec 2020 13:45:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJybrdhjH+/89T8bFbQt7pXa9xa++xtUWaukTUtFm+CDmZ39CptjqOBISWsPDm0m9Sts8Wa/ X-Received: by 2002:a17:906:8255:: with SMTP id f21mr50262782ejx.265.1609364727557; Wed, 30 Dec 2020 13:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609364727; cv=none; d=google.com; s=arc-20160816; b=XnFdhI/JXZPns3gih0oBwyvKRLOVMWuiJOEzWzrtLtQQDHD6SSv+MrQ/7cDRz/M84K gbGrXJI+hTLJNyBnVonUFZmrop2gI2EsZGpXH7J8WGVnIVpFbZz1Q7t3JdofKsA1D3hs d4Dvt64MorIRKRu74uBfEL635xYUhtY/5+kqmB08bUeBl8HSN75VeTTcbQEoowfgiYcC ajueTHU991mwieNfqMoqMaDcUjMdbBJf3UB4VRrtGpGtrJaXfrUBiwsvLBW1j6uLTSAc r5HsPuoQnNJr44EICRwSlKmz7XvHXcWqD1y1WUCEW8jx4xtr5kmp4/PolSVN18Ees/Re HtZg== 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:dkim-signature; bh=MHAGjQt9ritApkqt6RGeoNtDT77YQoOVvjyTVHtT+3g=; b=kHwUEvZSM9EVnsjiNVsTGko3N+k1Cr5Ah/ptB7+oXbfyOSDa7ww18qAvwEDdBCHeTI BMZURgoHMNfhisWpcCQxqaH0lIGMVZy/qBYjUipfVr+R3ppexmwLXNluOFH5gf+73Sxv ZiXnWnNSQ/hGT3QKVaLwE/VCrpl+a0rQXHG/kWsZjaG8g11lGWM6ApSbjdbrUHwInQ+d j0hnEF/QKSO8ux7EPDgHy2lnrrSzB7p320wbmxP1WigFwKXZBGuEjyzrVt8iWkHVPN5N Q5oeYuLIChnmFEj+Mgt8E0M/BcKqQDUD/Kdhk1LnU4q0idR3cX6T791AWrnE37jB8Jcz 4elw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gdhHhCOS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si22555346ejn.17.2020.12.30.13.45.04; Wed, 30 Dec 2020 13:45:27 -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=@gmail.com header.s=20161025 header.b=gdhHhCOS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbgL3VoF (ORCPT + 99 others); Wed, 30 Dec 2020 16:44:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgL3VoE (ORCPT ); Wed, 30 Dec 2020 16:44:04 -0500 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8540C061573 for ; Wed, 30 Dec 2020 13:43:24 -0800 (PST) Received: by mail-qk1-x731.google.com with SMTP id z11so15051915qkj.7 for ; Wed, 30 Dec 2020 13:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MHAGjQt9ritApkqt6RGeoNtDT77YQoOVvjyTVHtT+3g=; b=gdhHhCOSKiJu9ssv21NlgVOZgjqGA7klsE/doI6LO95h1q147zlEf0ia1QPmCWpaOW WOwTMR6GFVbSJMxcm58ILD9HcSUynOYxTyYL3sdj7OQdqRPDZ2EtLsSjKlWd2DFrrwCb 2kqLBKnRIYZWEd1wth0vzRC04GeyAgZxZ+vF6yByxfbzBzFNkmjwKrvQPkKYmPXWrPkk a4LDNiBGXkhg4Dju4Gf8EW0x7WLfmJxvQR04hZKKc9Y8o+xRz5GJhsBiiFCpm5SKz+oj BiHY47x1aXNW9xdoM/BYCxta7+phX38YY5BPX9sy3JxczaR7nK5p9se1J5J4UXpO9GHt z4kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MHAGjQt9ritApkqt6RGeoNtDT77YQoOVvjyTVHtT+3g=; b=ASu9AWcy2g671cgitpHTMVxE4BVYqqhFqNGFruiM2JcOzpL/lteu5fFNMtmiiu/HN4 1BYdzDtnBMhEMrmlOElEIaaJN5wHhYy0Or4ZXBim5jqqUqcnHX8h8X78co5txLXnKaWO CxQlJjCbi6v9K3D/zONbmbgBi9LDXiFbV4k1Pi0NBhPu+aTKVK2ADRrUXajM7tWbL7Sq DEJHVHckOesyVjymu9RwJQziqZfADKPRoX7C65lO2XGrvHRYXn2PuT8COdpfyLw7F6G+ ZJ7epl8Zb2IqX/eBmuzAZp37StIWng/KPI/vMs2ZNWFv4ILg5pjGOaJQvPiXAmgX98uI KZGw== X-Gm-Message-State: AOAM531C/ZgqzgLYpYxd5lChiLx006b19RHpvJHuc/U1f5VpBC6Sb8oi xJCgAuZmmCMLEz2L1xpOnHo= X-Received: by 2002:a37:e108:: with SMTP id c8mr55768855qkm.305.1609364603815; Wed, 30 Dec 2020 13:43:23 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id b15sm22343588qta.75.2020.12.30.13.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Dec 2020 13:43:23 -0800 (PST) Date: Wed, 30 Dec 2020 14:43:21 -0700 From: Nathan Chancellor To: Alexandre Belloni 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: <20201230214321.GA1961980@ubuntu-m3-large-x86> References: <20201230154304.598900-1-arnd@kernel.org> <20201230214053.GB110311@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230214053.GB110311@piout.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 Cheers, Nathan