Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1150054ybt; Tue, 7 Jul 2020 08:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzCPCvIEAEfUkc6+D+10ZlnKnEElZbvP13B3lEedi4S7ZYQWQhgMyLOHwLrrjGDIqqIpvP X-Received: by 2002:a17:906:2c02:: with SMTP id e2mr31776469ejh.64.1594137103832; Tue, 07 Jul 2020 08:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594137103; cv=none; d=google.com; s=arc-20160816; b=ZXRTg1HWSL3CdQkK+GuJgsY5z5207jzrEHRVErbAYnP47s0IrqRi+d4xxYGNIba5ob 3N1lB8tc6QZB+A9wDUkloBKji/4AKJCsmLrIu8pPOaZxcF7BmHO1KmrD4qUN23GTBbwS 2CTk2VFr1g0YB+O8aC1KSd6go2idId7cxBqyxNdu6PARkU8RB3JubUttegnMDQk+tzU8 v/Xk4nGrRKBKNofOKygUrnOsEIQ5FRpgOBxNXml2Y5KTrYoKM3lUpAA5fKTHvXMzmKeE ndq/R9Dea3hpswCMe2U+on3LjNJwZH+CacY9qHuCebFWIpuwIkT2DRfG7MVdPESCTS8c e3xw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=o2byprTDpjPpNlEAvO3Wi+/c2HuZLv/8KYv2CR6Segg=; b=zhSay4/e+EogknUDXbpGuebJ0NsWZX/PEGX1eU673Fx2TboCejieyb+ZtIUVVJl8xl PTzseP6aCF7iO13avBQNew+F42hPEJemL1VqYpJoSoLUk1pLd4jpeb8bdYxUUYDrDo5s m2KU99I8U9w4uhYgtuS+P0mUlZmietK7HjXY5kVmtZ5AHK64uxAoa07FG99Otewl+Q52 DDOJq1K3o0Wz5SXZgd9PQm/H90oU/sa1DMibNschlWC337WUmldr4s1HbF1d9qrisSwV kTCrY4M9Q56JFI/XCzGefdvTmGag1k8CtkXfEOcbsHz4A5tWCqvHlXridL9eAIQKXT7f AeTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=v94vgSBA; 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 w12si14332246eji.586.2020.07.07.08.51.20; Tue, 07 Jul 2020 08:51:43 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=v94vgSBA; 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 S1728511AbgGGPr3 (ORCPT + 99 others); Tue, 7 Jul 2020 11:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbgGGPr2 (ORCPT ); Tue, 7 Jul 2020 11:47:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9530C061755; Tue, 7 Jul 2020 08:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=o2byprTDpjPpNlEAvO3Wi+/c2HuZLv/8KYv2CR6Segg=; b=v94vgSBAFgga49x7aUmkXfM0aU SZu/6fru6iQWZCvkoaCRTr7ir66efgZqYSjw5v0ETk9kYFf8KKGMDS71m0fgOadaEMhnC8P13Du6G X0+pZKufZ8VT+hn4K6EnUIyFmhxysjG8MGS1WQahRa2Wql+ukNWhjtjFRsR9Q0Ph4BgXKWv+CfxJY HyidKJOs2DsbibBilMCuJkx87ExUJZ4xxQgrWXtRAZYXj3OiLFPP0Gh1llQmA/gHQl83GehlDzdtp 38sy++iwYZ/PBlN0Wfh0rJOtRvzI8p3oKRznHbmWgs1yACuCjQw3NXkoZrp5GoxestTLj2Ol5nRYd +mKQyhGQ==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jspob-00063f-GP; Tue, 07 Jul 2020 15:47:26 +0000 Subject: Re: [PATCH] thermal: netlink: Fix compilation error when CONFIG_NET=n To: Daniel Lezcano , rui.zhang@intel.com Cc: amit.kucheria@verdurent.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20200707090159.1018-1-daniel.lezcano@linaro.org> From: Randy Dunlap Message-ID: <66b4c589-48e0-8975-b3b1-79168e3ea5e4@infradead.org> Date: Tue, 7 Jul 2020 08:47:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200707090159.1018-1-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/20 2:01 AM, Daniel Lezcano wrote: > When the network is not configured, the netlink are disabled on all > the system. The thermal framework assumed the netlink are always > opt-in. > > Fix this by adding a Kconfig option for the netlink notification, > defaulting to yes and depending on CONFIG_NET. > > As the change implies multiple stubs and in order to not pollute the > internal thermal header, the thermal_nelink.h has been added and > included in the thermal_core.h, so this one regain some kind of > clarity. > > Reported-by: Randy Dunlap > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/Kconfig | 10 ++++ > drivers/thermal/Makefile | 5 +- > drivers/thermal/thermal_core.h | 20 +------ > drivers/thermal/thermal_netlink.h | 98 +++++++++++++++++++++++++++++++ > 4 files changed, 114 insertions(+), 19 deletions(-) > create mode 100644 drivers/thermal/thermal_netlink.h > Hm, now I get this: ../drivers/thermal/thermal_helpers.c: In function ‘thermal_cdev_set_cur_state’: ../drivers/thermal/thermal_helpers.c:182:2: error: implicit declaration of function ‘thermal_notify_cdev_update’; did you mean ‘thermal_notify_cdev_delete’? [-Werror=implicit-function-declaration] thermal_notify_cdev_update(cdev->id, target); or should that call be to thermal_notify_cdev_state_update()? -- ~Randy