From patchwork Tue Aug 24 06:07:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CGEL X-Patchwork-Id: 1520093 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-ide-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=aVRcjTk2; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4GtzCl42tBz9sSs for ; Tue, 24 Aug 2021 16:07:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbhHXGH4 (ORCPT ); Tue, 24 Aug 2021 02:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbhHXGHx (ORCPT ); Tue, 24 Aug 2021 02:07:53 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF7B0C061575; Mon, 23 Aug 2021 23:07:09 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id e3so9699036qth.9; Mon, 23 Aug 2021 23:07:09 -0700 (PDT) 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=xlxVIlSIJOfwlvlyoHVU5DcvdPbYDq3D2Wp4glE4NMQ=; b=aVRcjTk2xVRDpklFxv1rTRvnh9OxA13KpPftmpbWOxvC6Jy4PrlYStTMIqPTSXnZBq 8ry65Z13+LJTmx+R/4fMICmBccxu6RRCEoexOnwI/hl1iu4YKR5A5qFBayz7yLlsTVqA jRBb6IwtVuI+b5jpZvqGRfF6RC6NybSU4DhMTyubv8ZRORUERo5+jZUKyRfNE//uW9Qw W/oQPqUuFzIfPANJiy/5IQlbfDiQ3KKm9b0dbAmxib1ShBlYM1gMQFuRn8ARAxfYhdto xflEkGQd6BABzT7aNthhAxLQ3y5Ro7inh2kGxXyeCAo71Ros3E/V/ogim94hcQ6Zw2bn IK4g== 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=xlxVIlSIJOfwlvlyoHVU5DcvdPbYDq3D2Wp4glE4NMQ=; b=DtmJp7q0d21rpdJVNAbIMjoG8CYDCo8Phkt8BhjmOX0J5MT3hwtt9YgJpr0QNCtHfK vwkYz6SCOkgm+BnUYfs/Qs18HnhQRk2sRfrwDoqeSlOBRVojBpUBIDuKOFOiCfOahtke GBpdUKAE2os8Zx2jb14RbCR/11SIneCHbCxbebqFr5288yoGefyXH+CrrHKVYnfoBgLg NJqKSjy/J2VqQrqZv+GESVnHq3KxrjQfIYUR9V/oYXXnRsBT7RTBGYgvpkLdakyUhZ1y +KgI3BjdRKWkuat0J9NQOFu2nVF+SL/x3rWw0WrsQtxN5b/yifwvJ9wRFmSnefMqFM0G E7eQ== X-Gm-Message-State: AOAM530D7KBhEsgeQxC41BbW1Ti3MInGHGZTaGJxot1Cq7P30/63UVen FiZix2ZdJvW5/rCUEFh5yd9k8ucYJUE= X-Google-Smtp-Source: ABdhPJzvoJGu2eEDi45tIT+9IwlTn7ZQP9gA7GNK3uPiukbk2Eg0W31PujTJScxx/Bo8gzIqbn9Jjg== X-Received: by 2002:ac8:7761:: with SMTP id h1mr15123062qtu.272.1629785228905; Mon, 23 Aug 2021 23:07:08 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id g13sm1803263qkk.110.2021.08.23.23.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 23:07:08 -0700 (PDT) From: CGEL X-Google-Original-From: CGEL To: Jens Axboe Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Jing Yangyang , Zeal Robot Subject: [PATCH linux-next] include:libata: fix boolreturn.cocci warnings Date: Mon, 23 Aug 2021 23:07:02 -0700 Message-Id: <20210824060702.59006-1-deng.changcheng@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Jing Yangyang ./include/linux/libata.h:1462:8-9:WARNING: return of 0/1 in function 'ata_is_host_link' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Reported-by: Zeal Robot Signed-off-by: Jing Yangyang --- include/linux/libata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/libata.h b/include/linux/libata.h index a2d1bae..860e63f 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -1459,7 +1459,7 @@ static inline bool sata_pmp_attached(struct ata_port *ap) static inline bool ata_is_host_link(const struct ata_link *link) { - return 1; + return true; } #endif /* CONFIG_SATA_PMP */