Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp843791pxb; Sun, 21 Feb 2021 02:15:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/R8aST6aVxO5Dj1eL4AP9GHtSW4srgj+2N85/8kYG6N/q3yxR/bKRZMGfCuvpGtbYlYfH X-Received: by 2002:a17:907:3da5:: with SMTP id he37mr16184115ejc.300.1613902528413; Sun, 21 Feb 2021 02:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613902528; cv=none; d=google.com; s=arc-20160816; b=kk60KZaNuTfDAdqk6YjTCOA4mxa6XwgOAAioNaviSTS/9griAEC4gygMsUtqBSnj6P vO0N6WZFVNRojCZGLM8cJNg2lhRWOEpcCxoPF6G8nfw0tNnS8X9IMqcJlpl1Tq6DWBOi oLK4uH8Jq+Uvpjbw0q194w74rMtZAep2ZjZgfQt6wtVqFbiVgvBg2LBmt+KFgGtaK6K6 bQAjLNQRUcmm35zTXhNqa+zYeYXrux45jbf72nAUQzt4Zw2cVq3jHJM4B66blSNkmnIA G3w8gK+eQb8iIPHltYwhu0WQzUP/H3csxKtjIDBfoo37EhoaDDHTcx9gZODLa+0TNna/ 84FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wa+uDqai5FO8EqQOT4ZyA5Zo9X7Xp8q4ul//4wyTkAU=; b=aLPnJIh4KRgbB0D1auBLkROnsttEqJ6MN5XaSoe3C5NpFY+yI7mjduy0ce9Y2+idCB HbBrha8DFeJyslNu7ABFxLnf+NZLBKU4tT8Rp0rI4ciDrymbheyhhsszBgpjHHddj4Cx H+tKfgGtYEgowNXhNQ26V6srzD+FaCR1NjaDWd31Pvwu0niBNrc0aOjzTl3N+bQ+vwTV 3Z855ZXJG0jrhOr5Kw1QAucr08vjFpsNLJXUacEwd4nuOWU3qlzWzI1gs+oQzBhLRgcd bTpxkYzL0vRdzQGDUuNN6mu+3AO6r37iPsJ63KbnZLgxEkNOcQkk4cbvKMOlLyrhmX3h 5fdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I83zqoqH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si10387120edq.147.2021.02.21.02.14.48; Sun, 21 Feb 2021 02:15:28 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I83zqoqH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbhBUKJF (ORCPT + 99 others); Sun, 21 Feb 2021 05:09:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbhBUKJF (ORCPT ); Sun, 21 Feb 2021 05:09:05 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 949C3C061574 for ; Sun, 21 Feb 2021 02:08:24 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id c8so46272813ljd.12 for ; Sun, 21 Feb 2021 02:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wa+uDqai5FO8EqQOT4ZyA5Zo9X7Xp8q4ul//4wyTkAU=; b=I83zqoqH6/lq+F6L3SuRyN83+v1zg3bMGUnchLJqRzr1IdDITC/KBdcH0IuMWWrFYL 3+xxGW3DgfRykBTIx/glhJykPvTcICG3l5MUPvYEo0ACIITn5he8wMa0UbfbwHtHQC7s SxgatgOTyNBpshNYxdsskovYXaa7JlCLTXezZbMtyGzaOhZdhzaaoF8G299YKN2FaFHi fN8BS8WUudMf1b2v+rAfMQhrnb3uLuknDRF5aRczcqv9eRPNY0gKhQVTh4wsN4gS/kZY 9vuqwnVupWLR3ngDiboXKVm85tDMT63rPmdQHWhT8U+eC0dWl8UPcQhYQXkIPCkk+gEO 2QMQ== 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:mime-version :content-transfer-encoding; bh=wa+uDqai5FO8EqQOT4ZyA5Zo9X7Xp8q4ul//4wyTkAU=; b=fstpFsJipvc8NzE+iclgo27Eve6vNcFMohhfjbA86ke3nbu9ZeREMOEPWb0ntfqAkX g2HGqaCasYdeypB8lkjRHcHLfmnmJx0g26tXp1aSmEAfvhmr8/8CISUwlHJn1AUo7kxt YcWBy0KWD+/fj9S3fDpTIwL7dDpAnbp1bIPezFqh0Im5vNYa8uECCzdxJ+4GuRSc/uuD +RL+t6Zn+r+YhTT/ioilz/GcDdJ1MHXOniRWI+O7OOzLU05q5OGN2xCtm+0S0UrD5DCm NquX21l54OZCsL+qSs1syJQGjFSM1aRJBEahn7M3sd/lNgdnU/XgTSdgfq7MGHx1qQGL x9jg== X-Gm-Message-State: AOAM533r5qDlH4ELE15Gr7DGRvJmB5ADhs99jYH5EYrmNsICTHhmSiMc 0q5oCrmLCXt5/K1NQ7iM4L6tB6cJ26BDug== X-Received: by 2002:a2e:b0e1:: with SMTP id h1mr4717824ljl.436.1613902103205; Sun, 21 Feb 2021 02:08:23 -0800 (PST) Received: from localhost.localdomain (cable-hki-50dc98-67.dhcp.inet.fi. [80.220.152.67]) by smtp.gmail.com with ESMTPSA id b8sm1509822lfo.84.2021.02.21.02.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 02:08:22 -0800 (PST) From: Hassan Shahbazi To: akpm@linux-foundation.org, sjhuang@iluvatar.ai Cc: linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, Hassan Shahbazi Subject: [PATCH] lib: genalloc: fix warning generated by checkpatch Date: Sun, 21 Feb 2021 12:07:57 +0200 Message-Id: <20210221100757.68753-1-h.shahbazi.git@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing blank line after declarations. Signed-off-by: Hassan Shahbazi --- lib/genalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/genalloc.c b/lib/genalloc.c index dab97bb69df6..3e901fd93b00 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -757,6 +757,7 @@ unsigned long gen_pool_best_fit(unsigned long *map, unsigned long size, while (index < size) { unsigned long next_bit = find_next_bit(map, size, index + nr); + if ((next_bit - index) < len) { len = next_bit - index; start_bit = index; -- 2.26.2