Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3863469ybi; Tue, 18 Jun 2019 07:41:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAmPDjZrgvXZ84ZymtPSO9PshKLdCNaisd3q6LhZb/IRjVp4OZXOlYS5jH4SdqwII2ZOzW X-Received: by 2002:a62:f202:: with SMTP id m2mr8510682pfh.6.1560868884483; Tue, 18 Jun 2019 07:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560868884; cv=none; d=google.com; s=arc-20160816; b=qF+fjRFsnJbR/5++0sQS1SNBxSkCY7iMrtHnTq8a1dKrmf12euPc8pYdTKEMeVSMC0 s7Ic3Y2YoVF1QsOnDzKe4b/kBORVRzC0VIXqqn6hUkqt4vKt7EkJmkbQqcRMt0Jh+f7g HdrJesqmUwb2qWJZC5rtD2IHztT1REePsXgZ+zsEYQ1mYCIu1Fom4EYbDxZDwkrom4qp 9GXi6O0NARLIF2OZzxsaZmXilp3tzsTkKzjXks2Bzp3HgO0DSP/aleyJRml5amDuFsGv Wi9nJudt8dWza9Sqz1FD4COZ8byuNSgawnYhDfMPxSRGYuwNBskyYuUiqyi5GZrXmDSB oDCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FPmqGlLqRaYsv5QgGolRusboFAose75I5VSohz4ueiE=; b=VnDJJ2jYVq4BeKfb9z6O2RgBXEihNBWnExzMCpcp7UNpasYHDFXhkl1U9P/XcRUxTI 5SbnQRsFYzzs/Ypg+kAwstbPRhsimDmKpIf1MY+a/SMp1NT300PzCdZXcppGC0tA3PxM tapseAJC1Dt+B0jGDnLLcO/bUbIXTWR9GNNmI4sPQd7D52Q4XuZAUxmJ0odgThT+PSEO AewnrAkhKmE8mBdAZKP9BT6SRMp/hWw4cM6MvSU6xpxFe2sVp3wIUP9q01zUdiTai1Rj 0GrtdgJShU1/7e8c6Rq+d9QFNu1HCWW/+zTgg3joytfIWT5fYGCtvJHP66iTtPZxLnvO VReA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jq1e67QV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si11495489pls.189.2019.06.18.07.41.08; Tue, 18 Jun 2019 07:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jq1e67QV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729430AbfFROkX (ORCPT + 99 others); Tue, 18 Jun 2019 10:40:23 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35692 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729327AbfFROkX (ORCPT ); Tue, 18 Jun 2019 10:40:23 -0400 Received: by mail-ed1-f65.google.com with SMTP id p26so22134594edr.2; Tue, 18 Jun 2019 07:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FPmqGlLqRaYsv5QgGolRusboFAose75I5VSohz4ueiE=; b=jq1e67QVaCOiRylO+VQp9tG5iEzpSV3Duy6Vx85CDYXe8syEMBWuDUdmcD64H7IpMq W9c6L4lHj15dOo76pOWnvBzGNVVnK+864NonAnwpaJGSU/lMFPE/C1mkzH7N4SJNHquM FAponMKenVFYn31s8XhfkSR3a1P07b8s+/oWqJhqIIBrRTnISjK5AcxEj4IciiQxG+3Z 0OO4hXNX7uvzkpFJzCYKBSMLmOx9nqkEqf4aGjHAlGnSS68Et9fTjaC6yNGjDOPhB86U n1OJF0/6KNCxofUYqcZDFXmwZg7lnW79IZvBg3OWyXsJUimsAnvornV5k/a4v2WbL9aL Ybtg== 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=FPmqGlLqRaYsv5QgGolRusboFAose75I5VSohz4ueiE=; b=rJuDrVbp0kxbpQaXH24sS8j4vYSMXP6WWM5MmXH77l6gESgQDKkVtX/z/EUWD/ZYi/ qQbMt2dFMSZJ/WNx189bbGCux95sRpZoxGQiSGUnSzaZc/mcmI3Z4PULi7N/x/JuDD1p /+EmWH6puIVn7QV0lMBXcc//e4CAqsY6bMzve0gI33W/yyMtoWOEgpj7ZPda+cBHb/Fj K5fbvFsr0JAtTFvKr8AjCsyCG8pOUcgvbwR/LjXxz9hDquVj9hrv+IOwwqpbDwYYuW0C KYVm6zL6Sz+4WsAP5MyxIuCt8x4Ei2WvCZRtoosrwi3Qfi526Qox1uUybwNlfe3bKumt rgYA== X-Gm-Message-State: APjAAAV4bdwAbATVGo6i1gdfJrQN90NJKJN99PsRfr8QBZcUSBDN4Sdv r1lbcztgkmdCXZc6bE6thNU= X-Received: by 2002:a50:996e:: with SMTP id l43mr102049233edb.187.1560868821425; Tue, 18 Jun 2019 07:40:21 -0700 (PDT) Received: from archlinux-epyc ([2a01:4f9:2b:2b15::2]) by smtp.gmail.com with ESMTPSA id y22sm4810536edl.29.2019.06.18.07.40.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 07:40:20 -0700 (PDT) Date: Tue, 18 Jun 2019 07:40:18 -0700 From: Nathan Chancellor To: Shawn Guo Cc: Abel Vesa , Michael Turquette , Stephen Boyd , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nick Desaulniers Subject: Re: [PATCH] clk: imx6q: Annotate imx6q_obtain_fixed_clk_hw with __init Message-ID: <20190618144018.GA63161@archlinux-epyc> References: <20190618022405.27952-1-natechancellor@gmail.com> <20190618134253.GK1959@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190618134253.GK1959@dragon> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 09:42:55PM +0800, Shawn Guo wrote: > On Mon, Jun 17, 2019 at 07:24:05PM -0700, Nathan Chancellor wrote: > > When building with clang, the following modpost warning occurs: > > > > WARNING: vmlinux.o(.text+0x974dbc): Section mismatch in reference from > > the function imx6q_obtain_fixed_clk_hw() to the function > > .init.text:imx_obtain_fixed_clock_hw() > > The function imx6q_obtain_fixed_clk_hw() references > > the function __init imx_obtain_fixed_clock_hw(). > > This is often because imx6q_obtain_fixed_clk_hw lacks a __init > > annotation or the annotation of imx_obtain_fixed_clock_hw is wrong. > > > > imx6q_obtain_fixed_clk_hw is only used in imx6q_clocks_init, which is > > marked __init so do that to imx6q_obtain_fixed_clk_hw to avoid this > > warning. > > > > Fixes: 992b703b5b38 ("clk: imx6q: Switch to clk_hw based API") > > Link: https://github.com/ClangBuiltLinux/linux/issues/541 > > Reported-by: Nick Desaulniers > > Signed-off-by: Nathan Chancellor > > Thanks for the patch, Nathan. But we already queued up a patch [1] > from Arnd for that. > > Shawn > > [1] https://lkml.org/lkml/2019/6/17/317 Ugh, sorry for the noise, I should have done a search and seen if someone had sent out a fix already. Cheers, Nathan