From patchwork Fri Jul 1 12:54:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 12903263 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 D5838C433EF for ; Fri, 1 Jul 2022 12:55:56 +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=pQ36EzONK+psB8U8Hzgvs7EWfffj4yBR+UaPjhrtcW0=; b=IEpvJqQadsPeoR wPsQ9qdIVjJWXc6wn3VooDmtGXydpCssKRpjTudl03/rU72+Gr2z0OyJ3lHqDgpz7o0dNrfrwXML+ SNszkcjxL5nQBhQ54d32zkXqEBne65ZoOZa93aBauX2WVq0FnjsXzZFx90J6rWhov4qAni6MEFPQz 3CmtypNU9Ny6c+arT3MguakPb++oPMxXfpnxN9FKhkcXp5R+z1/ETAegQk3rzVdyopyrEX6nu93sS rdMGnSE4xwFYybDmDeFiK+uicVUfPDmzVxuNfDWX/WEXtxddGBZjEgl+fuwpbRGgZslZhPJ4+CH1o OvLze6we4OX5Dr4OYPHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o7GAd-004ri6-Az; Fri, 01 Jul 2022 12:54:51 +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 1o7GAP-004rXS-IP for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2022 12:54:39 +0000 Received: by mail-qt1-x82c.google.com with SMTP id g14so317056qto.9 for ; Fri, 01 Jul 2022 05:54:36 -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=Qf2IJbNq5eW3VuHqv6bkicUYgvnao7gcu8sVy6amOmo=; b=X85il7LjPAt9zWAB67Eobl/y7ZhG5q8tm61Ejq979W9cETHN0TRm3+Alwm3Kw0vLSX nAFJ3wePj05VbmPvuG5WFM+i/B+7YCsH3evgdCFdHIJvGd8EczuHQFfaTnAVv6+FXuDH KkuCHPgkpc6tmhlRaDSbxi5rD38YZRoG7Pvt8EdnjTGZE9ekzVhoHQPVtu0M9CffJcct 1O45tqAScfM7PMu42n9eLHxrJtuar8toe32hlW1sKT88d+d08wNLYG07HtMoGZ3iGdmx frrYjvT6w8qBMkokOtKpsKGDF7pi1pkQgj1jEr6uTVY8JQyLhtSfM15gUnkX4HD2G7HM VvaA== 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=Qf2IJbNq5eW3VuHqv6bkicUYgvnao7gcu8sVy6amOmo=; b=CniZOqipflZlpesDBy9vOvkey+xMCbxo+ZdR/GOtSCJISI27ORNArCxMAHksudJzec JJ10zm4oTiNyc3P+SD+Ce/rIJiPNHAn+IXFOBWsB/bxu4BIFu1n0GXJ7sffYgJz8jE/S FGZnvNfaoxFo8dp7xfQPEjQot9TnWUx0CE11ZXFaPBbu0orgqeKIFSjlv7ANOuQ40BJX NMauIELuFIFwD4QbUivSRs0tppWIozCqcn5nXHn9Wr9jw5iocBgfO3Dg7pSSPLCLqB9A ZwpgzqO/6fjVl/r87+J+yf2lRKwCHgzvifolbzrWoPyqzMl8THpwtyXaFSMcBvj0Odzx u6cA== X-Gm-Message-State: AJIora8VLKoi1h1O27Q4zMCedArtxraXCt50vTGKU20CE1B6jG8Y4wVT W8c9w2PJ88NJW68rt7cb24c= X-Google-Smtp-Source: AGRyM1ttFUmBeYINzMtgxAB593d2CjAf/nUfjUgw68izLmGsHRH3ClZaKRtaiB2+ru8bhpuTqe4nrw== X-Received: by 2002:a05:622a:58e:b0:317:c840:de91 with SMTP id c14-20020a05622a058e00b00317c840de91mr12491940qtb.245.1656680075497; Fri, 01 Jul 2022 05:54:35 -0700 (PDT) Received: from localhost ([2601:4c1:c100:1230:f902:9816:653f:2f66]) by smtp.gmail.com with ESMTPSA id t23-20020ac87397000000b0031beb4e060fsm7655979qtp.94.2022.07.01.05.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 05:54:35 -0700 (PDT) From: Yury Norov To: linux-kernel@vger.kernel.org, Andrew Morton , Andy Shevchenko , David Howells , 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 1/8] arm: align find_bit declarations with generic kernel Date: Fri, 1 Jul 2022 05:54:23 -0700 Message-Id: <20220701125430.2907638-2-yury.norov@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220701125430.2907638-1-yury.norov@gmail.com> References: <20220701125430.2907638-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-20220701_055437_640761_080571C2 X-CRM114-Status: GOOD ( 12.18 ) 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: , 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 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index 8e94fe7ab5eb..a83c1d9abbed 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h @@ -160,18 +160,22 @@ 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 /*