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: 12903254 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81A86C433EF for ; Fri, 1 Jul 2022 12:54:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A8F66B007B; Fri, 1 Jul 2022 08:54:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 031B76B0078; Fri, 1 Jul 2022 08:54:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DEDC36B007B; Fri, 1 Jul 2022 08:54:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C90F76B0075 for ; Fri, 1 Jul 2022 08:54:36 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9012033C0E for ; Fri, 1 Jul 2022 12:54:36 +0000 (UTC) X-FDA: 79638524952.12.11B2A51 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by imf28.hostedemail.com (Postfix) with ESMTP id 3F35EC0048 for ; Fri, 1 Jul 2022 12:54:36 +0000 (UTC) Received: by mail-qt1-f176.google.com with SMTP id z13so317620qts.12 for ; Fri, 01 Jul 2022 05:54:35 -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=SV1vkmc14nIst/uJ+yGhpPXV7pw989m1DGDNdLda7pGwVVXu4ne+E5w3iXxDiZAwpY G9DS9dXff8pUe+Ltjp/OIuZktM4uXHz1V6t73XB+W8IRBE8YGcoz10/m6oKdYo5GrCaq h4KThp7RWTT6q5BzVrq5csq/im8SqhLGBGNz+mrAfjK9PQkuSfW6n3YJ3fFV5ntiPoxr 36EQUfKfTe3UupUI3XyKIPnQ6slIuyGyZDvtBykFedPunKPyg9W0bbxHzRsnku+Sejpq SyUCiarLJQ73rzAEToME0Sco2IGNQ5rgTemN/5Cjoq/iSrU/PNoTrk2CjfHPBjypEDOs fIEQ== X-Gm-Message-State: AJIora/wxIhsI6ZzlkgCv63EXFeRi8TjcFri5Y0XjUd/YZpqi3RAZDi4 NjnJynd0bkOvi3glY8WWXFp3Z+4DRDg= 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 ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=X85il7Lj; spf=pass (imf28.hostedemail.com: domain of yury.norov@gmail.com designates 209.85.160.176 as permitted sender) smtp.mailfrom=yury.norov@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656680076; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Qf2IJbNq5eW3VuHqv6bkicUYgvnao7gcu8sVy6amOmo=; b=ObeyJRHxYEKUxjFcDdzcMyF90WAhYNaqWlVwQBUMGn+rFKu3ZXgzrfS7ZdSwPROkWUwK/T CD0DvqM6LigNz6NEKHyiXDrlDgnV/+Wj+ZwvPvz2SQ7wuxdYsOf0KCoO4kLmKuKeAFB+fa 0vDKh1W1IxqMHoYYUGpexiYq8UEGwS4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656680076; a=rsa-sha256; cv=none; b=ooBzqpYkdYeT7wJoQrMYVZ80kKNMK33MVX+B7ECUAJ3VgVB4NYDTU0X78hTss3Rv8pDdK4 nrgND+r+1biyM6unjqQ8GsMRZIqJVnChy/SFoa5g54rsu23W+FvdMa7CSGRYqPvFsnKkqG fRza9s0st5neOJUm1U0zfZhCYh9iWNs= X-Stat-Signature: by1ejk43mek3ff5zqg7oa71n5yzxd1w9 X-Rspamd-Queue-Id: 3F35EC0048 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=X85il7Lj; spf=pass (imf28.hostedemail.com: domain of yury.norov@gmail.com designates 209.85.160.176 as permitted sender) smtp.mailfrom=yury.norov@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam12 X-Rspam-User: X-HE-Tag: 1656680076-51834 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 /*