From patchwork Thu Jul 25 09:40:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 1136776 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SSaNqcKT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45vS024Plmz9sDB for ; Thu, 25 Jul 2019 19:41:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 4E65BC21DCA; Thu, 25 Jul 2019 09:41:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 28D06C21C93; Thu, 25 Jul 2019 09:41:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 88EB0C21C27; Thu, 25 Jul 2019 09:41:15 +0000 (UTC) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by lists.denx.de (Postfix) with ESMTPS id EC1ECC21C2F for ; Thu, 25 Jul 2019 09:41:14 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id t16so22441822pfe.11 for ; Thu, 25 Jul 2019 02:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=2va0UrW2hcNcgUQzW3B+2vDKaAWyD6782bCspCJZu3E=; b=SSaNqcKTYIbB/oCX12nFGNJ4iXdIR4V53iGI0lOoDtynmVHSkAftDJ+8hYwBuZWUF/ lB6CkEFbHfYNOcSIZdEzyd0lEx51KM/Rm5cPKs6E6LXHAQ0bUekZ3fUYVadHmX+S5E0Y Km+/5uZatJCLSjMyT2XOJ1JSWVUhLdWUCr6F//Typ9VMo6yg7nGL6vxt/Kus2CBTMSNm M+oS3G91iKxEsH6zMR3R6EHPjWWE9MphuOJ2/rVYEQOr601W91zMUtH0gMxRVfZVQn3i +Synyqz0/BPJBIrVbz/aLbSVpi5E3xkFPFZuV1Hi1KS99ZpABbz5iz6sGkTi83smToaT /P7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=2va0UrW2hcNcgUQzW3B+2vDKaAWyD6782bCspCJZu3E=; b=TrUeiBKl0ciwzlloJxKtpNTdOeVQX+KlYsp9kNu/at4wRlta+eImYAzwNEP0jAwrvt rdXiEf6y/HLSinB0IN7rE+bCo6G+7PpUYcyzBBFr4PTl03jczhG5G2MA4OHZgGc/cmvD f2I0CX6baFjpwRYR7aPGbJHXz+c+GiEjL77PdQYeHjaeTBDRz6Pf940P1DHRuLHoKYrf rjZ8xyuv74eiw0CZPly/YEJPTl8hJFh8Cu73Ro1Detz40Q7+wXX+yo3uI0MsuqBCQcAv lWJdn1FcL7dVv1ta5nVCKBZJKxmg4DxvK2Y+UdnHiod0MF7y7R65NFL1jyfIc0np2M2C MbqA== X-Gm-Message-State: APjAAAVoouMuCY7fn0sfJtgzzGCVvTCFrizueADKM5QUzZLUCivFQgZu WXMJ8EwS0BN/jGxlTo8vpVnDxlgkSXZxIw== X-Google-Smtp-Source: APXvYqxNBNZtsLeV+Lfeu0y6VYwLz3TEZjxMnlnrgTqYBUeJES1HFGWitHOvtu5rfrfzOoxQmMFUxw== X-Received: by 2002:a63:c64b:: with SMTP id x11mr85272625pgg.319.1564047673109; Thu, 25 Jul 2019 02:41:13 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id f72sm69242172pjg.10.2019.07.25.02.41.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 02:41:12 -0700 (PDT) From: Kever Yang To: u-boot@lists.denx.de Date: Thu, 25 Jul 2019 17:40:56 +0800 Message-Id: <20190725094056.13872-1-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 Cc: Tien Fong Chee Subject: [U-Boot] [PATCH] part: always enable part_get_info_ptr() for driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The partition driver has its Kconfig option, and the part_get_info_prt() interface are mendatory interface for partition drivers, always enable the macro to make partition driver works correctly. Signed-off-by: Kever Yang --- include/part.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/part.h b/include/part.h index ebca546db5..7d00fae56f 100644 --- a/include/part.h +++ b/include/part.h @@ -241,22 +241,15 @@ static inline int blk_get_device_part_str(const char *ifname, #endif /* - * We don't support printing partition information in SPL and only support - * getting partition information in a few cases. + * We don't support printing partition information in SPL */ #ifdef CONFIG_SPL_BUILD # define part_print_ptr(x) NULL -# if defined(CONFIG_SPL_FS_EXT4) || defined(CONFIG_SPL_FS_FAT) || \ - defined(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION) -# define part_get_info_ptr(x) x -# else -# define part_get_info_ptr(x) NULL -# endif #else #define part_print_ptr(x) x -#define part_get_info_ptr(x) x #endif +#define part_get_info_ptr(x) x struct part_driver { const char *name;