Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3168355imw; Wed, 6 Jul 2022 19:16:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vY3QsInKu08Z5C2vjbklHfulw41MoshL+E1sS8F5lVJyJ39vbFCHkllzyXMjMg/vC9XBqA X-Received: by 2002:a17:907:7612:b0:72a:fb4b:5cf9 with SMTP id jx18-20020a170907761200b0072afb4b5cf9mr5487685ejc.463.1657160215873; Wed, 06 Jul 2022 19:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657160215; cv=none; d=google.com; s=arc-20160816; b=T1Qo7UPHPoUOVIp2kTtx5+/dB1PHxaYiBk/uTGf52y7xRc9BWR4gHKTCTu8uDh5Hyp NEoZe/s/OzhMkJLlxlt+oOltgJ9EObHu+JITwL7+GGblseGWDqdJMM/ZzoHv+7pLge2+ uaimhnb9HAtgSOgFxmKjx6yVBGaqpANBuEiI00b4c3PCa2XxL1W1ZtqOgivcJFLzUlxb jKSU5VAsxE5Ddi6KuzWQLfKuYoCyUub4VdAJyRffLqazNJTEcwKumFIcnIIc2fnvPkrC b9t3mHRlMW+ppbmKQy7M1yGC8Xjkz1dAUYAw8C4QstVVZ/wzQWTLiYNYkN2Ly6TRgFw+ rBfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=iUV3c+azNmHNYso9jLGLa0mBwv+5G8p2STnWno9+tVI=; b=WGju4XH6e6MEsvK26c/shisqulwM6AsDyCTUkr686Bo0b/mPE64dgEeZnwL3iqdHEK 7nxuSJ53AvtS1LqyAUE3Cg0n/E7sY7NKuH8UARFKSAV8p+oUqAl9/Ql5XjMFdupCVt2s R3MSGnGGdbIgtMbKRdb/4d0e+372ULFOswCx+Zlngbncuq5ZAkQZWVa1ebRv5BMdyapG /kb+Bo/mxKmNCofHgCFEOVHxcliUbtnXTF/4I1JGhPljeONEWu2bjidN0xrDxn4eZbrw DTvE50T4IdodvrTP+dmz2QpqToLIzCR0Ls27zSiV3NMEJWsRzcKudgkBXmEToSEs1RBR 2kTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a056402354b00b0043566d6b6d7si7741125edd.451.2022.07.06.19.16.31; Wed, 06 Jul 2022 19:16:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234161AbiGGCAL (ORCPT + 99 others); Wed, 6 Jul 2022 22:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbiGGCAK (ORCPT ); Wed, 6 Jul 2022 22:00:10 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C79132ED4B for ; Wed, 6 Jul 2022 19:00:09 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id D52631E80D82; Thu, 7 Jul 2022 09:57:49 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZZKH5BkaPIZF; Thu, 7 Jul 2022 09:57:47 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 094C11E80D74; Thu, 7 Jul 2022 09:57:47 +0800 (CST) From: Li zeming To: benh@kernel.crashing.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel@nfschina.com, Li zeming Subject: [PATCH] macintosh/windfarm_pid: Add header file macro definition Date: Thu, 7 Jul 2022 09:59:49 +0800 Message-Id: <20220707015949.3733-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I think the header file could avoid redefinition errors. at compile time by adding macro definitions. Signed-off-by: Li zeming --- drivers/macintosh/windfarm_pid.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/macintosh/windfarm_pid.h b/drivers/macintosh/windfarm_pid.h index 83f747dbeafc..9882e90a5071 100644 --- a/drivers/macintosh/windfarm_pid.h +++ b/drivers/macintosh/windfarm_pid.h @@ -1,4 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _WINDFARM_PID_H +#define _WINDFARM_PID_H + /* * Windfarm PowerMac thermal control. Generic PID helpers * @@ -82,3 +85,4 @@ struct wf_cpu_pid_state { extern void wf_cpu_pid_init(struct wf_cpu_pid_state *st, struct wf_cpu_pid_param *param); extern s32 wf_cpu_pid_run(struct wf_cpu_pid_state *st, s32 power, s32 temp); +#endif -- 2.18.2