Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1392487pxj; Fri, 21 May 2021 13:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8OxLq7c0JfhkOlEDdR8GekSexjzEVzHNqggryjKvhoSRfUvyGPXQV344WMv8uyEm2RlFe X-Received: by 2002:a02:8308:: with SMTP id v8mr6995192jag.143.1621627635340; Fri, 21 May 2021 13:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627635; cv=none; d=google.com; s=arc-20160816; b=D8pLg78sP/i+1aLrdDxLgtAe4EQRIHRW3uyStHoqqgOO60WMSWwu40uYuu4+Gike2b CM4g72winGe+fPjSRT1W7p1/h5pFmDVvtIyJP/BlT6ETA8GaIbsOfx1z8Kpv5jqyiG1E 8ycVCtz1yPQ8WS4ET2DK55VdMF2wwEfUgVEWFuZYXVuf6gxsz4R7TcsxQULdbRU9d6gF df/847iZzYApnlmPDW+ru7I035opAKfwo9HeS81nXNMI4YLlBztfuHu/oGi9iSZckngq MRvnEew3W+Cv2eyxe56f4upCpfj6Ug/rsZAyetXuiqcM9G9wKBus6SDcG+IpmsQkYaJz PaDQ== 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=cPuODHn3Uj81CuVdCh94AAqqpvQg+E4P822iNSf3Cpc=; b=VPKoRELpEd0QWN6GPeCBe8TQMum3khgQEX5Zzt61h27lrnSjrAAa5K6q+0lPwu8qew EBZFEPZIXuST05Y5kcA+MNmKKBHlkC6nVsy58cz9STDNF72PPZyi4prgOkYFeO0a98LG flCQHu36XzQwqscqXkcE7Sj+1xm2x6eKGf5d/30B8DYa+e/W/U+pVJY3lZFCU2EVcAnK 5ibj723hwDeYEOTneXgz6snKiLe75/1e9bWlsOWYGB1W30ocAZQITQzjXppki67ofTj6 Nn6vY+twKtVBqY8TEfto9SoTjm9oV2YcD4MMH5TAdIPMVXwxzJoVFxy9+fnAaSkajTZr Mv8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xwbgJ5kH; 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 f184si6168246jac.102.2021.05.21.13.07.02; Fri, 21 May 2021 13:07:15 -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=@infradead.org header.s=bombadil.20210309 header.b=xwbgJ5kH; 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 S231869AbhEUFPJ (ORCPT + 99 others); Fri, 21 May 2021 01:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230176AbhEUFPI (ORCPT ); Fri, 21 May 2021 01:15:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22195C061574; Thu, 20 May 2021 22:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=cPuODHn3Uj81CuVdCh94AAqqpvQg+E4P822iNSf3Cpc=; b=xwbgJ5kHBE1m5bZU/wfA018OiZ kq9KLm+uWUqkAevhmWnsOPYH3kAwl9GxClubDV+bd7hE/vBwYNmctJZ03ukCSMqdoA4qkxo4jKrXk Lkn7M1LXEV/nGskZVhDsrhJ/fCfbALc0q+PyKoVQqMG7imQc+9DaYBgYqGJrwOvJYAK9IXwbsA2s1 bre1wzv+xCbxzGx4i/wgGfUEECykvA8YhwwJowPYglVx8DU3OGMHINSj6U54uERKeQ62taVr0psVx jDN5z9qg5SN3TZQgo/z9BP5Nxdpg2CP7n9EgZjp0RNeOkFBMYm9Lohx/4/zq/qA+9Kg+S1MHFBa8B p4I0WKEw==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1ljxTk-00Gp89-Kf; Fri, 21 May 2021 05:13:44 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Ilya Lipnitskiy Subject: [PATCH] MIPS: launch.h: add include guard to prevent build errors Date: Thu, 20 May 2021 22:13:43 -0700 Message-Id: <20210521051343.20059-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/mips/include/asm/mips-boards/launch.h needs an include guard to prevent it from being #included more than once. Prevents these build errors: In file included from ../arch/mips/mti-malta/malta-amon.c:16: ../arch/mips/include/asm/mips-boards/launch.h:8:8: error: redefinition of 'struct cpulaunch' 8 | struct cpulaunch { | ^~~~~~~~~ In file included from ../arch/mips/include/asm/mips-cps.h:13, from ../arch/mips/include/asm/smp-ops.h:16, from ../arch/mips/include/asm/smp.h:21, from ../include/linux/smp.h:114, from ../arch/mips/mti-malta/malta-amon.c:12: ../arch/mips/include/asm/mips-boards/launch.h:8:8: note: originally defined here 8 | struct cpulaunch { | ^~~~~~~~~ make[3]: [../scripts/Makefile.build:273: arch/mips/mti-malta/malta-amon.o] Error 1 (ignored) Fixes: 6decd1aad15f ("MIPS: add support for buggy MT7621S core detection") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org Cc: Ilya Lipnitskiy --- arch/mips/include/asm/mips-boards/launch.h | 5 +++++ 1 file changed, 5 insertions(+) --- linux-next-20210520.orig/arch/mips/include/asm/mips-boards/launch.h +++ linux-next-20210520/arch/mips/include/asm/mips-boards/launch.h @@ -3,6 +3,9 @@ * */ +#ifndef _ASM_MIPS_BOARDS_LAUNCH_H +#define _ASM_MIPS_BOARDS_LAUNCH_H + #ifndef _ASSEMBLER_ struct cpulaunch { @@ -34,3 +37,5 @@ struct cpulaunch { /* Polling period in count cycles for secondary CPU's */ #define LAUNCHPERIOD 10000 + +#endif /* _ASM_MIPS_BOARDS_LAUNCH_H */