Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1722368ybg; Thu, 30 Jul 2020 00:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2tMMvk+IoYE1flzCu4mSYIA1nYZ2Kha7aVDCRmmXl5ozIEZapdOnZOx1beljg2PfR4V+u X-Received: by 2002:a05:6402:b45:: with SMTP id bx5mr1429959edb.22.1596094135477; Thu, 30 Jul 2020 00:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596094135; cv=none; d=google.com; s=arc-20160816; b=Ftm710JaO9hnhSYgf8+Kj1abRGdgA35Ypy29vjVf9a2cvLlX2guTkfKQJY6h1DahHi mjBfcMcZ8mYBDEI4LXzQMEN0v/p+eiZ8G8NiwKanziYZfRXDbijI7o6djSZjDnARc1D3 GKWPkwqrV8UzUJCgqQpI07bLazMPkJajyvIooYf3mgooL2qhuqK5Aslt8Z5USfMs3jel CellR5BjdNxkTLzxfBLgd+kVLmWhOLZGDEC5Ae9foIMHkty1QIGK9LwUNlL2Bc+9I5tY T6H0M3RyHGErIee8f7ypxCnfW37CBkQr0SyTGnTSm9M1eEHL65lOe4HPw3wPSTTaGOPP yEZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=DWC196bdbYy+OA8+bk/jXcZtOHvkbvRNRLQ1tNoHraY=; b=trL2UO66loTgZ2wGESdNS0BIIqSCRrlxJcEViGNgdtkPzxMWI9BA92VHmvGZpV85AV SyqCijHR4W78k8LgcC3/xlQRTLKHD1WXt73w12XiEZOSt1yG57Yp6S7P8uN5oIZoPXYZ zDdQ6LMa5pmrnT7ZzStA8NHFuI6jdxUqSHbKU5AYRe5+DIjR+6SVAKyh+DSe+GSnP+0c t4h1xPt/wHOSpPY0nLsKGxWEO+cIB73kqQBGimFZ2ajlPeh488RhtCmcv/hp7VmIms1y /bnbUCTqK0dJR09NuDjoEE8QIOMHpFYeTChtbwDaKrDeblfU0HzhTMj6tr5BX2ByQGuU O4Hg== ARC-Authentication-Results: i=1; mx.google.com; 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 i20si2725626edj.383.2020.07.30.00.28.32; Thu, 30 Jul 2020 00:28:55 -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; 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 S1728937AbgG3HZw (ORCPT + 99 others); Thu, 30 Jul 2020 03:25:52 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:37009 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728891AbgG3HZw (ORCPT ); Thu, 30 Jul 2020 03:25:52 -0400 Received: from mail-qv1-f53.google.com ([209.85.219.53]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MD9Kp-1jsUE31pDt-00959j; Thu, 30 Jul 2020 09:25:50 +0200 Received: by mail-qv1-f53.google.com with SMTP id a19so6086533qvy.3; Thu, 30 Jul 2020 00:25:50 -0700 (PDT) X-Gm-Message-State: AOAM533aIqEn2mpnxT+wj8g9dJqz/zbFTaNhs+MKrKoOFGaRPIAYkQk3 Xg6PLah6aeoYg5L0pCIF2JiKMRGs8E8KFXeLOz0= X-Received: by 2002:a0c:b5c2:: with SMTP id o2mr1540145qvf.210.1596093949221; Thu, 30 Jul 2020 00:25:49 -0700 (PDT) MIME-Version: 1.0 References: <1596034117-24246-1-git-send-email-Anson.Huang@nxp.com> <1596034117-24246-2-git-send-email-Anson.Huang@nxp.com> <86ae1d4e-27c9-07e4-73be-37d490cb0063@infradead.org> <34161e5c-0e83-97de-3cb6-1040d8abdc71@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Thu, 30 Jul 2020 09:25:32 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed 32-bit value by 31 bits To: Anson Huang Cc: Randy Dunlap , "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Aisheng Dong , Peng Fan , Abel Vesa , Andy Duan , Daniel Baluta , "yuehaibing@huawei.com" , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:TAaq4YmSI4FU3F8/B28S4g5SJrjn2jR1x/gJRJCjQinhufa2MP4 cWSxat9Td7fm9KccJrxej8NrNXWcStCmgtJx7GyS0ubbJEVIH8CtEjjm/Cj2zpYbxsaHHL5 PaFpwlXgX0U2udf8VBzIOet+4ffsRrm/59BuT6dBasFF1CqJwsgMsYskEshkKvQifWddoCs inYM16nfVTQsBZgXz5Lag== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2HoLvJI1isM=:WRrah1Zx0obHqCk092nmim mNmU1GU4Vimj0N2pXtF/jl5lYr45PwQjF/MRsOmB1ZW9OsnF3Ty59uNHJFRaaYyYoQwb8PieQ JQzaDhJNFZqOrdLIHQ3T7eu8ndcuWiSbfsk8NIOJAbwmPwC/CLczDdXu6h3zfqAcrTmvQ1ddX T63bo6gN/O01Wa3rRib594DDmNVdtN4TQFeSTVvpYamtcXFTm4DzD5/x/jlTnFx8ckrW0rIRN 5uVqF5TrCMGsimBnjUTMaUK9PN7wFeN+fHof0eCCDluzegxmNm6duTbpyfegIBP0lblV3Llx2 QfstSMemJoJ2oK41lE9lBrVE6cnxK8Lz20lwxl4P633ghC9Wc9WVEZaBduLaQ5mAnL1W7x5r4 n0aUhTHPBUej8N5on/Q06OrwUDoodhhoyUN5KMouJ+Sw4pYY0kAG1w+lKAwexNxlAoBoRrXzx AUUKHVyiia+TiEJTzV7HxqfYrddkEvHM/JNNQi0JPk/S5X1khFlNto7FdbiGuQF8Ubt0UitXU 8jEhxyrIgEkG1iuHpn2wRJsbE061soFMPvkxfZkkEI1ehYxlYcKZ8CuaKUeEK1WBXkfQibFEy 9dj3S9zWelr9icMANdfsGTYGnnOGjmdLi9chsWH78SmLoAJ9s+wqaeQIRXQKFtWRiABeVHg0L tiqGfxsiavrWrdS4tQ8CZEDzTezyE/jkB5pMpUUBE10R97FW3gcgsmGbYIetG6fvUilUerUGN l+Jfx/ruyDgrTCrXoztW4vfGkbWfL8/sqMFl4DB5j5N+5EoUve1smlu1XYHNdbE/Ih9GfPhFU aeUHwE0QxpBGbLkXMN+nTVvYIsQFPLOt7FPLLcHsVY4wPTGOBPNGWX4TRI220ufPZuBL7m/4O Yq1iywJ/qJ2jwY9BMdw/miruyiA71HUrxAsJNeLL6qDe858i7sChf4RrdSL2wS03hDiTkBIM/ R22JQEG1G6GFRJ5nKrWL8RUTAVRXOgY94M7X4KXGSQTLglVsAxlv3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 3:14 AM Anson Huang wrote: > > Subject: Re: [PATCH V7 1/6] clk: imx6sl: Use BIT(x) to avoid shifting signed > > 32-bit value by 31 bits > > or you could read Documentation/process/submit-checklist.rst, > > where rule #1 says: > > > > 1) If you use a facility then #include the file that defines/declares > > that facility. Don't depend on other header files pulling in ones > > that you use. > > Understood, while I search "BIT()" in clk driver, most of the drivers does NOT include > linux/bits.h even they use it. > > But OK, I will send V9 to include it. Ok, good. I have a patch series that adds it to a lot of files. Note that linux/bitops.h itself is a fairly big header with everything else that it includes, and it is included almost everywhere indirectly. When we change the other headers to not require linux/bitops.h any more, everything that uses BIT() needs to include linux/bits.h. Arnd