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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 26F8BC433F5 for ; Tue, 11 Oct 2022 03:12:25 +0000 (UTC) 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:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RCM9SWZ+UiNecTF5RcSCtxcIdUHPHV4CWsO+WZc3OPM=; b=WplJDgfFNaSBKT sLV2iePRYiMMUwko0pcfDth7fUJXI6fFSnUQsvLNbH1XWgsW70RxF/BivqbfsMiCoidSXtW4Awo2Y Z897pLC1DntvNrr4TZn0ZQKmPtAKh5mcce6nRnjnWyRzllJxs05qi7wjTd24uOSMUgRJgR8UUAyY+ 98Pfvp3fsXyZrrihDMx+lEw738ahgDQ8rQkxhaaeXMyBkHKObkRK4gUllKVQVMmhcme5CEz84TMZy x6JdKVUA9J2RiPnvtQ+1aSBVtKmjdIxkAT0vzWnjcx8JS/8zJOMjyMrNFlce8ivoQw8BxbQfnHxdp K8UN+Rz5fVa645aA5NqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oi5fj-0035R8-IW; Tue, 11 Oct 2022 03:11:11 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oi5fg-0035Qi-T2 for linux-arm-kernel@lists.infradead.org; Tue, 11 Oct 2022 03:11:10 +0000 Received: by mail-pj1-x102e.google.com with SMTP id b15so11364062pje.1 for ; Mon, 10 Oct 2022 20:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=OTAfYsbOtFvtvqiWBTGIW5SrFGY1WvU38VWPZFuksuo=; b=PGaSR7UKyhRUOCcgSBulfS7m9SVQfRvoQ9VUGGFPWDD2PumauAxBTOVmVa6sZ72tIN FEKCqq1XTMOH9tuQ5VlUuFOsJcPJ9NmAiqqeBQsR8g5ZMQTkAfOgD+d7p9QSLQk7AhKC YmxzU9GCheoyaLuwC1Nrw7pLXlka51aqtPrMhi2EVBGrXB3ns8rMpDBNiO5wp8+OSbRs MjteoZ5roNjW2OBvIA2BajgXdZRQ7pZIeLSF7KE8MmBpuC5vaLdUv6XnD1HQAbfmYcJ1 uqEgH6M9tMAm1wbYbpFqro7SyLge4QGZu6zdhjBvc1/+nECWEJovLlEPk8ecE0Y0pNre OKyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OTAfYsbOtFvtvqiWBTGIW5SrFGY1WvU38VWPZFuksuo=; b=lheAMRIxHADq0uLeoSTJWmeZ1VS2k9TDWRPNurKLYBPP61KmGThsSxSpfWj2js7sqZ 2QUfw0ib8piPEQYRKxjmtTn7L/S6p4AY7+RBgxw33OUesxqPEWf/wSjWuIZ82BOGrxFc vafTlf0ebq/ON9sEpB0Dhe8cZV+xRIUs6HDxbrT2btbb3RxCiKfToo7k864UuKOEUwiG BU1/lTtwuO/NsWCD2eoHUIR28xTp2gauiwldt3Sor/0OxlqouPPHDnN5ZSX4ih6bbkKP gm64utUqbWOnv5SSgiPVIpBJELd1VrtP5oyGQ2OhF9w2iFmsAXmPvj/0MfbBgUbc06CF O3FQ== X-Gm-Message-State: ACrzQf2VtDccTZDgWQ//M5YNJ9wFHfAlKw1bW+/XVj1tsOnNR40d+Zmn khsv+ITX+ge+oEUQb2Jq1dI36g== X-Google-Smtp-Source: AMsMyM7AsryBn7diqfnZGV99J5DsEPP+gjPJ/BTTrBn5RpG8aEx2pM4fMziiDUvFnGmZybJ0ybfUcQ== X-Received: by 2002:a17:90a:d48b:b0:20a:97fb:3eb with SMTP id s11-20020a17090ad48b00b0020a97fb03ebmr34324711pju.189.1665457866732; Mon, 10 Oct 2022 20:11:06 -0700 (PDT) Received: from localhost ([122.172.86.128]) by smtp.gmail.com with ESMTPSA id e24-20020a63db18000000b0040caab35e5bsm7005412pgg.89.2022.10.10.20.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 20:11:06 -0700 (PDT) Date: Tue, 11 Oct 2022 08:41:04 +0530 From: Viresh Kumar To: Stephen Boyd Cc: Michael Turquette , Russell King , Shiraz Hashim , Viresh Kumar , soc@kernel.org, kernel test robot , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH] clk: spear: Move prototype to accessible header Message-ID: <20221011031104.5gvw47ocbhj52oxy@vireshk-i7> References: <20221011010116.A6245C433C1@smtp.kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221011010116.A6245C433C1@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_201108_989273_2FF67AE3 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. 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 10-10-22, 18:01, Stephen Boyd wrote: > __init is meaningless in header files Technically yes. But then I grepped include/ and it is widely used, even by core kernel headers. Why is that ? Maybe just to keep prototype consistent ? Also init.h says: * If the function has a prototype somewhere, you can also add * __init between closing brace of the prototype and semicolon: * * extern int initialize_foobar_device(int, int, int) __init; Hmm, I understand that it is just saying that __init can be used after function's name instead of just before, but isn't it also suggesting that headers may also have it (maybe just to keep it consistent) ? -- viresh _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel