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 1B430C433EF for ; Wed, 6 Jul 2022 17:44:24 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4VcEpusHUBGOLZGOaueIC6337j7BadsJb3dpmM1xUv8=; b=JQ3fUxO5nVg4Ze 9NhYzcUq3ARJ+PjlZ5fnuS0l7o1PAGZZqkOpaeuBB64v4qOKgnrxDyv8FhSI7dxRSdKl4eT71U50f +Efkrf5L2/lxv5YAGXFBYFoKuxfQq5S9CwQ1s4sOnoo/Ifupws6RC0WuWWXeXxQ7sjXuoSLA10FIV fVuiwlXmDJm0FN8K8WHxcqtlBZFsNgKtpFHXNEzsdbjFnvpXIykBzDftEASoCA9+isKeuGw+d8MQt Vt8XxqJjFSNwKhzV/vTWlJ3BwWy6yGsdNv2OUq0t8XYaib5oF5gisuc2bCtKnsq6KaKEp9vF9ya54 lDZt4+ZEYB8JU0x8qplA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o993Z-00Bm4U-Il; Wed, 06 Jul 2022 17:43:21 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o993D-00Blp1-GC for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2022 17:43:01 +0000 Received: by mail-qt1-x82c.google.com with SMTP id q16so19272887qtn.5 for ; Wed, 06 Jul 2022 10:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TG2FjICzQ0xh3fVBpczYaWRTL00g/5rABwtqlLaAaqg=; b=GzcRM/QHMNCvt0LiOl4IDf7yACBLxgINtoKLQMKFSlpnzBvvXSjPGVi6Gs2POapvas ek5tLwY266CkygyASovGpUmsZd1oIDJi/QmUCCRDWiCpa9rqKv9c1Bx3xKK9++7eUYVz WDWUE02JCTwd5VAkaX7ytRJuxE4/sjKIk0eRpzWP4NzK8DMdzqip26NkDVIdPe6mkDR9 QFB3WKM5zjBKgFiqkBKyAwOYhmseQHvV45qnEH4CDtevw68bG+MfUBPe9Y9q9QSgn7cL WYFhcJWvTEOQrHFGw8ziWB8EW18fWH8eblOzrb6Yx9CaPBQlzYM7amG8B2PkT17F/w+J jB4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TG2FjICzQ0xh3fVBpczYaWRTL00g/5rABwtqlLaAaqg=; b=lLb3cvszc3j9F8CDm/30AOlWrd8kXCmKnENJiVBgesIlMNMMV5ZQsOFeMeo/0RjabH rdh9o1QV6qA6siGxNoBKkyNoGFGB9wV+HvpIjPMlKT6QwGNMG4A2tLdKSppZCPMNq4LA f/2b3/BIPwZKWg+Dk5Xh8By6EhlBaV9XPIjB8X6kA85H4XoYyDFH9zOUm/4hZSoqkDsB 5qmKrdzepbVeIFeFD3Ap6z1bbS0/1JxU8hpmj6qwJA02/7LVDWTK7Qd1Tq2ZhZcA/sSX tDSc59KOY2Ak2bWFnCQiqm6yVRtcuAZ4mVgXHBOqFJ0OGn2uhQYPXfXlvt8ntotFmXq4 rCgg== X-Gm-Message-State: AJIora+BL72ufN8nHUgC3kB3eA4IZfOuJwmGwpuNJlP83ayOzdscGHg4 G0OcVo++NBvZbasjdfjJjDM= X-Google-Smtp-Source: AGRyM1s333Xv6gpTJXmluiXObWwMdV2ybLffCIbKwNaD2x7UvScSwWF1yaI3o5Vabou8zRCSQJDVvA== X-Received: by 2002:ac8:5956:0:b0:31d:28dc:17c with SMTP id 22-20020ac85956000000b0031d28dc017cmr31947503qtz.295.1657129377974; Wed, 06 Jul 2022 10:42:57 -0700 (PDT) Received: from localhost (c-69-254-185-160.hsd1.ar.comcast.net. [69.254.185.160]) by smtp.gmail.com with ESMTPSA id bq30-20020a05620a469e00b006a785ba0c25sm20860422qkb.77.2022.07.06.10.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 10:42:57 -0700 (PDT) From: Yury Norov To: linux-kernel@vger.kernel.org, Andrew Morton , Andy Shevchenko , David Howells , Ingo Molnar , Geert Uytterhoeven , Jonathan Corbet , "Kirill A . Shutemov" , Matthew Wilcox , NeilBrown , Rasmus Villemoes , Russell King , Vlastimil Babka , William Kucharski , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Cc: Yury Norov Subject: [PATCH 01/10] arm: align find_bit declarations with generic kernel Date: Wed, 6 Jul 2022 10:42:44 -0700 Message-Id: <20220706174253.4175492-2-yury.norov@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220706174253.4175492-1-yury.norov@gmail.com> References: <20220706174253.4175492-1-yury.norov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220706_104259_584766_CA9BC390 X-CRM114-Status: GOOD ( 11.95 ) 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 ARM has their own implementation for find_bit functions, and function declarations are different with those in generic headers. Fix it. Signed-off-by: Yury Norov --- arch/arm/include/asm/bitops.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index 8e94fe7ab5eb..714440fa2fc6 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h @@ -160,18 +160,20 @@ extern int _test_and_change_bit(int nr, volatile unsigned long * p); /* * Little endian assembly bitops. nr = 0 -> byte 0 bit 0. */ -extern int _find_first_zero_bit_le(const unsigned long *p, unsigned size); -extern int _find_next_zero_bit_le(const unsigned long *p, int size, int offset); -extern int _find_first_bit_le(const unsigned long *p, unsigned size); -extern int _find_next_bit_le(const unsigned long *p, int size, int offset); +unsigned long _find_first_zero_bit_le(const unsigned long *p, unsigned long size); +unsigned long _find_next_zero_bit_le(const unsigned long *p, + unsigned long size, unsigned long offset); +unsigned long _find_first_bit_le(const unsigned long *p, unsigned long size); +unsigned long _find_next_bit_le(const unsigned long *p, unsigned long size, unsigned long offset); /* * Big endian assembly bitops. nr = 0 -> byte 3 bit 0. */ -extern int _find_first_zero_bit_be(const unsigned long *p, unsigned size); -extern int _find_next_zero_bit_be(const unsigned long *p, int size, int offset); -extern int _find_first_bit_be(const unsigned long *p, unsigned size); -extern int _find_next_bit_be(const unsigned long *p, int size, int offset); +unsigned long _find_first_zero_bit_be(const unsigned long *p, unsigned long size); +unsigned long _find_next_zero_bit_be(const unsigned long *p, + unsigned long size, unsigned long offset); +unsigned long _find_first_bit_be(const unsigned long *p, unsigned long size); +unsigned long _find_next_bit_be(const unsigned long *p, unsigned long size, unsigned long offset); #ifndef CONFIG_SMP /* -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel