Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4263193rwo; Tue, 25 Jul 2023 03:27:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGdlgBw6szxpaVv+ZhzMe3q/LUWDRqPYxN5djyHaifLMxBrljURZSvnr7G4g7aDN1kJJR9T X-Received: by 2002:a05:6402:16:b0:522:2711:86a with SMTP id d22-20020a056402001600b005222711086amr2106760edu.15.1690280843143; Tue, 25 Jul 2023 03:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690280843; cv=none; d=google.com; s=arc-20160816; b=KP7iwio9kkt4CFfbOtjGLjxBhGZ+xvPrMJ4/Ljeyl2NJXrHeai9c+l5Tkzx3XusYfk 8zkCNqCmflosc2Z3YWbrrwvh9gyM8ufRRh5m/xx26SeEX7SPS+agTFrHMNv8Yqc4bkB+ //lmuEr0G5Wg++lY7Tkpkyb6/qd6oyl1SjL+AZZijfzJwkPBk6Ohfa4o1SFcQTRXIncW iK299Cl0q605FQP0X9IYYY3LeQ21ts028orSzoqH3mgDuAPTnO1PgqI3U/dvCn9unkbs JnrCWdLD7X6EdIe7LfjVF6yE7QFIj9gkGxsHkwz/RbGflzCOxyXWJ3Shs5kmK81W4mUT C9wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=stZvY5U9wSZTs5ds6eBy5fhaT/Xhl9PttBLPwX46gHo=; fh=LJv0iBBwqubWuekBi8X2RX5vcrG0B2BtpOMJ+Yd+d+w=; b=ANw+1RMcI/IoKsHRodaabAZhrB4ppc7qE3rhvcagQKYodgUyj/a/O03kP9vfYertyR 0A+mh1ZWiM/5+rYN7PBfBtZhO/RD3Rmd2p3JcHVGfkRnbgfTk5mpW/JLqpUWxBQd2tkQ 3o290ELadvI+ZOZP+BKT1i/raEk58DvVrlj6XybtgLtWLMPAkmY/Qey2PQzBn8A+3za+ tOKj9jyNuGhaRc2u6VlGocKvp0Dh7I+5/uevt0GLk2u6IIvXYKqaFI6LItiWvBzOyZQ7 +qarY1x7Gs2sbNA5mbutvnQ4gZwugToeNi1QbGOPdE+b48B/dk8HxnbDdXl+G8tVAMDm uqHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Zd+TfiK6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020aa7d901000000b0051dd50eb02bsi8285568edr.5.2023.07.25.03.26.59; Tue, 25 Jul 2023 03:27:23 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Zd+TfiK6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbjGYKPk (ORCPT + 99 others); Tue, 25 Jul 2023 06:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232628AbjGYKPh (ORCPT ); Tue, 25 Jul 2023 06:15:37 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC70810F9; Tue, 25 Jul 2023 03:15:25 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-52256241c66so515598a12.1; Tue, 25 Jul 2023 03:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690280124; x=1690884924; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=stZvY5U9wSZTs5ds6eBy5fhaT/Xhl9PttBLPwX46gHo=; b=Zd+TfiK6QjysIfwcqshz3riRH9eDjKMkLVQHalEsW7A2lCezdTeTYsuDR+b8W5TV3j trncykuABFsnq/ZL/wATBQpxI4491zYNzFHyfLjWDkDizPL5yi8tU+oXV2wOqbYlXamp iyvVvum4XpoXIEopgV3qp1W6kGCLfzh3LsRNJjGCxUlfLKQp7LRAeEZenadG0aJpnWdu fCDR7hRde0HP4B+WIu9MLqDVm+N8e48S4Q386V4nJP56nbv2kNXGxoiABKui2fptjkZU b2hatoO91JCcF9Ou+6QOWGdLPSdIICbqjXTrSaw/7/K75BzuThXlDayMuzcaHtQkCtk6 TlFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690280124; x=1690884924; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=stZvY5U9wSZTs5ds6eBy5fhaT/Xhl9PttBLPwX46gHo=; b=QfdxZKFQ1imazxfBeNHpis+IpwGM5tiWK7dUCWYIdOTO08J5lcSKoLDolyaohTrSXy Idu8h5eF8QTRnrgXfAUP7I8Yz/CDxZZrqjpzam+SKC4wNz9EYxctI/r85Boz7lTJFQgw GVfEyKQvhwhb08PHpZWYJKLoN5/s2LVfOJAWlR1J5ThHgaud21oECdqI5UoYdebR6moI D8jjFV9IxV+vNc/5a+Dv9WYsLizmvA2B/F9AhQ8LALU1FEXQ6JQQvtDCtvkx3V6tLbd3 iyibiiHS0TZpGLq2FbzftcciPn5mQIZc8qIPO9m+1MrLnhmA3BkLbquMAT7wXXU8TprJ +g0Q== X-Gm-Message-State: ABy/qLYMGL2WeexvJWFy9t2tDFd3VihJOFI6qJ0HWsjMOq46Gkzxn5iZ gnr0kXHzGknuVZJKoZuO4lYUr+Q1qisTmlaAEhg= X-Received: by 2002:a05:6402:104b:b0:521:985d:7314 with SMTP id e11-20020a056402104b00b00521985d7314mr2215492edu.18.1690280123484; Tue, 25 Jul 2023 03:15:23 -0700 (PDT) MIME-Version: 1.0 References: <20230707111151.461373-1-keguang.zhang@gmail.com> <20230707111151.461373-3-keguang.zhang@gmail.com> In-Reply-To: From: Keguang Zhang Date: Tue, 25 Jul 2023 18:15:07 +0800 Message-ID: Subject: Re: [PATCH 2/2] MIPS: loongson32: Remove regs-rtc.h To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, Jul 25, 2023 at 4:59=E2=80=AFPM Thomas Bogendoerfer wrote: > > On Fri, Jul 07, 2023 at 07:11:51PM +0800, Keguang Zhang wrote: > > Since commit 9fb23090658a ("rtc: Remove the > > Loongson-1 RTC driver"), no one is using regs-rtc.h. > > Therefore, remove this obsolete header file. > > > > Signed-off-by: Keguang Zhang > > --- > > .../include/asm/mach-loongson32/loongson1.h | 1 - > > .../include/asm/mach-loongson32/regs-rtc.h | 19 ------------------- > > 2 files changed, 20 deletions(-) > > delete mode 100644 arch/mips/include/asm/mach-loongson32/regs-rtc.h > > > > diff --git a/arch/mips/include/asm/mach-loongson32/loongson1.h b/arch/m= ips/include/asm/mach-loongson32/loongson1.h > > index bc27fcee3176..84f45461c832 100644 > > --- a/arch/mips/include/asm/mach-loongson32/loongson1.h > > +++ b/arch/mips/include/asm/mach-loongson32/loongson1.h > > @@ -46,6 +46,5 @@ > > #define LS1X_CLK_BASE 0x1fe78030 > > > > #include > > -#include > > > > #endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */ > > diff --git a/arch/mips/include/asm/mach-loongson32/regs-rtc.h b/arch/mi= ps/include/asm/mach-loongson32/regs-rtc.h > > deleted file mode 100644 > > index a3d096be1607..000000000000 > > --- a/arch/mips/include/asm/mach-loongson32/regs-rtc.h > > +++ /dev/null > > @@ -1,19 +0,0 @@ > > -/* SPDX-License-Identifier: GPL-2.0-or-later */ > > -/* > > - * Copyright (c) 2016 Yang Ling > > - * > > - * Loongson 1 RTC timer Register Definitions. > > - */ > > - > > -#ifndef __ASM_MACH_LOONGSON32_REGS_RTC_H > > -#define __ASM_MACH_LOONGSON32_REGS_RTC_H > > - > > -#define LS1X_RTC_REG(x) \ > > - ((void __iomem *)KSEG1ADDR(LS1X_RTC_BASE + (x))) > > - > > -#define LS1X_RTC_CTRL LS1X_RTC_REG(0x40) > > - > > -#define RTC_EXTCLK_OK (BIT(5) | BIT(8)) > > -#define RTC_EXTCLK_EN BIT(8) > > - > > -#endif /* __ASM_MACH_LOONGSON32_REGS_RTC_H */ > > -- > > 2.39.2 > > I get these build error when this patch is applied: > > linux/arch/mips/loongson32/common/platform.c: In function =E2=80=98ls1x_r= tc_set_extclk=E2=80=99: > /local/tbogendoerfer/korg/linux/arch/mips/loongson32/common/platform.c:27= 0:24: error: =E2=80=98LS1X_RTC_CTRL=E2=80=99 undeclared (first use in this = function) > u32 val =3D __raw_readl(LS1X_RTC_CTRL); > ^~~~~~~~~~~~~ > linux/arch/mips/loongson32/common/platform.c:270:24: note: each undeclare= d identifier is reported only once for each function it appears in > /local/tbogendoerfer/korg/linux/arch/mips/loongson32/common/platform.c:27= 2:14: error: =E2=80=98RTC_EXTCLK_OK=E2=80=99 undeclared (first use in this = function) > if (!(val & RTC_EXTCLK_OK)) > ^~~~~~~~~~~~~ > linux/arch/mips/loongson32/common/platform.c:273:22: error: =E2=80=98RTC_= EXTCLK_EN=E2=80=99 undeclared (first use in this function) > __raw_writel(val | RTC_EXTCLK_EN, LS1X_RTC_CTRL); > > Thomas. > Sorry! I will send v2 to fix this ASAP. > -- > Crap can work. Given enough thrust pigs will fly, but it's not necessaril= y a > good idea. [ RFC1925, 2.3 = ] --=20 Best regards, Keguang Zhang