Re: [PATCH 6/7] fs/sysfs/group: make attribute_group pointers const

2023-10-09 Thread Joe Perches
On Mon, 2023-10-09 at 22:05 +0200, Max Kellermann wrote: > On Mon, Oct 9, 2023 at 7:24 PM Guenter Roeck wrote: > > Also, I don't know why checkpatch is happy with all the > > > > const struct attribute_group *const*groups; > > > > instead of > > > > const struct attribute_group

Re: [PATCH 4/4] coding-style: add explanation about pr_fmt macro

2019-09-13 Thread Joe Perches
On Fri, 2019-09-13 at 15:57 -0300, André Almeida wrote: > The pr_fmt macro is useful to format log messages printed by pr_() > functions. Add text to explain the purpose of it, how to use and an > example. [] > diff --git a/Documentation/process/coding-style.rst > b/Documentation/process/codin

Re: [PATCH] block: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Joe Perches
On Wed, 2019-06-05 at 18:24 +, Enrico Weigelt, metux IT consult wrote: > On 05.06.19 14:24, Kefeng Wang wrote: > > > diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c > > index b97b479e4f64..1f7127b03490 100644 > > --- a/block/blk-cgroup.c > > +++ b/block/blk-cgroup.c > > @@ -881,7 +881,7 @

Re: [PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-24 Thread Joe Perches
On Thu, 2018-05-24 at 06:47 -0600, Jens Axboe wrote: > On 5/23/18 4:35 PM, Joe Perches wrote: > > On Wed, 2018-05-23 at 15:27 -0600, Jens Axboe wrote: > > > On 5/23/18 2:05 PM, Joe Perches wrote: > > > > Convert the S_ symbolic permissions to their octal equivalents

Re: [PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-23 Thread Joe Perches
On Wed, 2018-05-23 at 15:27 -0600, Jens Axboe wrote: > On 5/23/18 2:05 PM, Joe Perches wrote: > > Convert the S_ symbolic permissions to their octal equivalents as > > using octal and not symbolic permissions is preferred by many as more > > readable. > > > > se

Re: [PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-23 Thread Joe Perches
On Wed, 2018-05-23 at 15:27 -0600, Jens Axboe wrote: > On 5/23/18 2:05 PM, Joe Perches wrote: > > Convert the S_ symbolic permissions to their octal equivalents as > > using octal and not symbolic permissions is preferred by many as more > > readable. > > > > se

[PATCH] block drivers/block: Use octal not symbolic permissions

2018-05-23 Thread Joe Perches
Miscellanea: o Wrapped modified multi-line calls to a single line where appropriate o Realign modified multi-line calls to open parenthesis Signed-off-by: Joe Perches --- block/blk-integrity.c | 12 +++ block/blk-mq-sysfs.c| 6 ++-- block/blk-sysfs.c

[PATCH 00/18] Convert default pr_fmt from empty to KBUILD_MODNAME

2018-05-10 Thread Joe Perches
atch series is applied. The above script output diff is currently: 1198 files changed, 70 insertions(+), 2241 deletions(-) Joe Perches (18): kernel: Use pr_fmt lib: Use pr_fmt printk: Convert pr_fmt from blank define to KBUILD_MODNAME x86: Remove pr_fmt duplicate logging prefixes x86/mtr

[PATCH 16/18] aoe: Remove pr_fmt duplicate logging prefixes

2018-05-10 Thread Joe Perches
Converting pr_fmt from a simple define to use KBUILD_MODNAME added some duplicate logging prefixes to existing uses. Remove them. Signed-off-by: Joe Perches --- drivers/block/aoe/aoeblk.c | 29 ++--- drivers/block/aoe/aoechr.c | 11 +-- drivers/block/aoe

[PATCH 07/18] blk-mq: Remove pr_fmt duplicate logging prefixes

2018-05-10 Thread Joe Perches
Converting pr_fmt from a simple define to use KBUILD_MODNAME added some duplicate logging prefixes to existing uses. Remove them. Signed-off-by: Joe Perches --- block/blk-mq.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index

Re: rfc: remove print_vma_addr ? (was Re: [PATCH 00/16] remove eight obsolete architectures)

2018-03-15 Thread Joe Perches
On Thu, 2018-03-15 at 10:08 -0700, Matthew Wilcox wrote: > On Thu, Mar 15, 2018 at 09:56:46AM -0700, Joe Perches wrote: > > I have a patchset that creates a vsprintf extension for > > print_vma_addr and removes all the uses similar to the > > print_symbol() removal. > &g

rfc: remove print_vma_addr ? (was Re: [PATCH 00/16] remove eight obsolete architectures)

2018-03-15 Thread Joe Perches
On Thu, 2018-03-15 at 10:48 +0100, Geert Uytterhoeven wrote: > Hi David, > > On Thu, Mar 15, 2018 at 10:42 AM, David Howells wrote: > > Do we have anything left that still implements NOMMU? > > Sure: arm, c6x, m68k, microblaze, and sh. I have a patchset that creates a vsprintf extension for pr

Re: [PATCH] block: Change 'unsigned' to 'unsigned int' throughout block layer

2018-02-14 Thread Joe Perches
On Thu, 2018-02-15 at 02:13 +, Al Viro wrote: > On Wed, Feb 14, 2018 at 08:37:02PM -0500, John Pittman wrote: > > In quite a few files throughout the block layer, the bare 'unsigned' is > > used rather than the preferred 'unsigned int'. > > Preferred by whom? The kernel as a whole, ~12:1 > >

Re: [PATCH v2] bsg: use pr_debug instead of hand craftet macros

2018-01-24 Thread Joe Perches
On Wed, 2018-01-24 at 09:03 +0100, Johannes Thumshirn wrote: > On Tue, Jan 23, 2018 at 06:53:18PM -0800, Joe Perches wrote: > > On Tue, 2018-01-23 at 23:12 +, Bart Van Assche wrote: > > > On Tue, 2018-01-23 at 04:45 -0800, Joe Perches wrote: > > > > Perhaps the e

Re: [PATCH v2] bsg: use pr_debug instead of hand craftet macros

2018-01-23 Thread Joe Perches
On Tue, 2018-01-23 at 23:12 +, Bart Van Assche wrote: > On Tue, 2018-01-23 at 04:45 -0800, Joe Perches wrote: > > Perhaps the email subject could be improved to describe > > the new macro and as well, this macro, without a pr_fmt > > define somewhat above it loses th

Re: [PATCH v2] bsg: use pr_debug instead of hand craftet macros

2018-01-23 Thread Joe Perches
be improved to describe the new macro and as well, this macro, without a pr_fmt define somewhat above it loses the __func__ output too. Perhaps add a description of the capability of the dynamic debug facility to add the function name using +f. > Signed-off-by: Johannes Thumshirn > Cc: Joe Per

Re: [PATCH TRIVIAL] bsg: use pr_debug instead of hand crafted macros

2018-01-22 Thread Joe Perches
On Mon, 2018-01-22 at 20:42 +, Bart Van Assche wrote: > On Mon, 2018-01-22 at 12:23 -0800, Joe Perches wrote: > > On Mon, 2018-01-22 at 08:53 +0100, Johannes Thumshirn wrote: > > > Use pr_debug instead of hand crafted macros. This way it is not needed to > > > re-c

Re: [PATCH TRIVIAL] bsg: use pr_debug instead of hand crafted macros

2018-01-22 Thread Joe Perches
On Mon, 2018-01-22 at 08:53 +0100, Johannes Thumshirn wrote: > Use pr_debug instead of hand crafted macros. This way it is not needed to > re-compile the kernel to enable bsg debug outputs and it's possible to > selectively enable specific prints. Perhaps better to use #define bsg_dbg(bd, fmt, ..

Re: [PATCH 3/3] nvme: fix eui_show() print format

2017-11-03 Thread Joe Perches
On Fri, 2017-11-03 at 13:55 +0100, Christoph Hellwig wrote: > On Fri, Nov 03, 2017 at 11:02:50AM +0100, Javier González wrote: > > Signed-off-by: Javier González [] > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c [] > > @@ -2108,7 +2108,7 @@ static ssize_t eui_show(struct devi

Re: [PATCH 3/5] nbd: use flags instead of bool

2016-09-09 Thread Joe Perches
On Fri, 2016-09-09 at 10:11 -0600, Jens Axboe wrote: > The variable is called 'runtime_flags' - if that doesn't already tell > the reader how it's used, then I'd suggest the reader go read something > else. > > I'm all for using established APIs where it makes sense. Declaring a > bitmap for a few

Re: [PATCH 3/5] nbd: use flags instead of bool

2016-09-09 Thread Joe Perches
On Fri, 2016-09-09 at 07:55 -0600, Jens Axboe wrote: > On 09/08/2016 07:20 PM, Joe Perches wrote: > > On Thu, 2016-09-08 at 17:12 -0400, Josef Bacik wrote: > > > In preparation for some future changes, change a few of the state bools > > > over to > > &g

Re: [PATCH 3/5] nbd: use flags instead of bool

2016-09-08 Thread Joe Perches
On Thu, 2016-09-08 at 17:12 -0400, Josef Bacik wrote: > In preparation for some future changes, change a few of the state bools over > to > normal bits to set/clear properly. [] > diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c [] > @@ -41,8 +41,12 @@ > > #include > > +#define NBD_TIM

Re: [PATCH] trivial treewide: Convert dev_set_uevent_suppress argument to bool

2016-09-02 Thread Joe Perches
On Fri, 2016-09-02 at 08:59 -0700, Bart Van Assche wrote: > How about the following: > > dev_set_uevent_suppress() expects a boolean as second argument. Make  > this clear by passing true/false instead of 1/0 as the second > argument. dev_set_uevent_suppress() doesn't currently expect a boolean.

Re: [PATCH] trivial treewide: Convert dev_set_uevent_suppress argument to bool

2016-09-02 Thread Joe Perches
On Fri, 2016-09-02 at 13:41 +, Bart Van Assche wrote: > On 09/01/16 17:51, Joe Perches wrote: > > On Fri, 2016-09-02 at 00:47 +, Bart Van Assche wrote: > > > On 09/01/16 13:11, Joe Perches wrote: > > > > Assigning an int to a bitfield:1 can lose precis

Re: [PATCH] trivial treewide: Convert dev_set_uevent_suppress argument to bool

2016-09-01 Thread Joe Perches
On Fri, 2016-09-02 at 00:47 +, Bart Van Assche wrote: > On 09/01/16 13:11, Joe Perches wrote: > > > > Assigning an int to a bitfield:1 can lose precision. > > Change the caller argument uses from 1/0 to true/false. > Hello Joe, Hi Bart. > Can you clarify how as

[PATCH] trivial treewide: Convert dev_set_uevent_suppress argument to bool

2016-09-01 Thread Joe Perches
Assigning an int to a bitfield:1 can lose precision. Change the caller argument uses from 1/0 to true/false. No change to objects. Signed-off-by: Joe Perches --- block/genhd.c | 4 ++-- block/partition-generic.c | 4 ++-- drivers/acpi/dock.c | 2 +- drivers/s390/cio