From nobody Fri Jan 31 00:09:29 2025 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED3ED1FE454 for ; Mon, 27 Jan 2025 07:29:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737962998; cv=none; b=YuC0BaOJi2En/NG9+EZyQ3mTT39sz7ThG+C8jZnC6CfiXyQuovdxxSCy/zG51qAIdkmsF9zdhhsEMYlHeSAeIyaJrJxLFmEGX0YvP6NuWZ2FS79rUCtCv0sDDHqWt1CjmTioZg9ohz91zNXsH+9AlDw6GcmENPcexh2mbBJ1Fos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737962998; c=relaxed/simple; bh=+6d9AfTSxYRYZT7CBVVbUJEibwaLY0ntQMOAfQXEevQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FBMVeQuQvntq15V0JcVYUwOOqxJmXA+/zrScTB+2iMwzkyGmbiS6NtnrUsGPq3jOiI2d9vzPbq4r+bMR1gqFMsqTg3DPdS5/lYKLIafAb+M+bWDAAwKiiSa1x3QLLQKiVadTI50YdhTic0Larl1g2TRT4uZlo/0WGqGFbcTrHcs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=R4x4dpVt; arc=none smtp.client-ip=209.85.216.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="R4x4dpVt" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2f4448bf96fso5372247a91.0 for ; Sun, 26 Jan 2025 23:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1737962996; x=1738567796; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZMKoDSDfvoX+go24fej91nvl1Fy002IINq4VDAWYIx0=; b=R4x4dpVtAPw/IT9aayIXFWmjZgsyTbSnfoB9uahPO/rXU+NqzMwAL07WohxiiGvV7T JbGQI7vO6Bmn7IQaZorrO984ZDLsLuY2G4prSeXwNwDKjtVbftayHBLoo7PZiXSENYEn L1fHXUItgHQ+gVhqUsiI4V+a0P1A57fzW0Z8A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737962996; x=1738567796; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZMKoDSDfvoX+go24fej91nvl1Fy002IINq4VDAWYIx0=; b=pTcdkAOi91TSpPgmqohRw/lSVcT15waXrnjpanvMcN7v9+VyYfich0D0z9SrRoQ0SI vMQKl5yMip/FIKdkPCsWWuPzL39Tp7moH3l6MPY9OJPm1K3MUq6IvcLDKcuvt6C+7Bm0 Ks3JIMqf+WGy72H+hYL0X/JEQJbjtFxAu9pKLPeqkeHJ27TtHpmOAX9YWGvWcZqu2b6Z 2jNfHcDeIMTNJeZwICiZalTHjOPvxvjUmJjU5QUYoqxJkCwx665fEMMOOHE/3UCsipA5 4aNm8lTpBXKztjFw5XM4v7kGdnHkmrD4x1Fps3vDzziFjz1zN4cNQIl/roWe0IdFY+L+ rfEA== X-Forwarded-Encrypted: i=1; AJvYcCWkrfhz4b+tYRVYNA7/n0V5BOGUyIT4hdJVsZBcLul0e/pKmd538FHhy7eyIHnu7PTsbHQIjb2rltm7Xa4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3AtSxyFK+iIaPghmEw5fw+xzXopAZXrfZievAqsImcRjZxifN MVe9Cf+PM6r/JwUEVpBurvyaffa2nOKVS/pTxvyYdOQbRP3UFaDbQe5s1kLfIw== X-Gm-Gg: ASbGnctqT21lo9uyoEG7siw9CKKpm1DAf40BoQlMZDq57dSXAjq9kmi/vObjTrrAy+y kEkx473/MyaPIZS/hkZ4uWJklGfC/QRCDfym9VI+DlthF4Xfmf7lOZf+zio+iEwFwVGVy/2xsjw DVOu17z9Zxlf9vk0lPd2BivEzDADXumSjX8NaXzcQcJUGrRM8Jr31ZOuX3dAKpUVoYA8tb9sxQ+ PRnzgavH0Pdhjje4OLIwaxY8hYOTKrYz77kgxnD5U6hQpaa2DCwJPgBl3WNGa4MZYw9am38zvMY 7Ot8QPE= X-Google-Smtp-Source: AGHT+IEfwUI8auttHRk1qh7AN8+U6mvQ/O5WBUL7JmvN0YslOiw0cRVxh68/cSFEaaq3Cgj0hlneng== X-Received: by 2002:a17:90b:2803:b0:2ee:ad18:b30d with SMTP id 98e67ed59e1d1-2f782c4bd4emr8745204a91.6.1737962996210; Sun, 26 Jan 2025 23:29:56 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:566d:6152:c049:8d3a]) by smtp.gmail.com with UTF8SMTPSA id 98e67ed59e1d1-2f7ffb19938sm6431742a91.45.2025.01.26.23.29.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Jan 2025 23:29:55 -0800 (PST) From: Sergey Senozhatsky To: Andrew Morton , Minchan Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCHv2 3/9] zram: remove crypto include Date: Mon, 27 Jan 2025 16:29:14 +0900 Message-ID: <20250127072932.1289973-4-senozhatsky@chromium.org> X-Mailer: git-send-email 2.48.1.262.g85cc9f2d1e-goog In-Reply-To: <20250127072932.1289973-1-senozhatsky@chromium.org> References: <20250127072932.1289973-1-senozhatsky@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove a leftover crypto header include. Signed-off-by: Sergey Senozhatsky --- drivers/block/zram/zcomp.c | 1 - drivers/block/zram/zram_drv.c | 4 +++- drivers/block/zram/zram_drv.h | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/zram/zcomp.c b/drivers/block/zram/zcomp.c index 982c769d5831..efd5919808d9 100644 --- a/drivers/block/zram/zcomp.c +++ b/drivers/block/zram/zcomp.c @@ -7,7 +7,6 @@ #include #include #include -#include #include =20 #include "zcomp.h" diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 486068dda395..c1ecaac0b39f 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -43,6 +43,8 @@ static DEFINE_MUTEX(zram_index_mutex); static int zram_major; static const char *default_compressor =3D CONFIG_ZRAM_DEF_COMP; =20 +#define ZRAM_MAX_ALGO_NAME_SZ 64 + /* Module params (documentation at end) */ static unsigned int num_devices =3D 1; /* @@ -1148,7 +1150,7 @@ static int __comp_algorithm_store(struct zram *zram, = u32 prio, const char *buf) size_t sz; =20 sz =3D strlen(buf); - if (sz >=3D CRYPTO_MAX_ALG_NAME) + if (sz >=3D ZRAM_MAX_ALGO_NAME_SZ) return -E2BIG; =20 compressor =3D kstrdup(buf, GFP_KERNEL); diff --git a/drivers/block/zram/zram_drv.h b/drivers/block/zram/zram_drv.h index 3436ddf8ab23..045032acb22f 100644 --- a/drivers/block/zram/zram_drv.h +++ b/drivers/block/zram/zram_drv.h @@ -16,7 +16,6 @@ #define _ZRAM_DRV_H_ =20 #include -#include =20 #include "zcomp.h" =20 --=20 2.48.1.262.g85cc9f2d1e-goog