Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1874443imm; Sat, 18 Aug 2018 06:18:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzKasCj/qXUlAZ7rNoKff6q8RLaVFGXjhXaN47jM0BtoQfXVVqzdD+rJRXdWj1W+ULMPLoa X-Received: by 2002:a62:1016:: with SMTP id y22-v6mr40685373pfi.109.1534598302203; Sat, 18 Aug 2018 06:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534598302; cv=none; d=google.com; s=arc-20160816; b=V5B1UBFOhth4Gm8DjtK1+m8UUgp4ep2qwUtcVz8Bx34uoleTy7ixC/G4IZ2pwkEFKL AswZk6tS7M82/FAMcxR6axMh+wYUORUSuIefc6uBE3sIk/JXUc2utjnQQ3TY8MMdH/fX K7HFQ4n05zP/kVBxyFw4/iUk8NSUTIxDB4vcagKMd00nWqAKy7w+b45d0WExM5pMI9B3 r5Yt3TmTItmBAOspVpD7XdCWnSbYpaRAEAo4YVhei/lsbR7JfmnEKTs28b4N33Ldfvyx p/dw4iDP2Bg5EHVTWYEcNLHFhDLWfhL+kt7SnqBN57kMpJp3f52T1HoL4W1O9AWIm8D7 d3JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=lmTWYIQQOtE4/5RY0etly6z3cOLAqH7ynCF1mxwixHA=; b=a9LVzLf51JChkw33vYWwUQtMc9KcwrUQxuA4Ry2JfmpDBIc5j52sGsQl50XzMSss5i gQp/19B6KaHtWuV6M7TsT0tpTfXO5ZnewCmSHxRL5BkcjVg4IpYzcT/AxuwpaV0iDMzC YRBNyMS+uVrPdNEDeKOFRHBcd0uAZzy/nQxS9uTjWQ/1J1M2W6gHjr+tmDTR0hGMIQOP x5d1m41bep6Ipxz7YCym6d85NDO8wkp8fLETRUs0wYQcm4sma2SkceiRniGFUV3Ld+DQ U4HMKDWpzNFTjLoUtj8LXVmbpIOuIBEsEihufntUGnCq6awwpW2snJjjn3KxnUOd8ovu 1x5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Fp5QBosY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6-v6si4401342pgc.659.2018.08.18.06.18.07; Sat, 18 Aug 2018 06:18:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Fp5QBosY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbeHRQYd (ORCPT + 99 others); Sat, 18 Aug 2018 12:24:33 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:35637 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbeHRQYO (ORCPT ); Sat, 18 Aug 2018 12:24:14 -0400 Received: by mail-ed1-f67.google.com with SMTP id e6-v6so5965982edr.2 for ; Sat, 18 Aug 2018 06:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lmTWYIQQOtE4/5RY0etly6z3cOLAqH7ynCF1mxwixHA=; b=Fp5QBosYnh+BPVlpc484bgRtqNY5VALr9ETlM7jIGnQI9H+OHBBjzykXubzaQlUqwu q/SVQRTTrS5WG1MsnmRVWp5KSjzZ0Y7jLkz2yX5/CtETaLb8QbJJQ2afc6v73agMHcbj aiA9Y7ZYwZLLwWIIEG+BXnI4UF8KwlLzDJPUM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lmTWYIQQOtE4/5RY0etly6z3cOLAqH7ynCF1mxwixHA=; b=UW3DNX82zPxBUNlqTjP4aYZuYhii4leyPXhVl+5sXVnYTjUMjbbWA7YlukPnAIE2Y8 OxJI4DZiPQ80cqgXxrLYKgqAwtsknwmN9ADZaFecJs+U2ijRtwNc1PdmeQi0+6QijKOU jKaRpQHP9CbsQ67Wk8huqZquEQrqcEo/Cd2Hy7M5A9J880nbRQSmDSXQRGXn2evigT58 u+7OPCXU04gm9w7sG7qaEyXiipW8KK2q4CxifZb+B+c59sn0qvfZ7quBwgAOnSFuvPeG tJl/UIrY66YLZVxDm3Yn1dzy/ALYBGCv54jetEAujGThS/h2/CVpJyy/8FxxP4chIN+g dKBg== X-Gm-Message-State: AOUpUlFm00Wj55d69rpZLXztMYHaLsMH9TeMCj3Uw1jxiE/jdOIoSi6y rUSL1T/a9GZfP9iHgsX6jSy+AA== X-Received: by 2002:a50:8921:: with SMTP id e30-v6mr46828364ede.213.1534598192287; Sat, 18 Aug 2018 06:16:32 -0700 (PDT) Received: from prevas-ravi.waoo.dk (dhcp-5-186-114-212.cgn.ip.fibianet.dk. [5.186.114.212]) by smtp.gmail.com with ESMTPSA id r11-v6sm2821403edp.60.2018.08.18.06.16.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Aug 2018 06:16:31 -0700 (PDT) From: Rasmus Villemoes To: Andrew Morton , Yury Norov Cc: Andy Shevchenko , Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH 4/7] linux/bitmap.h: fix type of nbits in bitmap_shift_right() Date: Sat, 18 Aug 2018 15:16:20 +0200 Message-Id: <20180818131623.8755-5-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180818131623.8755-1-linux@rasmusvillemoes.dk> References: <20180818131623.8755-1-linux@rasmusvillemoes.dk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most other bitmap API, including the OOL version __bitmap_shift_right, take unsigned nbits. This was accidentally left out from 2fbad29917c98. Fixes: 2fbad29917c98 (lib: bitmap: change bitmap_shift_right to take unsigned parameters) Reported-by: Yury Norov Signed-off-by: Rasmus Villemoes --- include/linux/bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index a7a8b5017d62..e34c361f4a92 100644 --- a/include/linux/bitmap.h +++ b/include/linux/bitmap.h @@ -383,7 +383,7 @@ static __always_inline void bitmap_clear(unsigned long *map, unsigned int start, } static inline void bitmap_shift_right(unsigned long *dst, const unsigned long *src, - unsigned int shift, int nbits) + unsigned int shift, unsigned int nbits) { if (small_const_nbits(nbits)) *dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift; -- 2.16.4