From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by kanga.kvack.org (Postfix) with ESMTP id 87B608E0001 for ; Mon, 24 Sep 2018 06:12:04 -0400 (EDT) Received: by mail-wm1-f70.google.com with SMTP id t79-v6so9472836wmt.3 for ; Mon, 24 Sep 2018 03:12:04 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t66-v6sor8652595wmg.28.2018.09.24.03.12.02 for (Google Transport Security); Mon, 24 Sep 2018 03:12:02 -0700 (PDT) From: Bartosz Golaszewski Subject: [PATCH v3 0/4] devres: provide and use devm_kstrdup_const() Date: Mon, 24 Sep 2018 12:11:46 +0200 Message-Id: <20180924101150.23349-1-brgl@bgdev.pl> Sender: owner-linux-mm@kvack.org List-ID: To: Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , "Rafael J . Wysocki" , Arend van Spriel , Ulf Hansson , Bjorn Helgaas , Vivek Gautam , Robin Murphy , Joe Perches , Heikki Krogerus , Andrew Morton , Mike Rapoport , Michal Hocko , Al Viro , Jonathan Corbet , Roman Gushchin , Huang Ying , Kees Cook , Bjorn Andersson , Arnd Bergmann , Andy Shevchenko Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bartosz Golaszewski This series implements devm_kstrdup_const() together with some prerequisite changes and uses it in pmc-atom driver. v1 -> v2: - fixed the changelog in the patch implementing devm_kstrdup_const() - fixed the kernel doc - moved is_kernel_rodata() to asm-generic/sections.h - fixed constness v2 -> v3: - rebased on top of 4.19-rc5 as there were some conflicts in the pmc-atom driver - collected Reviewed-by tags Bartosz Golaszewski (4): devres: constify p in devm_kfree() mm: move is_kernel_rodata() to asm-generic/sections.h devres: provide devm_kstrdup_const() clk: pmc-atom: use devm_kstrdup_const() drivers/base/devres.c | 43 ++++++++++++++++++++++++++++++++-- drivers/clk/x86/clk-pmc-atom.c | 19 ++++----------- include/asm-generic/sections.h | 14 +++++++++++ include/linux/device.h | 5 +++- mm/util.c | 7 ------ 5 files changed, 63 insertions(+), 25 deletions(-) -- 2.18.0