From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2215C433F5 for ; Thu, 14 Oct 2021 08:07:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3B3661040 for ; Thu, 14 Oct 2021 08:07:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B3B3661040 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:Subject:From:References:Cc:To:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hYWz0bTSRaVoa34g2/w0cz7LpeOVnI80Auj3ku5GqRg=; b=WKsxl0lSx54KZtoua0CJuZs1/B zncvYIP7qx6qG7nhwYgLMZgxn3KfZi3mx2ahgXrAfKvhFSAAbzF7hvS68c0Vzf+DBBgrNqETZB0qu wHexsTkWdT/X7KBKWkpcwEchtFMmUQH9ZkbOPlSVT1xbyqZf+IUJQWrz3pc2+04XiwoZW8sg74MIi PCPimkOCD64KTNsSYENNZCmC1QqE54CB/9mN+Q1pv496272cL1atBq3jkQg0XHmuG/PFBbF86zKW9 kJrBXSZADOiLaW9vzKKcJdkXihe0SDkL7gKPX37wDpVFu+4nPy8Cl+Mgke+wgxKqwWJyrhGoQh4kR /FP7fRdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mavje-0024vP-3i; Thu, 14 Oct 2021 08:05:06 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mavjZ-0024tV-OZ for linux-arm-kernel@lists.infradead.org; Thu, 14 Oct 2021 08:05:03 +0000 Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id C384340023 for ; Thu, 14 Oct 2021 08:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634198693; bh=ojVn2ZVbkcgXLj7A1DRlVPqyw/Wvd+lGjqh+OPrsbYg=; h=To:Cc:References:From:Subject:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=h+V/m8SE0ysBm9lknGPpnnkrr4Cm8wmFe8JqLgGBn2Fqz26H3Res69bAqugxBDn8i cxVbUVQU9lY7qhoZjNpgaogQm4iWpKgFXaLJhXl+GVGaHBlWJr7tc0b7UWC3mmBQYx H+uMjk7eAIr6ia93HNL7Nak5YBWodeB0Z4Li6X28L/zBQsPpNadka1TYjSVyRWb5Pz SujZ0E6vIOOGzByJyq1G6gqavCq1gYOGUeO/HezX0VdUIPjkdtnWT2diQZ5twOqEVu Ih1Sq9f/dED08Bg+BtLtncvk57wYW56Z82b7/kfE+70sZdSBxT0stGt75pigql/vU5 xz/xw+AQ6IQWw== Received: by mail-lf1-f71.google.com with SMTP id bq35-20020a056512152300b003fd45087a72so3795513lfb.9 for ; Thu, 14 Oct 2021 01:04:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ojVn2ZVbkcgXLj7A1DRlVPqyw/Wvd+lGjqh+OPrsbYg=; b=2kJMWVFBpF5nsu1LWVPALHZE91WhuWVUSedvKEf7JGvn4mExDvw3w1VvTpXSGtH2Ob vaGd9euGrgqnk4owIwicbzxgfb0FMC5NM1jR/NjZfud+LfIGslE0HAfRIBWtrv9LC3JA xmqjrq8NT+V7LnzBSHVKjCQrM2YSpzv9Rs2A3/XxBttejjB3T9VoPyQi+hFf5yc/gLs5 GkDa7UjkTQW4JBglZmPvIlKrHPQxFv5Ue+pG5q/eZxI08ve+5dL8+AwEyyeYMVdX9kM3 UH9jU4g7rTFbgCvU79h6sCJGaKaSYIbj4T1DaoaTq/B5qgyeU/7YcjPaEf1ZDw++tO1Z IorQ== X-Gm-Message-State: AOAM531+ktFqC0PEFeReDLQ+alw9oodwyh7dB2Kk0Wg96RRbUCr6C2w4 QE0JqiwW4VcUZkBfZikElf1dKtzbjn6TFFCuFwuR7b2xZGsuFctFROJvKJGO4arNrk1bOkqVUPi W1qDFp51sU5INZH/CcBDHJpWdqVmqkG7GCqkDQquQ7ANh4fLr9zv0 X-Received: by 2002:a05:651c:907:: with SMTP id e7mr4525971ljq.457.1634198693141; Thu, 14 Oct 2021 01:04:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+fscirp5GuIbG7uOPrahokzBv9+3ns/V49MlZBkkCWBoqQbGM80foMTQ19Sle1sD5Y+4ZXA== X-Received: by 2002:a05:651c:907:: with SMTP id e7mr4525955ljq.457.1634198692964; Thu, 14 Oct 2021 01:04:52 -0700 (PDT) Received: from [192.168.3.161] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id z12sm161733lfs.101.2021.10.14.01.04.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Oct 2021 01:04:52 -0700 (PDT) To: Hector Martin , linux-arm-kernel@lists.infradead.org Cc: Alyssa Rosenzweig , Sven Peter , Marc Zyngier , Mark Kettenis , Michael Turquette , Stephen Boyd , Rob Herring , Viresh Kumar , Nishanth Menon , Catalin Marinas , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211011165707.138157-1-marcan@marcan.st> <20211011165707.138157-7-marcan@marcan.st> <2a6f14e5-fbc9-4b9a-9378-a4b5200bc3fb@marcan.st> <00925242-b837-d75b-3655-536d45dcd4d2@marcan.st> From: Krzysztof Kozlowski Subject: Re: [RFC PATCH 6/9] memory: apple: Add apple-mcc driver to manage MCC perf in Apple SoCs Message-ID: <410c0ccb-68d3-478b-2b5b-9165890e614a@canonical.com> Date: Thu, 14 Oct 2021 10:04:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <00925242-b837-d75b-3655-536d45dcd4d2@marcan.st> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_010501_993329_2E5E7CAB X-CRM114-Status: GOOD ( 19.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 14/10/2021 09:52, Hector Martin wrote: > On 14/10/2021 16.36, Krzysztof Kozlowski wrote: (...) > >>> Ah, I didn't realize that was a valid option for MODULE_LICENSE. I guess >>> anything containing "GPL" works with EXPORT_SYMBOL_GPL? >> >> I don't think exporting symbols is related to how you license your code. > > It is; only modules with a GPL-compatible MODULE_LICENSE get to use > symbols exported via EXPORT_SYMBOL_GPL. Although there might be such correlation but it's not a rule. You can have a GPL module exporting symbols without GPL requirement (EXPORT_SYMBOLS). You can have a GPL+MIT module exporting symbols as GPL. Obviously you cannot have a non-GPL module, as we do not accept these and there is no such choice. So answering your question that "GPL" works with EXPORT_SYMBOL_GPL - everything is GPL but it works with both EXPORT_SYMBOL and EXPORT_SYMBOL_GPL. > > See kernel/module.c for the symbol lookup logic and > include/linux/license.h for the logic to check the string (seems like > "Dual MIT/GPL" is explicitly whitelisted there). Not related to export symbol. It is used for determining the tainted kernel via other licenses. > > Of course, this is a futile effort, as ~every time I see a proprietary > module in some embedded device, it either falsely declares itself to be > GPL, or they have a shim module that re-exports GPL symbols as non-GPL. > This is being removed soon (or already). Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel