Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp432198ybm; Thu, 28 May 2020 06:34:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTrFAioVX9qR8zbVEgRdRtWVihzL7XfUTu+OnS4XwAPGG/VVlG0ksX3aWBgkAjQb+4Pz/m X-Received: by 2002:a17:906:2e0e:: with SMTP id n14mr2913938eji.545.1590672878137; Thu, 28 May 2020 06:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590672878; cv=none; d=google.com; s=arc-20160816; b=e3irgUaedhmAluFvwquuf5lcugCgJtlrnpsbEQzexvw8z+tidLiVZ/Nf8YXFmnyNv9 HI+Uii6t/4OyVRVF9D7PByEgTXcyYpW2ONSOSIvjwpxOMJ8W1aGb/Z/eo7EqGwAFgWpp /2DinByTfuhKYMit1rC7aE9oxIIaCW/+RnCV/l/8vQBEEqxbgSBeLsa0RCQZlzXHeEz9 jDC934+bxzSK+ocpagwRBORisbmxEzjdgrdC8lxNyAEwLLm8SydiumTwCZxGA0uwxM2U g8QvpNBOwl/3recILpUgS2oblH6W+Wb4nmxZm4Tqvzp+MV1ElkRJf0Bhh4cxSX7+w3jB r+ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=C4bHhMZOigJbKRP/EDJCEGvcLfxdpubgpJoFH9AX/tM=; b=Hd7BbQ2MNhKYQ3cjphcrwDb/6BqhiW/JtHB08X/Ph1DBBs9r1twzpJE9R0BC6Hq9y5 ekyE5awm6M4vTff3K/7tuognpVE3KmldZI+FLrUigP/dGe3wg97WyHBmWZ8C9n7FxbSJ CAFieAUzhxYDJ0eED+pCihAGYWdzT5pOeVDznAsTeH2Mfkl1Ao7NaOR7101LU3cMDlRm f1FkBUuIukWkbzS61YT+fXYI/mRPb/OlMBkfg69XdHDJfkuVkEv8l+QTjUCNRC9oWHPX DmkitqAWnI/22RwtOmTpzK4HRjMKe0VaosXU6gy8XobjMTjyPyErzWdcYdH6A7DODqza ClsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=S7lLmzfT; 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 w23si3528319edr.260.2020.05.28.06.34.14; Thu, 28 May 2020 06:34:38 -0700 (PDT) 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=@ellerman.id.au header.s=201909 header.b=S7lLmzfT; 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 S2390448AbgE1NcI (ORCPT + 99 others); Thu, 28 May 2020 09:32:08 -0400 Received: from ozlabs.org ([203.11.71.1]:48711 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390303AbgE1NcH (ORCPT ); Thu, 28 May 2020 09:32:07 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49XpX46yFYz9sSJ; Thu, 28 May 2020 23:32:04 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1590672725; bh=0sJJ11D8pW/bxn58Yyk4JUx2OhJl8nn/ry1kzGYvIA4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=S7lLmzfTbleQxCIXEp5wejgCFp06D8FgfRoukDWeaIxQOU3NOnI87fXfV2MfQGsts G5cQDAqms4IXi4coEhnmcUtEm3XHi+C3fb+0Is66Jwsqa37eqA88mCn6/WjbQnqo7G HnhSL61dJ5SoCXLdkG6WreBn8C3hnSahyMT9bb+LfCAAzM9jpErN1rA4tkokzUzF41 FZKDt1Fzm3Cp/ofOZAjb/y24PFt0FiulUDihrHqL078aV+nyfStp4iHSr5vXM4mK8Z yoe/xu57ErV+3RKAQ7l6ChDsZJ/mtRi8WFzEQ/LY7EWgkZvVQaw0P2SoRw/dNDcArz JrBWOiOBBCbHg== From: Michael Ellerman To: Nathan Chancellor Cc: Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor , kbuild test robot , Nick Desaulniers Subject: Re: [PATCH v2] powerpc/wii: Fix declaration made after definition In-Reply-To: <20200526205756.2952882-1-natechancellor@gmail.com> References: <20200413190644.16757-1-natechancellor@gmail.com> <20200526205756.2952882-1-natechancellor@gmail.com> Date: Thu, 28 May 2020 23:32:29 +1000 Message-ID: <871rn4jic2.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan Chancellor writes: > A 0day randconfig uncovered an error with clang, trimmed for brevity: > > arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute > declaration must precede definition [-Werror,-Wignored-attributes] > if (!machine_is(wii)) > ^ > > The macro machine_is declares mach_##name but define_machine actually > defines mach_##name, hence the warning. > > To fix this, move define_machine after the machine_is usage. > > Fixes: 5a7ee3198dfa ("powerpc: wii: platform support") > Reported-by: kbuild test robot > Link: https://github.com/ClangBuiltLinux/linux/issues/989 > Reviewed-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- > > v1 -> v2: > > * s/is_machine/machine_is/ (Nick) > > * Add Nick's reviewed-by tag. I already picked up v1, and it's behind a merge so I don't want to rebase it. I'll live with the typo. Thanks. cheers