Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1108773pxb; Tue, 26 Oct 2021 02:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWwelGMSOGhy0GIRINZc3X21kjq46mXJMQRPtIX4XZKIgDtfeNwwZVuVaV6wfv6EOM0mqO X-Received: by 2002:a17:902:704c:b0:13f:2c24:c1ff with SMTP id h12-20020a170902704c00b0013f2c24c1ffmr21417859plt.55.1635242315830; Tue, 26 Oct 2021 02:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635242315; cv=none; d=google.com; s=arc-20160816; b=xat9vOkvaOglvmMNjLSLnf2fUJFtrVkLqqboDvIc+537vOtWxr2rAZZLIM6Z9pLRHv Z2vRKeMDJqgLJp8Vngn8iuQOv4Zkc+VCP5mw+rRH04AZQ0mOsUuGHL7lZAnPfzM69Qv9 KIWcLTFgvEGzH0zrR8nwUJEBfflm4icvHm+2HGSv2aIGC80gDrEkzLDPPzkAu0Ee52LI +W/LEJXXlqtQfjUn1LQbB8rUlPbCbRZgcPM7y+PjZmS1RpkEBZhOb7nD7LAc90CQGkdv GYkMKz9iozg/mXZzeAOWtKP9Otf8uX/APLX6nriwGlQ8aw1if6RmWiRv6X1jf1RlflER 8s9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CKM4ZHMVNzPWAjQplTfZaVztzxcY6FyKLhDTL4NBYQ4=; b=BOXY3Pgs9sKAvtzusI1qNRASUrO+hs+U2S26FDXrMouE60LxmvzykGqqFIZwLtZB/O VWHGonAZ9OPr5zZpoTCwo8yoadvuwP+twWH2415RbeEoVWt1e+uYnt2VmTK3079MXjZu 5qZ6fvtUmWM8s2ZU/3YDVC/mDmG8dkrQCaxJ8A7Me0Bvc7bcY0A9DdyNpZVeX1v6o15y A3YEQtraNR1CdvBahE5PhxUqHrnvDfb8MSqZs0gqMAQ+DuS9FNSApfNXT1neq5VSeUbu CqzPgbMK3b3PcWi1+7XNN6trZ2hJeHBsoSZ2w+yatI2dbpzBijGSshNNCYGbSbKS20Nw 8rAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XCqpqkDx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si7990458pfu.81.2021.10.26.02.58.14; Tue, 26 Oct 2021 02:58:35 -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=@redhat.com header.s=mimecast20190719 header.b=XCqpqkDx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233336AbhJZH5v (ORCPT + 99 others); Tue, 26 Oct 2021 03:57:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55080 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbhJZH5r (ORCPT ); Tue, 26 Oct 2021 03:57:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635234923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CKM4ZHMVNzPWAjQplTfZaVztzxcY6FyKLhDTL4NBYQ4=; b=XCqpqkDxAFllOIaD+7alCi8vkuEwKoJInav+CFi2IaaDMMDlbBGxbOjXalrWRj5KsqHTSA uNlCMHQObyUn3ytXmIcEb8AjwkP3r1+IvcvHIz/4wMhuanUp/7r4bt5jZUoJMS1bf/l4oL niwCgHHLWJ0uGygPyKvMvY5pmX2eMV4= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-480-8i1OXFNUMBqhYocE3AfDiA-1; Tue, 26 Oct 2021 03:55:22 -0400 X-MC-Unique: 8i1OXFNUMBqhYocE3AfDiA-1 Received: by mail-ed1-f70.google.com with SMTP id u10-20020a50d94a000000b003dc51565894so12220163edj.21 for ; Tue, 26 Oct 2021 00:55:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CKM4ZHMVNzPWAjQplTfZaVztzxcY6FyKLhDTL4NBYQ4=; b=rfV2Q5jI5W/1pUudmaK4n2YVs7yQ8Q96+6g/iMvzC+/8+mQIkl0RnBhEJMKP2rRwZS tthYoaHLx42mG9SRX2gjtd7DmU1hOnL8wiPT7FnrJnVaolyzg2F5jG4csmWhJkQvZoMK pTD6LWB79p04LYmsaZlhzgpIjNklafjgyhtfW6Y8UmgY1xnGNcQLxGrUwfyOl/w+irI6 1n/x15xFcSp36fKWsYa1xbFhPcxXOqe+sGyWm5GqmYAMQHGswijAxNhpk10HWjwQoy0K ltHQiAKt2x//p0PyHGOZfoSdZz3KIY43K61tl4lOhYaSdetl1yL+WccNOI6sbbGmy6e8 XYLw== X-Gm-Message-State: AOAM532KETt+YR9//Xd2MuPkwD3lBZaizEbyF5SLBz9SNB97j/X/ujE1 ma/GvFc18Mez7cz8WlHVh8KQQ1idFHWL1B2B1ws5i7B5TNlHOJDBz9hlfVzIzbtj+/ggslTbeks CGuyR5xMBAqqU+8xOF/sz5KeE X-Received: by 2002:a05:6402:203:: with SMTP id t3mr34431967edv.69.1635234921078; Tue, 26 Oct 2021 00:55:21 -0700 (PDT) X-Received: by 2002:a05:6402:203:: with SMTP id t3mr34431953edv.69.1635234920930; Tue, 26 Oct 2021 00:55:20 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:1054:9d19:e0f0:8214? (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id k15sm8580157eje.37.2021.10.26.00.55.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Oct 2021 00:55:20 -0700 (PDT) Message-ID: Date: Tue, 26 Oct 2021 09:55:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: linux-next: Tree for Oct 25 (drivers/platform/x86/amd-pmc.c) Content-Language: en-US To: "Limonciello, Mario" , Randy Dunlap , Stephen Rothwell , Linux Next Mailing List Cc: Linux Kernel Mailing List , "platform-driver-x86@vger.kernel.org" , "S-k, Shyam-sundar" References: <20211025204921.73cb3011@canb.auug.org.au> <92c26aee-d3eb-258c-a0dd-e09783db6a20@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mario, On 10/25/21 23:32, Limonciello, Mario wrote: > [Public] > > > >> -----Original Message----- >> From: Hans de Goede >> Sent: Monday, October 25, 2021 16:29 >> To: Randy Dunlap ; Stephen Rothwell >> ; Linux Next Mailing List > next@vger.kernel.org>; Limonciello, Mario >> Cc: Linux Kernel Mailing List ; platform- >> driver-x86@vger.kernel.org; S-k, Shyam-sundar > k@amd.com> >> Subject: Re: linux-next: Tree for Oct 25 (drivers/platform/x86/amd-pmc.c) >> >> Hi, >> >> On 10/25/21 22:50, Randy Dunlap wrote: >>> On 10/25/21 2:49 AM, Stephen Rothwell wrote: >>>> Hi all, >>>> >>>> There seems to be something amiss with cnosole output in today's >> release >>>> (at least on my ppc qemu boot tests). >>>> >>>> Changes since 20211022: >>>> >>> >>> on x86_64: >>> >>> ../drivers/platform/x86/amd-pmc.c: In function >> ‘amd_pmc_verify_czn_rtc’: >>> ../drivers/platform/x86/amd-pmc.c:428:30: error: >> ‘CONFIG_RTC_SYSTOHC_DEVICE’ undeclared (first use in this function); did >> you mean ‘CONFIG_RTC_HCTOSYS_DEVICE’? >>>   rtc_device = rtc_class_open(CONFIG_RTC_SYSTOHC_DEVICE); >>>                               ^~~~~~~~~~~~~~~~~~~~~~~~~ >>>                               CONFIG_RTC_HCTOSYS_DEVICE >> >> Hmm, yes using either CONFIG setting is a problem since it is not always >> defined. Both simply default to "rtc0" though and this is also which >> standard distro configs use. >> >> Mario, can we just replace CONFIG_RTC_SYSTOHC_DEVICE with "rtc0" >> here to fix this ? >> >> Regards, >> >> Hans > > Shyam pointed me at this and I sent out a fix, but I think our emails just crossed paths. > > Take a look at what I did, but if you would prefer to just hardcode it to > "rtc0" that is fine for me. Just hardcoding it to "rtc0" saves us a #ifdef, so I slightly prefer that, but if you believe it would be better to go with CONFIG_RTC_SYSTOHC_DEVICE I'm fine with going with your fix. Either way please let me know how you want to proceed with this. Regards, Hans