Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp730358ybb; Fri, 3 Apr 2020 10:45:02 -0700 (PDT) X-Google-Smtp-Source: APiQypKawlwBKVDB69kDpa2FcG6sdDakj4dqo4mMvQoeCJgZmbmVf79RFFUsdk/fBI0cf+G9idvn X-Received: by 2002:a9d:2c01:: with SMTP id f1mr7546620otb.67.1585935902527; Fri, 03 Apr 2020 10:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585935902; cv=none; d=google.com; s=arc-20160816; b=ZyDF0hn6XLAWEmtgzTaW2qVIE7N9G9BZ9NxbJm1DQZJjcyH6VhRZoQiH3RkA+IipkK HsobUcEtcSVe/pW/ApCANZrp2Cgt2eOX4q0a+ncW0PsAVZBDbDereSlYdi6kyHnsJZ/R gmwJJCSMsRyGyyErMzV12E7L4f+6H0Ahh6KpfIDNJNl149r/uHbiZcecIxAQ/S0fyer+ AXPSaXv5lIfoH9BejnBPRkeZ0kdSl91oOGvq3XNi+ImbeZXHZJtL4pRPRqITVhKFRGW6 H2ZumY7pOHG9YwDTt1dfqSm4RLOSMFJJcnGuHhFcWhm1d6zxmSORmCKm2aoNgeBkhdWi 2QsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MXDaTt8c9Evfz4KdnooIfHdHBAf+7Su/lAYVk5DE198=; b=NAIUsyXkh0aM2bCcaJAPF9oMszKiJUljj5cRvnlRovM7KSxYV5gRk/5CH6axSTIz8t 8UPafAdUTD2WduS2xqiMFYdOIZyFt37lX1TTcXFJys43wZ7vdnxJ7lzOshB4Ww3OsmNi ZZPLn/focDBrYYFjq/hFgJmFSkuY+UujT6TCcDYC22S+m7eb1ydchOhRYCtKKBvrX68y Gbculg+y/Xm6FUgLBgiAKQnWUDxNLT0wBgtQssBUUwsVsiHi+7ceuNgYAu8VcJLCkQEr AT4n6shUSHqhhTN020lIzBKOubRtgInvmOKxCDGWLsI/Xs9QCLMYlhdeGCytpbTMF/y5 xJuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si3775837otq.235.2020.04.03.10.44.50; Fri, 03 Apr 2020 10:45:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404021AbgDCRKc (ORCPT + 99 others); Fri, 3 Apr 2020 13:10:32 -0400 Received: from foss.arm.com ([217.140.110.172]:55506 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728023AbgDCRKb (ORCPT ); Fri, 3 Apr 2020 13:10:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A21A11045; Fri, 3 Apr 2020 10:10:30 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0C6DD3F71E; Fri, 3 Apr 2020 10:10:29 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] firmware: arm_scpi: Add include guard to linux/scpi_protocol.h Date: Fri, 3 Apr 2020 18:10:18 +0100 Message-Id: <20200403171018.1230-2-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200403171018.1230-1-sudeep.holla@arm.com> References: <20200403171018.1230-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If this header is include twice, it will generate loads of compile time error with the following below error pattern. It was reported by 0day kbuild robot on a branch pushed with double inclusion by accident. This is based on the similar change in linux/scmi_protocol.h error: conflicting types for ‘...’ note: previous declaration of ‘...’ was here error: redefinition of ‘...’ Add a header include guard just in case. Reported-by: kbuild test robot Signed-off-by: Sudeep Holla --- include/linux/scpi_protocol.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h index ecb004711acf..afbf8037d8db 100644 --- a/include/linux/scpi_protocol.h +++ b/include/linux/scpi_protocol.h @@ -4,6 +4,10 @@ * * Copyright (C) 2014 ARM Ltd. */ + +#ifndef _LINUX_SCPI_PROTOCOL_H +#define _LINUX_SCPI_PROTOCOL_H + #include struct scpi_opp { @@ -71,3 +75,5 @@ struct scpi_ops *get_scpi_ops(void); #else static inline struct scpi_ops *get_scpi_ops(void) { return NULL; } #endif + +#endif /* _LINUX_SCPI_PROTOCOL_H */ -- 2.17.1