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 X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9523C433E5 for ; Wed, 15 Jul 2020 03:27:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5A0120672 for ; Wed, 15 Jul 2020 03:27:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rqDUfhu/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728485AbgGOD1W (ORCPT ); Tue, 14 Jul 2020 23:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbgGOD1V (ORCPT ); Tue, 14 Jul 2020 23:27:21 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48F16C061755 for ; Tue, 14 Jul 2020 20:27:21 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id e8so1758527pgc.5 for ; Tue, 14 Jul 2020 20:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Xfe44VUg6t3uEKEZr5KZlokmJcH7EcHODPZ1Ek7+ev0=; b=rqDUfhu/YFg8AfXgIqvzj4jUJm55xGZGfZTn0nJ/RhPxv87G+CfMpoXZtlSiPIxZiO 7cOCDnt6ewvLo+BACOIbspH5nBMsv76s2FbCrGB6hwOYO3GReB84ZsqW0xFDRkpsXo3T 93CmWiGNZRYwmlAAj3JyxA8y15aWS/k1nzmkMhk3PJ1cajgQ/xCaODvAnXkeR/IDIU7M MiU0BYLPd7sHVZUSeQ6Q6Tt6e7tWYTJmypD9HLQTGwp+L4qyc0c25BhPJjnbC9ychl8s 47a82C0Lor/R7eqYHGIXFUDtfC73dthfGXAVmD/GLNssgfp/UY342VD+Ck4FIpfdeD96 scRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Xfe44VUg6t3uEKEZr5KZlokmJcH7EcHODPZ1Ek7+ev0=; b=FJph+18z8nel1pZ8wRpxJLRcdl6J3MpGsIKVmYluGyKOmLncj9r0hcVTrqi84KLZSK y+Bo249XblFB+c4YpKECHGyvH7socww3DdKFl6VcQwcz1W8nT3RX1+jWuvOkNSZKZIG5 tlxxQraO+T8l6XjOGm4r6+1J4kPcs4zH3Vd4S6fwhe9zIt52gOH1DFrZohVHqqjlvLd7 q6DvZVkuYyPBgi8JW4AOt/t5+HO6jVejOs8rede/YDapk1Rp+R4lzSztGmb1zTJgKkqU mhddRbdv97a+Hql/N4nu3vDiNtvMsJ+AVQdbEy06jwL+wrO0sTYyd5K0bOrIvY45DzM6 0Iyw== X-Gm-Message-State: AOAM531wjJiQTNs8co5QxFz4QYsYZ4yP1iCEeo0YIbzKY1eAtBgq3TuW 4yOIU9dYFZ1MRuaXEYT68BzkoQ== X-Google-Smtp-Source: ABdhPJxvLtPG6/Yk6jZYYT6/cu/KekSQOrjbd/Em8rcltuDksibR5oAhSOVlLJAds+5Rs63iGLD3vw== X-Received: by 2002:a65:6883:: with SMTP id e3mr6203354pgt.5.1594783640870; Tue, 14 Jul 2020 20:27:20 -0700 (PDT) Received: from localhost ([122.172.34.142]) by smtp.gmail.com with ESMTPSA id z2sm503142pff.36.2020.07.14.20.27.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2020 20:27:20 -0700 (PDT) Date: Wed, 15 Jul 2020 08:57:18 +0530 From: Viresh Kumar To: Lee Jones Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux ARM , Linux Kernel Mailing List , Linux PM , Andy Grover , Paul Diefenbaugh , Dominik Brodowski , Denis Sadykov Subject: Re: [PATCH 09/13] cpufreq: acpi-cpufreq: Remove unused ID structs Message-ID: <20200715032718.2zlo2eurhkpoayya@vireshk-i7> References: <20200714145049.2496163-1-lee.jones@linaro.org> <20200714145049.2496163-10-lee.jones@linaro.org> <20200714210340.GJ1398296@dell> <20200715032442.gh2cliiddhv35fdj@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200715032442.gh2cliiddhv35fdj@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On 15-07-20, 08:54, Viresh Kumar wrote: > On 14-07-20, 22:03, Lee Jones wrote: > > On Tue, 14 Jul 2020, Rafael J. Wysocki wrote: > > > > > On Tue, Jul 14, 2020 at 4:51 PM Lee Jones wrote: > > > > > > > > Can't see them being used anywhere and the compiler doesn't complain > > > > that they're missing, so ... > > > > > > Aren't they needed for automatic module loading in certain configurations? > > > > Any idea how that works, or where the code is for that? > > The MODULE_DEVICE_TABLE() thingy creates a map of vendor-id, > product-id that the kernel keeps after boot (and so there is no static > reference of it for the compiler), later when a device is hotplugged > into the kernel it refers to the map to find the related driver for it > and loads it if it isn't already loaded. > > This has some of it, search for MODULE_DEVICE_TABLE() in it. > Documentation/driver-api/usb/hotplug.rst And you just need to add __maybe_unused to them to suppress the warning. -- viresh